Bind a Back-end Server to Load Balancer

Last updated: 2019-11-29 19:00:21

API Description

This API (RegisterInstancesWithLoadBalancer) is used to bind one or more CVMs to a load balancer instance.

Domain name for API access:

Request Parameters

The following request parameter list only provides the API request parameters. Common request parameters are required when the API is called.The Action field for this API is RegisterInstancesWithLoadBalancer.

Parameter Name Required Type Description
loadBalancerId Yes String ID of the load balancer instance, which can be queried via the API DescribeLoadBalancers.
backends.n.instanceId Yes String Unique ID of the CVM, which can be obtained from "unInstanceId" in the returned fields of API DescribeInstances.
This API allows entering instance IDs of multiple CVMs at a time. For example, if you want to enter two CVMs, enter: backends.0.instanceId&backends.1.instanceId.
backends.n.weight No Int Weight of the CVM. Value range: 0-100. Default is 10.

Response Parameters

Parameter Name Type Description
code Int Common error code; 0: Successful; other values: Failed.
message String Module error message description depending on API.
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.


&<Common request parameters>


  "code" : 0,
  "message" : "",
  "codeDesc": "Success",
  "requestId" : 1234
Sales Support

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800-964-163 (Toll Free)
United States
+1 888-652-2736 (Toll Free)
+86 75595716