Enables ClassicLink for a VPC.
This API has been deprecated with no replacement. While temporary access is maintained, no further updates or bug fixes will be provided. To ensure continued functionality, plan your migration and contact your account manager for support.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the VPC for which to enable ClassicLink. Call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| VpcId |
string |
Yes |
The ID of the VPC. |
vpc-bp1m7v25emi1h5mtc**** |
| ClientToken |
string |
No |
The client token used to ensure the idempotence of the request. You can use the client to generate the token, but you must ensure that it is unique among requests. The token can contain only ASCII characters. Note
If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may differ for each request. |
123e4567-e89b-12d3-a456-426655440000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The request ID. |
||
| RequestId |
string |
The request ID. |
54B48E3D-DF70-471B-AA93-08E683A1B45 |
Examples
Success response
JSON format
{
"RequestId": "54B48E3D-DF70-471B-AA93-08E683A1B45"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectVpcStatus | Current VPC status does not support this operation. | |
| 400 | Forbidden.EnableClassicLink | the specified resource does not support this operation. | |
| 400 | RouteConflict.AlreadyExist | Route conflict exists in routing table. | Route conflicts exist in the route table. |
| 400 | InvalidRegionId.NotFound | Specified value of "regionId" is not supported. | |
| 400 | OperationFailed.RouteConflict | Operation failed because a specified route entry is already exist. | The operation conflicts with an existing route. |
| 404 | InvalidVpcId.NotFound | Specified VPC does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.