Enables ClassicLink.
Make the API call
Request parameters
Parameter | Type | Required? | Example value | Description |
---|---|---|---|---|
Action | String | Yes | EnableVpcClassicLink |
The name of this action. Valid value: EnableVpcClassicLink. |
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 enabled. |
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 parameter 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=EnableVpcClassicLink
&RegionId=cn-hangzhou
&VpcId=vpc-bp1m7v25emi1h5mtc****
&<CommonParameters>
Response example
XML
format
<EnableVpcClassicLinkResponse>
<RequestId>AE65530E-8436-4FB1-8217-DCD35712AC89</RequestId>
</EnableVpcClassicLinkResponse>
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 region ID does not exist. |
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 | IncorrectClassicLinkStatus | Specified VPC classicLink enabled. | ClassicLink is already enabled for the specified VPC. |
For a list of error codes, visit the API Error Center.