Queries the zones that support NAT gateways.
Description
You can call this operation to query zones that support NAT gateways, including Internet NAT gateways and Virtual Private Cloud (VPC) NAT gateways.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
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. |
AcceptLanguage | String | No | zh-CN |
The language to display the results. Valid values:
|
Action | String | Yes | ListEnhanhcedNatGatewayAvailableZones |
The operation that you want to perform. Set the value to ListEnhanhcedNatGatewayAvailableZones. |
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. |
|
ZoneId | String | me-east-1a |
The ID of the zone where the instance is deployed. |
LocalName | String | Dubai Zone A |
The name of the zone. |
Examples
Sample requests
http(s)://[Endpoint]/?RegionId=me-east-1
&AcceptLanguage=zh-CN
&Action=ListEnhanhcedNatGatewayAvailableZones
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ListEnhanhcedNatGatewayAvailableZonesResponse>
<RequestId>8AE6F367-52EA-535D-9A3D-EF23D70527C8</RequestId>
<Zones>
<ZoneId>me-east-1a</ZoneId>
<LocalName>Dubai Zone A</LocalName>
</Zones>
</ListEnhanhcedNatGatewayAvailableZonesResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"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.