Modifies the name and description of a NAT CIDR block.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the NAT gateway to which the NAT CIDR block belongs. You can call the DescribeRegions operation to query available regions. |
eu-central-1 |
| NatIpCidrName |
string |
No |
The new name of the NAT CIDR block. The name must be 2 to 128 characters in length, and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. |
newname |
| DryRun |
boolean |
No |
Whether to perform only a dry run without sending the actual request. Valid values:
|
false |
| ClientToken |
string |
No |
The client token that ensures the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters. Note
If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request. |
5A2CFF0E-5718-45B5-9D4D-70B3FF3898 |
| NatIpCidrDescription |
string |
No |
The new description of the NAT CIDR block. The description must be 2 to 256 characters in length and must start with a letter but cannot start with |
newtest |
| NatGatewayId |
string |
Yes |
The ID of the Virtual Private Cloud (VPC) NAT gateway to which the NAT CIDR block belongs. |
ngw-gw8v16wgvtq26vh59**** |
| NatIpCidr |
string |
Yes |
The NAT CIDR block whose name and description you want to modify. |
172.16.0.0/24 |
| RegionId |
string |
Yes |
The region ID of the NAT gateway to which the NAT CIDR block belongs. You can call the DescribeRegions operation to query available regions. |
eu-central-1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
Examples
Success response
JSON format
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalParamFormat.NatIpCidr | The param format of NatIpCidr is illegal. | The param format of NatIpCidr is illegal. |
| 404 | ResourceNotFound.NatIpCidr | The specified resource of NatIpCidr is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.