tencent cloud

文档反馈

DeregisterInstancesFromLoadBalancer

最后更新时间:2023-06-25 11:37:28

    API Description

    This API is used to unbind one or multiple CVM instances from a CLB instance.

    API domain name: lb.api.qcloud.com

    Request Parameters

    The list below contains only the API request parameters. Common request parameters need to be added when a call is made. For more information, please see Common Request Parameters. The Action field of this API is DeregisterInstancesFromLoadBalancer.

    Parameter Name Required Type Description
    loadBalancerId Yes String CLB instance ID, which can be queried through the DescribeLoadBalancers API.
    backends.n.instanceId Yes String Unique ID of CVM instance, which can be obtained through the `unInstanceId` (recommended) or `instanceId` field returned by the DescribeInstances API. You can enter the IDs of multiple CVM instances (for example, for two CVM instances, enter `backends.0.instanceId&backends.1.instanceId`).

    Response Parameters

    Parameter Name Type Description
    code Int Common error code. 0: success; other values: failure. For more information, please see Common Error Codes.
    message String Module error message related to the API.
    codeDesc String Error code. For a successful operation, "Success" will be returned. For a failed operation, a message describing the failure will be returned.
    requestId Int Request task ID. This API is an async task. You can call the DescribeLoadBalancersTaskResult API to query the task operation result based on this parameter.

    Sample

    Request

    https://lb.api.qcloud.com/v2/index.php?Action=DeregisterInstancesFromLoadBalancer
    &<Common request parameters>
    &loadBalancerId=lb-abcdefgh
    &backends.0.instanceId=ins-1234test
    &backends.1.instanceId=ins-6789test
    

    Return

    {
      "code" : 0,
      "message" : "",
      "codeDesc": "Success",
      "requestId" : 1234
    }
    
    联系我们

    联系我们,为您的业务提供专属服务。

    技术支持

    如果你想寻求进一步的帮助,通过工单与我们进行联络。我们提供7x24的工单服务。

    7x24 电话支持