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