otcextensions.sdk.nat.v2.dnat

The DNAT Rule Class

The Dnat class inherits from Resource.

class otcextensions.sdk.nat.v2.dnat.Dnat(_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.

admin_state_up

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

created_at

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

external_service_port

Specifies the port for providing external services.

floating_ip_address

Specifies the EIP

floating_ip_id

Specifies the EIP ID

gateway_id

Specifies the gateway ID.

id

Specifies the ID of the DNAT rule.

internal_service_port

Specifies port used by ECS/BMS to provide services for external systems

nat_gateway_id

Specifies the ID of the NAT gateway.

port_id

Specifies the port ID of an ECS or BMS Parameter is used in the VPC scenario. This parameter is an alternative to private_ip

private_ip

Specifies the IP address of a Direct Connect connection. Parameter is used in the Direct Connect scenario. This parameter is an alternative to port_id.

project_id

Specifies the project ID.

protocol

Specifies the protocol type. Currently TCP(6), UDP(17) and ANY(0)

status

Specifies the status of the DNAT rule