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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

ParameterTypeRequiredExampleDescription
ActionStringYesDeleteVSwitchCidrReservation

The operation that you want to perform. Set the value to DeleteVSwitchCidrReservation.

VSwitchCidrReservationIdStringNovcr-bp1m12saqteraw3rp****

The ID of the reserved CIDR block.

RegionIdStringYescn-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

ParameterTypeExampleDescription
RequestIdString54B48E3D-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

HttpCodeError codeError messageDescription
400DependencyViolation.IpPrefixDependencyViolation.IpPrefixA prefix list is assigned to the resource. Delete the prefix list and try again.
404ResourceNotFound.CidrReservationResourceNotFound.CidrReservationVSwitchCidrReservation is set to an invalid value.

For a list of error codes, see Service error codes.