Disables ClassicLink.
Make the API call
Request parameters
Parameter | Type | Required? | Example value | Description |
---|---|---|---|---|
Action | String | Yes | DisableVpcClassicLink |
The name of this action. Valid value: DisableVpcClassicLink. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region where the target VPC belongs. To query the region ID, call DescribeRegions. |
VpcId | String | Yes | vpc-bp1m7v25emi1h5mtc**** |
The ID of the VPC for which ClassicLink is to be disabled. |
ClientToken | String | No | d7d24a21-f4ba-4454-9173-b3828dae492b |
The client token that guarantees the idempotence of the request. The value of this parameter is generated by the client and is unique among different requests. The ClientToken can contain only ASCII characters, and cannot exceed 64 characters in length. For more information, see How to ensure idempotence. |
Response parameters
Parameter | Type | Example value | Description |
---|---|---|---|
RequestId | String | 5BE01CD7-5A50-472D-AC14-CA181C5C03BE |
The ID of the request. |
Examples
Request example
http(s)://vpc.aliyuncs.com/? Action=DisableVpcClassicLink
&RegionId=cn-hangzhou
&VpcId=vpc-bp1m7v25emi1h5mtc****
&<CommonParameters>
Response example
XML
format
<DisableVpcClassicLinkResponse>
<RequestId>AE65530E-8436-4FB1-8217-DCD35712AC89</RequestId>
</DisableVpcClassicLinkResponse>
JSON
format
{
"RequestId":"AE65530E-8436-4FB1-8217-DCD35712AC89"
}
Errors
HTTP status code | Error code | Error message | Description |
---|---|---|---|
404 | InvalidRegionId.NotFound | Specified value of "regionId" is not supported. | The specified RegionId does not exist. |
403 | Forbbiden | User not authorized to operate on the specified resource. | You are not authorized to operate on this resource. |
500 | InternalError | The request processing has failed due to some unknown error. | The request failed to be processed due to unknown errors. |
400 | IncorrectVpcStatus | Current VPC status does not support this operation. | The current status of the VPC does not support the action. |
404 | InvalidVpcId.NotFound | Specified VPC does not exist. | The specified VPC does not exist. |
404 | DependencyViolation.Instance | ClassicLink Instances exist in VPC. | The specified VPC is associated with undeleted cloud instances. VPC deletion failed. |
For a list of error codes, visit the API Error Center.