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.cloud.yandex.net/apploadbalancer/v1/loadBalancers/{loadBalancerId}/targetStates/{backendGroupId}/{targetGroupId}
Path parameters
Field |
Description |
loadBalancerId |
string Required field. ID of the application load balancer that the backend group is attributed to. |
backendGroupId |
string Required field. ID of the backend group that the target group is attributed to. |
targetGroupId |
string Required field. ID of the target group to get target states of. |
Response
HTTP Code: 200 - OK
{
"targetStates": [
{
"status": {
"zoneStatuses": [
{
"zoneId": "string",
"status": "string",
"failedActiveHc": "boolean"
}
]
},
"target": {
// Includes only one of the fields `ipAddress`
"ipAddress": "string",
// end of the list of possible fields
"subnetId": "string",
"privateIpv4Address": "boolean"
}
}
]
}
Field |
Description |
targetStates[] |
Target states of the specified target group. |
TargetState
A target state resource.
Field |
Description |
status |
Health of the target, i.e. its statuses in all availability zones. |
target |
Required field. Target. |
HealthcheckStatus
Health of the target.
Field |
Description |
zoneStatuses[] |
Statuses of the target in its availability zones. |
ZoneHealthcheckStatus
Health of the target in the availability zone.
Field |
Description |
zoneId |
string Required field. ID of the availability zone. |
status |
enum (Status) Status of the target in the availability zone.
|
failedActiveHc |
boolean Indicates whether the target has been marked Currently the only type of health checks is active, as described above. |
Target
A target resource.
For details about the concept, see documentation.
Field |
Description |
ipAddress |
string IP address of the target. Includes only one of the fields Reference to the target. As of now, targets must only be referred to by their IP addresses. |
subnetId |
string ID of the subnet that the target is connected to. |
privateIpv4Address |
boolean If set, will not require |