Document navigation

GetLoadBalancerListenerBackendServers

API Request

URLs
GET zstack/v1/load-balancers/listeners/{listenerUuid}/servergroups/{serverGroupUuid}/backendservers
Headers
Authorization: OAuth the-session-uuid
Curl Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET \
http://localhost:8080/zstack/v1/load-balancers/listeners/eff3eff582263d3c86a13819cd2b5d18/servergroups/9aaca80649283a739a83d41ecc8a38fb/backendservers
Request Parameters
NameTypeLocationDescriptionOptional ValuesStarting Version
listenerUuidStringurlThe SLB listener UUID.5.5.38
serverGroupUuidStringurlThe backend server group UUID.5.5.38
systemTagsListqueryOptional. The system tags.5.5.38
userTagsListqueryOptional. The user tags.5.5.38

API Response

Sample Response
{
  "inventories": [
    {
      "listenerUuid": "40e47fa21a763ced90e7926e2a67ec9f",
      "serverGroupUuid": "a20be0947e533b638549364fdd67c2af",
      "backendType": "VmNic",
      "vmNicUuid": "00278a9dd20139e798165db238bcaa82",
      "ipAddress": "192.168.0.10",
      "weight": 100,
      "state": "Enabled",
      "runtimeStatus": "Active",
      "healthStatus": "Unknown",
      "instancePort": 8080
    }
  ]
}
NameTypeDescriptionStarting Version
successbooleanWhether the operation succeeds.5.5.38
errorErrorCodeThe error code. If not null, the operation fails, or vice versa. See error.5.5.38
inventoriesListSee inventories.5.5.38
#inventories
NameTypeDescriptionStarting Version
listenerUuidStringThe SLB listener UUID.5.5.38
serverGroupUuidStringThe backend server group UUID.5.5.38
backendTypeStringThe backend server type. Valid values: VmNic and ServerIp.5.5.38
vmNicUuidStringThe VM NIC UUID.5.5.38
serverIpStringThe configured address of the IP-type backend server.5.5.38
ipAddressStringThe actual IP address of the backend server.5.5.38
weightLongThe weight of the backend server.5.5.38
stateStringThe administrative state of the backend server.5.5.38
runtimeStatusStringThe running state of the backend server.5.5.38
healthStatusStringThe health status of the backend server.5.5.38
instancePortIntegerThe backend server port.5.5.38
#error
NameTypeDescriptionStarting Version
codeStringThe error code, which is a globally unique identifier of the error, for example, SYS.1000 or HOST.1001.5.3.20
descriptionStringThe brief description of the error.5.3.20
detailsStringThe details about the error.5.3.20
elaborationStringThe reserved field. Default: null.5.3.20
opaqueLinkedHashMapThe reserved field. Default: null.5.3.20
causeErrorCodeThe root error, which is the source error that causes the current error. If there is no source error, this field is null.5.3.20

SDK Sample

Java SDK
GetLoadBalancerListenerBackendServersAction action = new GetLoadBalancerListenerBackendServersAction();
action.listenerUuid = "eff3eff582263d3c86a13819cd2b5d18";
action.serverGroupUuid = "9aaca80649283a739a83d41ecc8a38fb";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetLoadBalancerListenerBackendServersAction.Result res = action.call();
Python SDK
action = GetLoadBalancerListenerBackendServersAction()
action.listenerUuid = "eff3eff582263d3c86a13819cd2b5d18"
action.serverGroupUuid = "9aaca80649283a739a83d41ecc8a38fb"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
res = action.call()
API Reference | 5.5.38 | ZStack Cloud · ZCF | ZStack Resource Center