This API has been deprecated. We recommend migrating to Vpc(2016-04-28) - DescribeNatGateways for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DescribeNatGateways |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
|
|
| NatGatewayId |
string |
No |
|
|
| VpcId |
string |
No |
|
|
| PageNumber |
integer |
No |
Default value: 1. |
|
| PageSize |
integer |
No |
Default value: 10. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|
||
| PageSize |
integer |
|
|
| RequestId |
string |
|
|
| PageNumber |
integer |
|
|
| TotalCount |
integer |
|
|
| NatGateways |
object |
|
|
| NatGateway |
array<object> |
|
|
|
array<object> |
|
||
| Status |
string |
Available, Pending, and Deleting. |
|
| CreationTime |
string |
YYYY-MM-DDThh:mm:ssZ. |
|
| VpcId |
string |
|
|
| Spec |
string |
Small, Middle, and Large. |
|
| Description |
string |
|
|
| NatGatewayId |
string |
|
|
| BusinessStatus |
string |
Normal and FinancialLocked. |
|
| Name |
string |
|
|
| InstanceChargeType |
string |
PostPaid, which indicates the pay-as-you-go billing method. |
|
| RegionId |
string |
|
|
| ForwardTableIds |
object |
|
|
| ForwardTableId |
array |
|
|
|
string |
|
||
| BandwidthPackageIds |
object |
|
|
| BandwidthPackageId |
array |
|
|
|
string |
|
Examples
Success response
JSON format
{
"PageSize": 0,
"RequestId": "",
"PageNumber": 0,
"TotalCount": 0,
"NatGateways": {
"NatGateway": [
{
"Status": "",
"CreationTime": "",
"VpcId": "",
"Spec": "",
"Description": "",
"NatGatewayId": "",
"BusinessStatus": "",
"Name": "",
"InstanceChargeType": "",
"RegionId": "",
"ForwardTableIds": {
"ForwardTableId": [
""
]
},
"BandwidthPackageIds": {
"BandwidthPackageId": [
""
]
}
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidAliuid | User Id is not valid. | |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | The specified RegionId parameter does not exist. Check whether the service is available in the specified region. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.