AWS ELB

Describe target health

Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.

Describe the health of specific targets or all targets.

Inputs

Champ

Type

Description

region [required]

enum

default: us-east-1

targetGroupARN [required]

string

The Amazon Resource Name (ARN) of the target group.

targetIds

[string]

An array of target (instance) IDs to describe.

Outputs

Expand All

Champ

Type

Description

targetsHealth

[object]

Target

object

The description of the target.

Id [required]

string

The ID of the target. If the target type of the target group is instance, specify an instance ID. If the target type is ip, specify an IP address. If the target type is lambda, specify the ARN of the Lambda function. If the target type is alb, specify the ARN of the Application Load Balancer target.

Port

number

The port on which the target is listening. If the target group protocol is GENEVE, the supported port is 6081. If the target type is alb, the targeted Application Load Balancer must have at least one listener whose port matches the target group port. Not used if the target is a Lambda function.

AvailabilityZone

string

An Availability Zone or all. This determines whether the target receives traffic from the load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer. This parameter is not supported if the target type of the target group is instance or alb. If the target type is ip and the IP address is in a subnet of the VPC for the target group, the Availability Zone is automatically detected and this parameter is optional. If the IP address is outside the VPC, this parameter is required. With an Application Load Balancer, if the target type is ip and the IP address is outside the VPC for the target group, the only supported value is all. If the target type is lambda, this parameter is optional and the only supported value is all.

HealthCheckPort

string

The port to use to connect with the target.

TargetHealth

object

The health information for the target.

State

string

The state of the target.

Reason

string

The reason code. If the target state is healthy, a reason code is not provided. If the target state is initial, the reason code can be one of the following values:

  • Elb.RegistrationInProgress - The target is in the process of being registered with the load balancer.
  • Elb.InitialHealthChecking - The load balancer is still sending the target the minimum number of health checks required to determine its health status.
  • If the target state is unhealthy, the reason code can be one of the following values:
  • Target.ResponseCodeMismatch - The health checks did not return an expected HTTP code. Applies only to Application Load Balancers and Gateway Load Balancers.
  • Target.Timeout - The health check requests timed out. Applies only to Application Load Balancers and Gateway Load Balancers.
  • Target.FailedHealthChecks - The load balancer received an error while establishing a connection to the target or the target response was malformed.
  • Elb.InternalError - The health checks failed due to an internal error. Applies only to Application Load Balancers.
  • If the target state is unused, the reason code can be one of the following values:
  • Target.NotRegistered - The target is not registered with the target group.
  • Target.NotInUse - The target group is not used by any load balancer or the target is in an Availability Zone that is not enabled for its load balancer.
  • Target.InvalidState - The target is in the stopped or terminated state.
  • Target.IpUnusable - The target IP address is reserved for use by a load balancer.
  • If the target state is draining, the reason code can be the following value:
  • Target.DeregistrationInProgress - The target is in the process of being deregistered and the deregistration delay period has not expired.
  • If the target state is unavailable, the reason code can be the following value:
  • Target.HealthCheckDisabled - Health checks are disabled for the target group. Applies only to Application Load Balancers.
  • Elb.InternalError - Target health is unavailable due to an internal error. Applies only to Network Load Balancers.

Description

string

A description of the target health that provides additional details. If the state is healthy, a description is not provided.

AnomalyDetection

object

The anomaly detection result for the target. If no anomalies were detected, the result is normal. If anomalies were detected, the result is anomalous.

Result

string

The latest anomaly detection result.

MitigationInEffect

string

Indicates whether anomaly mitigation is in progress.

amzRequestId [required]

string