• NAT Gateway

nat
  1. Help Center
  2. NAT Gateway
  3. API Reference
  4. API
  5. SNAT Rules
  6. Querying Details About a Specified SNAT Rule

Querying Details About a Specified SNAT Rule

Function

This API is used to query details about a specified SNAT rule.

URI

GET /v2.0/snat_rules/{snat_rule_id}

Table 1 Parameter description

Parameter

Type

Mandatory

Description

snat_rule_id

Uuid-Str

Yes

Specifies the ID of the SNAT rule.

Request

None

Response

Table 2 lists response parameters.

Table 2 Response parameters

Parameter

Type

Description

snat_rule

Dict

Indicates the SNAT rule object.

Examples

  • Example request
    GET /v2.0/snat_rules/5b95c675-69c2-4656-ba06-58ff72e1d338
  • Example response
    {
        "snat_rule": {
            "floating_ip_id": "bdc10a4c-d81a-41ec-adf7-de857f7c812a",
            "status": "ACTIVE",
            "nat_gateway_id": "a78fb3eb-1654-4710-8742-3fc49d5f04f8",
            "admin_state_up": true,
            "network_id": "eaad9cd6-2372-4be1-9535-9bd37210ae7b",
            "cidr": "",
            "source_type":0,
            "tenant_id": "27e25061336f4af590faeabeb7fcd9a3",
            "created_at": "2017-11-18 07:54:21.665430",
            "id": "5b95c675-69c2-4656-ba06-58ff72e1d338",
            "floating_ip_address": "5.21.11.226"
        }
    }

Returned Value

For details, see Common Returned Values.