Unlinks a classic network-connected instance from the VPC. For more information, see VPC topic ClassicLink overview. After the ClassicLink is disabled, the classic network-connected instance cannot access the VPC.

Request parameters

Name Type Required Description
Action String Yes The name of this interface. Value: DetachClassicLinkVpc.
RegionId String Yes Region ID of the instance. For more information, call DescribeRegions to obtain the latest region list.
InstanceId String Yes ID of the classic network-connected instance.
VpcId String Yes The ID of a VPC to which the instance is linked.

Response parameters

All are common response parameters. For more information, see Common parameters.


Request example
&<Common Request Parameters>
Response example

XML format

JSON format
    "RequestId": "C0003E8B-B930-4F59-ADC0-0E209A9012A8"

Error codes

Error codes specific to this interface are as follows. For more error codes, visit the API Error Center.

Error code Error message HTTP status code Meaning
InvalidInstanceId.MalFormed The specified instance is not a classic network type instance. 400 The specified instance is not of the classic network type.
InvalidRegionId.Malformed The specified RegionId is invalid. 400 The specified RegionId does not exist. Or you are not authorized to access the specified region.
InvalidVpcId.Malformed The specified VpcId is invalid. 400 The specified VpcId is invalid.
InvalidInstanceId.NotBelong The user does not own the specified instance. 403 The specified instance does not belong to you.
InvalidStatus.InstanceLocked The specified instance is in another process list. 403 The specified instance is processing other procedures.
InvalidStatus.InstanceStatus Only the Running or Stopped InstanceStatus is allowed. 403 The specified instance must be Running (Running) or Stopped (Stopped).
InvalidInstanceId.NotFound The specified InstanceId does not exist. 404 The specified InstanceId does not exist.