Delete the Classiclink Between a VPC and a Basic Network CVM

Last updated: 2020-06-04 17:29:34


    This is a legacy API which has been hidden and will no longer be updated. We recommend using the new VPC API 3.0 which is standardized and faster.

    1. API Description

    This API (DetachClassicLinkVpc) is used to delete the classiclink between a VPC and a basic network CVM.
    API request domain name:

    2. Input Parameters

    Below is a list of API request parameters. You need to add common request parameters to your request when calling this API. For more information, see the Common Request Parameters page. The Action field for this API is DetachClassicLinkVpc.

    Parameter name Required Type Description
    vpcId Yes String VPC ID assigned by the system. Both the vpcId before upgrade and the upgraded unVpcId are supported.
    instanceIds.n Yes Array ID of basic network CVM, for example: instanceIds.0=ins-df221dd. You can query this ID through the cloud API DescribeInstances.

    3. Output Parameters

    Parameter name Type Description
    code Int Common error code. 0: Successful; other values: Failed. For more information, see Common Error Codes.
    message String Module error message, which depends on the API.
    taskId Int Task ID. You can query the execution result by using taskId. For more information, see the API for Querying Task Execution Results.

    4. Error Codes

    The following error codes only include business logic error codes for this API. For additional common error codes, see VPC Error Codes.

    Error code Description
    InvalidInstance.NotFound The CVM does not exist. In this case, verify whether the instanceId that you entered is correct. To query the CVMs under the VPC, see View the List of CVM Instances.
    InvalidVpc.NotFound Invalid VPC. This error code indicates that the VPC does not exist. In this case, verify whether the resource information that you entered is correct.

    5. Sample


        &<Common Request Parameters>


        "code": 0,
        "message": "",

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback