Disables ClassicLink for a virtual private cloud (VPC).

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

Parameter Type Required Example Description
Action String Yes DisableVpcClassicLink

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

RegionId String Yes cn-hangzhou

The region ID of the VPC for which you want to disable ClassicLink.

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

VpcId String Yes vpc-bp1m7v25emi1h5mtc****

The ID of the VPC for which you want to disable ClassicLink.

ClientToken String No. 123e4567-e89b-12d3-a456-426655440000

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. The client token can contain only ASCII characters.

Note If you do not set this parameter, the system automatically uses RequestId as ClientToken. RequestId may be different for each API request.

Response parameters

Parameter Type Example Description
RequestId String 54B48E3D-DF70-471B-AA93-08E683A1B45

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DisableVpcClassicLink
&RegionId=cn-hangzhou
&VpcId=vpc-bp1m7v25emi1h5mtc****
&ClientToken=123e4567-e89b-12d3-a456-426655440000
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DisableVpcClassicLinkResponse>
    <RequestId>54B48E3D-DF70-471B-AA93-08E683A1B45</RequestId>
</DisableVpcClassicLinkResponse>

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 IncorrectVpcStatus Current VPC status does not support this operation. The error message returned because this operation cannot be performed when the VPC is in the current state.
403 Forbbiden User not authorized to operate on the specified resource. The error message returned because you are unauthorized to perform this operation on the specified resource. Apply for the required permissions and try again.
404 InvalidRegionId.NotFound Specified value of "regionId" is not supported. The error message returned because RegionId is set to an invalid value. Check whether the service is available in the specified region.
404 InvalidVpcId.NotFound Specified VPC does not exist. The error message returned because the specified VPC does not exist.
404 DependencyViolation.Instance ClassicLink Instances exist in VPC. The error message returned because instances exist in the VPC and the VPC cannot be deleted.
500 InternalError The request processing has failed due to some unknown error. The error message returned because some unknown errors occurred.

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