Queries NAT CIDR blocks.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the Virtual Private Cloud (VPC) NAT gateway that you want to query. You can call the DescribeRegions operation to query the most recent region list. | eu-central-1 |
NatGatewayId | string | Yes | The ID of the VPC NAT gateway that you want to query. | ngw-gw8v16wgvtq26vh59**** |
NatIpCidr | string | No | The CIDR block of the NAT gateway that you want to query. | 172.16.0.0/24 |
DryRun | boolean | No | Specifies whether to only precheck this 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 |
NatIpCidrStatus | string | No | The status of the CIDR block that you want to query. Set the value to Available. | Available |
NextToken | string | No | The token that is used for the next query. Set the value as needed.
| caeba0bbb2be03f84eb48b699f0a4883 |
MaxResults | string | No | The number of entries to return on each page. Valid values: 1 to 100. Default value: 20. | 20 |
NatIpCidrName | array | No | The name of the CIDR block that you want to query. Valid values of N: 1 to 20. | |
string | No | The name of the CIDR block that you want to query. Valid values of N: 1 to 20. | cidrname | |
NatIpCidrs | array | No | The CIDR block of the NAT gateway that you want to query. Valid values of N: 1 to 20. | |
string | No | The CIDR block of the NAT gateway that you want to query. Valid values of N: 1 to 20. | 172.16.0.0/24 |
Response parameters
Examples
Sample success responses
JSON
format
{
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"RequestId": "7479A224-4A28-4895-9604-11F48BCE6A88",
"TotalCount": "1",
"NatIpCidrs": [
{
"CreationTime": "2021-06-28T20:50Z",
"NatIpCidrId": "vpcnatcidr-gw8ov42ei6xh1jys2****",
"IsDefault": true,
"NatIpCidrStatus": "Available",
"NatIpCidrName": "Name",
"NatIpCidr": "172.16.0.0/24",
"NatGatewayId": "ngw-gw8v16wgvtq26vh59****",
"NatIpCidrDescription": "test"
}
]
}
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 |