Network Load Balancer API, REST: NetworkLoadBalancer.GetTargetStates
Written by
Updated at November 26, 2024
Gets states of target resources in the attached target group.
HTTP request
GET https://load-balancer.api.cloud.yandex.net/load-balancer/v1/networkLoadBalancers/{networkLoadBalancerId}:getTargetStates
Path parameters
Field |
Description |
networkLoadBalancerId |
string Required field. ID of the NetworkLoadBalancer resource with an attached target group. |
Query parameters
Field |
Description |
targetGroupId |
string ID of the target group to get states of resources from. |
Response
HTTP Code: 200 - OK
{
"targetStates": [
{
"subnetId": "string",
"address": "string",
"status": "string"
}
]
}
Field |
Description |
targetStates[] |
List of states of targets within the target group that is specified in the GetTargetStatesRequest message. |
TargetState
State of the target that was returned after the last health check.
Field |
Description |
subnetId |
string ID of the subnet that the target is connected to. |
address |
string IP address of the target. |
status |
enum (Status) Status of the target.
|