Deletes the CIDR block of a transit router.
Usage notes
If IP addresses within the CIDR block have been allocated to network instances, the CIDR block cannot be deleted.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | DeleteTransitRouterCidr |
The operation that you want to perform. Set the value to DeleteTransitRouterCidr. |
| ClientToken | String | No | 123e4567-e89b-12d3-a456-426**** |
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. ClientToken can contain only ASCII characters. Note If you do not set this parameter, ClientToken is set to the value of RequestId. The
value of RequestId for each API request may be different.
|
| TransitRouterId | String | Yes | tr-p0w3x8c9em72a40nw**** |
The ID of the transit router. |
| TransitRouterCidrId | String | Yes | cidr-0zv0q9crqpntzz**** |
The ID of the transit router CIDR block. You can call ListTransitRouterCidr to query the ID of a transit router CIDR block. |
| RegionId | String | Yes | ap-southeast-2 |
The ID of the region where the transit router is deployed. You can call the DescribeChildInstanceRegions operation to query the most recent region list. |
| DryRun | Boolean | No | false |
Specifies whether only to precheck the request. Valid values:
|
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 0876E54E-3E36-5C31-89F0-9EE8A9266F9A |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteTransitRouterCidr
&ClientToken=123e4567-e89b-12d3-a456-426****
&TransitRouterId=tr-p0w3x8c9em72a40nw****
&TransitRouterCidrId=cidr-0zv0q9crqpntzz****
&RegionId=ap-southeast-2
&DryRun=false
&<Common request parameters>Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteTransitRouterCidrResponse>
<RequestId>0876E54E-3E36-5C31-89F0-9EE8A9266F9A</RequestId>
</DeleteTransitRouterCidrResponse>JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "0876E54E-3E36-5C31-89F0-9EE8A9266F9A"
}Error codes
For a list of error codes, visit the API Error Center.