Enables ClassicLink for a virtual private cloud (VPC).
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | EnableVpcClassicLink |
The operation that you want to perform. Set the value to EnableVpcClassicLink. |
RegionId | String | Yes | cn-hangzhou |
The region ID of the VPC for which you want to enable ClassicLink. You can call the DescribeRegions operation to query the most recent region list. |
VpcId | String | Yes | vpc-bp1m7v25emi1h5mtc**** |
The ID of the VPC. |
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 specify this parameter, the system automatically uses the value of RequestId as the value of 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=EnableVpcClassicLink
&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
<EnableVpcClassicLinkResponse>
<RequestId>54B48E3D-DF70-471B-AA93-08E683A1B45</RequestId>
</EnableVpcClassicLinkResponse>
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 while the VPC is in the current state. |
400 | RouteConflict.AlreadyExist | Route conflict exists in routing table. | The error message returned because route conflicts exist in the route table. |
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 | IncorrectClassicLinkStatus | Specified VPC classicLink enabled. | The error message returned because ClassicLink is already enabled for the VPC. |
For a list of error codes, visit the Error Center.