Queries the zones that support NAT gateways.

Description

You can call this operation to query zones that support Internet NAT gateways and virtual private cloud (VPC) NAT gateways. The term "NAT gateway" in this topic refers to both NAT gateway types.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates a sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListEnhanhcedNatGatewayAvailableZones

The operation that you want to perform. Set the value to ListEnhanhcedNatGatewayAvailableZones.

RegionId String Yes me-east-1

The ID of the region that you want to query.

You can call the DescribeRegions operation to query the most recent region list.

In this example, zones that support NAT gateways in the UAE (Dubai) region are queried.

Response parameters

Parameter Type Example Description 
RequestId String 8AE6F367-52EA-535D-9A3D-EF23D70527C8

The ID of the request.

Zones Array of Zone

The list of zones.

LocalName String Dubai Zone A

The name of the zone.

ZoneId String me-east-1a

The ID of the zone.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListEnhanhcedNatGatewayAvailableZones
&RegionId=me-east-1
&<Common request parameters>

Sample success responses

XML format

<ListEnhanhcedNatGatewayAvailableZonesResponse>
  <RequestId>8AE6F367-52EA-535D-9A3D-EF23D70527C8</RequestId>
  <Zones>
        <ZoneId>me-east-1a</ZoneId>
        <LocalName>Dubai Zone A</LocalName>
  </Zones>
</ListEnhanhcedNatGatewayAvailableZonesResponse>

JSON format

{
    "RequestId": "8AE6F367-52EA-535D-9A3D-EF23D70527C8",
    "Zones": {
        "ZoneId": "me-east-1a",
        "LocalName": "Dubai Zone A"
    }
}

Error codes

HttpCode Error code Error message Description
404 InvalidRegionId.NotFound The specified RegionId does not exist in our records. The error message returned because the specified region ID does not exist.

For a list of error codes, visit the API Error Center.