Delete Classiclinks

Last updated: 2018-08-24 09:57:57

1. API Description

This API (DetachClassicLinkVpc) is used to delete the link between VPC and CVMs in basic network.
Domain for API request:vpc.api.qcloud.com

2. Input Parameters

The following request parameter list only provides API request parameters. Common request parameters need to be added when the API is called. For more information, refer to Common Request Parameters. The Action field for this API is DetachClassicLinkVpc.

Parameter Name Required Type Description
vpcId Yes String VPC ID assigned by the system. Support both vpcId before the upgrade and unVpcId after the upgrade.
instanceIds.n Yes Array Basic network CVM ID, for example: instanceIds.0=ins-df454d. It can be queried via API DescribeInstances.

3. Output Parameters

Parameter Name Type Description
code Int Common error code; 0: Succeeded; other values: Failed. For more information, please see Common Error Codes.
message String Module error message description depending on API.
taskId Int Task ID. The operation result can be queried with taskId. For more information, please see Query Task Execution Result.

4. Error Codes

The following error code list only provides the business logic error codes for this API. For additional common error codes, refer to VPC Error Codes.

Error Code Description
InvalidInstance.NotFound The CVM does not exist. Please verify that the instanceId you entered is correct. To query the CVMs under the VPC, please see Query CVM Instance List.
InvalidVpc.NotFound The VPC does not exist. Please check the information you entered.

5. Example

Input


  https://vpc.api.qcloud.com/v2/index.php?Action=DetachClassicLinkVpc
    &<Common request parameters>
    &vpcId=vpc-2ari9m7h
    &instanceIds.0=ins-df454d

Output


{
    "code": 0,
    "message": "",
        "taskId":135254
}