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()
andexisting()
.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.
-
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