Application Load Balancer API, REST: LoadBalancer.getTargetStates
Returns the statuses of all targets of the specified backend group in all their availability zones.
HTTP request
GET https://alb.api.il.nebius.cloud/apploadbalancer/v1/loadBalancers/{loadBalancerId}/targetStates/{backendGroupId}/{targetGroupId}
Path parameters
Parameter | Description |
---|---|
loadBalancerId | Required. ID of the application load balancer that the backend group is attributed to. |
backendGroupId | Required. ID of the backend group that the target group is attributed to. |
targetGroupId | Required. ID of the target group to get target states of. |
Response
HTTP Code: 200 - OK
{
"targetStates": [
{
"status": {
"zoneStatuses": [
{
"zoneId": "string",
"status": "string",
"failedActiveHc": true
}
]
},
"target": {
"subnetId": "string",
"privateIpv4Address": true,
"ipAddress": "string"
}
}
]
}
Field | Description |
---|---|
targetStates[] | object Target states of the specified target group. |
targetStates[]. status |
object Health of the target, i.e. its statuses in all availability zones. Health of the target. |
targetStates[]. status. zoneStatuses[] |
object Statuses of the target in its availability zones. |
targetStates[]. status. zoneStatuses[]. zoneId |
string Required. ID of the availability zone. |
targetStates[]. status. zoneStatuses[]. status |
string Status of the target in the availability zone. Supported target statuses.
|
targetStates[]. status. zoneStatuses[]. failedActiveHc |
boolean (boolean) Indicates whether the target has been marked Currently the only type of health checks is active, as described above. Passive health checks, which determine the health of a target based on its responses to production requests (HTTP 5xx status codes, connection errors etc.), are not implemented yet. |
targetStates[]. target |
object Required. Target. A target resource. For details about the concept, see documentation. |
targetStates[]. target. subnetId |
string ID of the subnet that the target is connected to. |
targetStates[]. target. privateIpv4Address |
boolean (boolean) If set, will not require |
targetStates[]. target. ipAddress |
string IP address of the target. |