tencent cloud

负载均衡

DeregisterInstancesFromLoadBalancer

PDF
聚焦模式
字号
最后更新时间: 2024-12-19 17:17:54

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
&loadBalancerId=lb-abcdefgh
&backends.0.instanceId=ins-1234test
&backends.1.instanceId=ins-6789test
Return
{
"code" : 0,
"message" : "",
"codeDesc": "Success",
"requestId" : 1234
}


帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈