Network Load Balancer API, gRPC: NetworkLoadBalancerService.GetTargetStates
Written by
Updated at November 26, 2024
Gets states of target resources in the attached target group.
gRPC request
rpc GetTargetStates (GetTargetStatesRequest) returns (GetTargetStatesResponse)
GetTargetStatesRequest
{
"network_load_balancer_id": "string",
"target_group_id": "string"
}
Field |
Description |
network_load_balancer_id |
string ID of the NetworkLoadBalancer resource with an attached target group. |
target_group_id |
string ID of the target group to get states of resources from. |
GetTargetStatesResponse
{
"target_states": [
{
"subnet_id": "string",
"address": "string",
"status": "Status"
}
]
}
Field |
Description |
target_states[] |
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 |
subnet_id |
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.
|