Deletes a secondary CIDR block from a virtual private cloud (VPC).


Before you delete a secondary CIDR block from a VPC, delete the vSwitch which is created with the CIDR block. For more information, see DeleteVSwitch.


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

Parameter Type Required Example Description
RegionId String Yes ch-hangzhou

The ID of the region to which the secondary CIDR block to be deleted belongs.

You can call the DescribeRegions operation to query the most recent region list.

VpcId String Yes vpc-o6wrloqsdqc9io3mg****

The ID of the VPC from which you want to delete a secondary CIDR block.

SecondaryCidrBlock String No

The secondary CIDR block that you want to delete.

You can delete both secondary IPv4 and IPv6 CIDR blocks.

Action String Yes UnassociateVpcCidrBlock

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

Response parameters

Parameter Type Example Description
RequestId String C1221A1F-2ACD-4592-8F27-474E02883159

The ID of the request.


Sample requests

&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK

    <RequestId>C1221A1F-2ACD-4592-8F27-474E02883159	</RequestId>

JSON format

HTTP/1.1 200 OK

  "RequestId" : "C1221A1F-2ACD-4592-8F27-474E02883159\t"

Error codes

For a list of error codes, visit the API Error Center.