Deletes a secondary IPv4 CIDR block from a VPC.

API description

Before deleting a secondary IPv4 CIDR block attached to a VPC, you must delete the VSwitch created with the secondary IPv4 CIDR block. For more information, see DeleteVSwitch.

Make the API call

You can use OpenAPI Explorer to make API calls, search for API calls, perform debugging, and generate SDK example code.

Request parameters

Parameter Type Required? Example value Description
Action String Yes UnassociateVpcCidrBlock

The name of this action. Valid value: UnassociateVpcCidrBlock.

RegionId String Yes ch-hangzhou

The region of the VPC to which the secondary IPv4 CIDR block to be deleted belongs. To query the region ID, call DescribeRegions.

VpcId String Yes vpc-o6wrloqsdqc9io3mg****

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

SecondaryCidrBlock String No 192.168.0.0/16

The secondary IPv4 CIDR block to be deleted.

Response parameters

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

The ID of the request.

Examples

Request example


http(s)://vpc.aliyuncs.com/? Action=UnassociateVpcCidrBlock
&RegionId=ch-hangzhou
&VpcId=vpc-o6wrloqsdqc9io3mg****
&<CommonParameters>

Response example

XML format

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

JSON format

{
	"RequestId":"C1221A1F-2ACD-4592-8F27-474E02883159"
}

Errors

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