Deletes the reserved CIDR block of a vSwitch.
Usage notes
- Before you call this operation, make sure that the IP address allocated to an elastic network interface (ENI) from the reserved CIDR block is deleted. If the IP address of the ENI is not deleted, call UnassignPrivateIpAddresses or UnassignIpv6Addresses to delete the IPv4 or IPv6 address.
- DeleteVSwitchCidrReservation is an asynchronous operation. After you send a request, the system returns a request ID and runs the task in the background.You can call the ListVSwitchCidrReservations operation to query the status of a reserved CIDR block:
- If the reserved CIDR block is in the Releasing state, it is being released.
- If the reserved CIDR block is in the Released state, it is released.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteVSwitchCidrReservation | The operation that you want to perform. Set the value to DeleteVSwitchCidrReservation. |
VSwitchCidrReservationId | String | No | vcr-bp1m12saqteraw3rp**** | The ID of the reserved CIDR block. |
RegionId | String | Yes | cn-hangzhou | The ID of the region where the vSwitch is deployed. You can call the DescribeRegions operation to query the most recent region list. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 54B48E3D-DF70-471B-AA93-08E683A1B45 | The request ID. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteVSwitchCidrReservation
&VSwitchCidrReservationId=vcr-bp1m12saqteraw3rp****
&RegionId=cn-hangzhou
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteVSwitchCidrReservationResponse>
<RequestId>54B48E3D-DF70-471B-AA93-08E683A1B45</RequestId>
</DeleteVSwitchCidrReservationResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "54B48E3D-DF70-471B-AA93-08E683A1B45"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | DependencyViolation.IpPrefix | DependencyViolation.IpPrefix | A prefix list is assigned to the resource. Delete the prefix list and try again. |
404 | ResourceNotFound.CidrReservation | ResourceNotFound.CidrReservation | VSwitchCidrReservation is set to an invalid value. |
For a list of error codes, see Service error codes.