History
Introduction
API Category
Making API Requests
Region APIs
Instance APIs
Cloud Hosting Cluster APIs
Image APIs
Instance Launch Template APIs
Placement Group APIs
Key APIs
Security Group APIs
Network APIs
Data Types
Error Codes
lb.api.qcloud.comAction field for this API is RegisterInstancesWithLoadBalancer.Parameter | Required | Type | Description |
loadBalancerId | Yes | String | |
backends.n.instanceId | Yes | String | Unique ID of the CVM, which can be obtained from the “unInstanceId” field in the response of the DescribeInstances API.This API supports entering multiple CVM instance IDs at a time. For example, if you want to specify two CVMs, enter backends.0.instanceId&backends.1.instanceId. |
backends.n.weight | No | Int | Weight of the CVM. Value range: 0-100. Default value: 10. |
Parameter | Type | Description |
code | Int | |
message | String | API-related module error message description. |
codeDesc | String | Error code. For a successful operation, "Success" is returned. For a failed operation, a message describing the failure is returned. |
requestId | Int | Request task ID. The API provides an asynchronous task. You can use this parameter to query the operation result via the DescribeLoadBalancersTaskResult API. |
https://lb.api.qcloud.com/v2/index.php?Action=RegisterInstancesWithLoadBalancer&loadBalancerId=lb-abcdefgh&backends.0.instanceId=ins-1234test&backends.0.weight=10&backends.1.instanceId=ins-5678test&backends.1.weight=6
{"code" : 0,"message" : "","codeDesc": "Success","requestId" : 1234}
フィードバック