Queries NAT IP addresses.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region where the NAT gateway is deployed. You can call the DescribeRegions operation to query the most recent region list. | eu-central-1 |
NatGatewayId | string | Yes | The ID of the NAT gateway. | ngw-gw8v16wgvtq26vh59**** |
NatIpCidr | string | No | The CIDR block to which the IP address belongs. | 192.168.0.0/24 |
DryRun | boolean | No | Specifies whether to only precheck the request. Valid values:
| false |
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. Note
If you do not set this parameter, the system automatically uses RequestId as ClientToken. RequestId may be different for each API request.
| 5A2CFF0E-5718-45B5-9D4D-70B3FF3898 |
NatIpStatus | string | No | The status of the IP address. Valid values:
| Available |
NextToken | string | No | The token that is used for the next query. Valid values:
| FFmyTO70tTpLG6I3FmYAXGKPd****f84eb48b699f0a4883 |
MaxResults | string | No | The number of entries to return on each page. Valid values: 1 to 100. Default value: 20. | 20 |
NatIpName | array | No | The name of the IP address. Valid values of N: 1 to 20. | |
string | No | The name of the IP address. Valid values of N: 1 to 20. | test | |
NatIpIds | array | No | The ID of the IP address. Valid values of N: 1 to 20. | |
string | No | The ID of the IP address. Valid values of N: 1 to 20. | vpcnatcidr-gw8ov42ei6xh1jys2**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RequestId": "7E78CEEA-BF8F-44D1-9DCD-D9141135B71E",
"TotalCount": "1",
"NatIps": [
{
"IsDefault": true,
"NatIp": "192.168.0.126",
"NatIpCidr": "192.168.0.0/24",
"NatIpId": "vpcnatip-gw8a863sut1zijxh0****",
"NatIpDescription": "default",
"NatGatewayId": "ngw-gw8v16wgvtq26vh59****",
"NatIpName": "default",
"NatIpStatus": "Available"
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | The specified region ID does not exist. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-07-23 | API Description Update. The Error code has changed | View Change Details |
2023-03-01 | The Error code has changed | View Change Details |