Network Load Balancer API, REST: NetworkLoadBalancer.getTargetStates
Written by
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
Parameter | Description |
---|---|
networkLoadBalancerId | ID of the NetworkLoadBalancer resource with an attached target group. The maximum string length in characters is 50. |
Query parameters
Parameter | Description |
---|---|
targetGroupId | ID of the target group to get states of resources from. The maximum string length in characters is 50. |
Response
HTTP Code: 200 - OK
{
"targetStates": [
{
"subnetId": "string",
"address": "string",
"status": "string"
}
]
}
Field | Description |
---|---|
targetStates[] | object List of states of targets within the target group that is specified in the |
targetStates[]. subnetId |
string ID of the subnet that the target is connected to. |
targetStates[]. address |
string IP address of the target. |
targetStates[]. status |
string Status of the target. Status of the target.
|