Application Load Balancer API, gRPC: LoadBalancerService.GetTargetStates
Returns the statuses of all targets of the specified backend group in all their availability zones.
gRPC request
rpc GetTargetStates (GetTargetStatesRequest) returns (GetTargetStatesResponse)
GetTargetStatesRequest
{
"loadBalancerId": "string",
"backendGroupId": "string",
"targetGroupId": "string"
}
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. |
GetTargetStatesResponse
{
"targetStates": [
{
"status": {
"zoneStatuses": [
{
"zoneId": "string",
"status": "Status",
"failedActiveHc": "bool"
}
]
},
"target": {
// Includes only one of the fields `ipAddress`
"ipAddress": "string",
// end of the list of possible fields
"subnetId": "string",
"privateIpv4Address": "bool"
}
}
]
}
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 |
bool 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 |
bool If set, will not require |