otcextensions.sdk.nat.v2.snat

The SNAT Rule Class

The Snat class inherits from Resource.

class otcextensions.sdk.nat.v2.snat.Snat(_synchronized=False, connection=None, **attrs)

The base resource

Parameters:
  • _synchronized (bool) – This is not intended to be used directly. See new() and existing().

  • connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of self._connection in Resource code should protect itself with a check for None.

resources_key: ty.Optional[str] = 'snat_rules'

Plural form of key for resource.

resource_key: ty.Optional[str] = 'snat_rule'

Singular form of key for resource.

base_path: str = '/snat_rules'

The base part of the URI for this resource.

allow_create = True

Allow create operation for this resource.

allow_fetch = True

Allow get operation for this resource.

allow_delete = True

Allow delete operation for this resource.

allow_list = True

Allow list operation for this resource.

admin_state_up

Specifies the status of the SNAT rule

cidr

Specifies a subset of the VPC subnet CIDR block or a CIDR block of Direct Connect connection.

created_at

Specifies when the rule is created. The format is yyyy-mm-dd hh:mm:ss.

floating_ip_address

Specifies the EIP Multiple EIPs are separated using commas

floating_ip_id

Specifies the EIP ID Multiple EIPs are separated using commas

id

Specifies the ID of the SNAT rule.

nat_gateway_id

Specifies the gateway ID.

network_id

Specifies the network ID

project_id

Specifies the project ID.

source_type

0: Either network_id or cidr can be specified in VPC 1: only cidr can be specified over a Direct Connect connection Default: 0

status

Specifies whether SNAT rule is enabled / disabled true: SNAT rule is enabled false: SNAT rule is disabled