Adds backend servers.
Operation description
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
slb:AddBackendServers | update |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No | The ID of the region where the Classic Load Balancer (CLB) instance is deployed. You can call the DescribeRegions operation to query the most recent region list. | cn-beijing |
LoadBalancerId | string | Yes | The ID of the CLB instance. | lb-2ze7o5h52g02kkzz****** |
BackendServers | string | No | The list of backend servers that you want to add. Set the following parameters:
Note
You can specify ENIs and elastic container instances as the backend servers only for high-performance CLB instances.
Examples:
Note
The backend servers that you add to a CLB instance must be in the Running state. You can add at most 20 backend servers to a CLB instance in each request.
| [{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168.**.**", "Port":"80","Description":"test-112" },{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "172.166.**.**", "Port":"80","Description":"test-113" }] |
Response parameters
Examples
Sample success responses
JSON
format
{
"LoadBalancerId": "lb-2ze7o5h52g02kkzz****",
"RequestId": "34B82C81-F13B-4EEB-99F6-A048C67CC830",
"BackendServers": {
"BackendServer": [
{
"Type": "ecs",
"Weight": "100",
"Description": "backend server",
"ServerId": "i-2zej4lxhjoq1icu*****"
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParameter | The specified load balancer does not support the network type of the ECS instance. | The specified SLB instance does not support this network type ECS instance. Switch to another network type and try again. |
400 | Mismatched.ZoneId | The zone of the server is not matched with the cloud box loadbalancer. | - |
400 | BackendServerProcessing | Backend Server is adding, please try again later. | - |
400 | InvalidBackendServers.ServerIpConflict | %s. | - |
400 | OperationUnsupported.AddBackendServers | This type of backend server is not allowed to attached to singleTunnel or anyTunnel lb. | - |
400 | IncorrectStatus.RSByPassToas | %s. | - |
400 | OperationFailed.ActionNotSupport | The loadbalancer does not support such action. | - |
400 | NetworkConflict | %s. | - |
400 | SystemBusy | The system is busy. | The service is unavailable. Please try again later. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|