PATH:
usr
/
local
/
jetapps
/
var
/
lib
/
aws
/
lib
/
python2.7
/
site-packages
/
awscli
/
examples
/
elbv2
**To describe the health of the targets for a target group** This example describes the health of the targets for the specified target group. These targets are healthy. Command:: aws elbv2 describe-target-health --target-group-arn arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067 Output:: { "TargetHealthDescriptions": [ { "HealthCheckPort": "80", "Target": { "Id": "i-ceddcd4d", "Port": 80 }, "TargetHealth": { "State": "healthy" } }, { "HealthCheckPort": "80", "Target": { "Id": "i-0f76fade", "Port": 80 }, "TargetHealth": { "State": "healthy" } } ] } **To describe the health of a target** This example describes the health of the specified target. This target is healthy. Command:: aws elbv2 describe-target-health --targets Id=i-0f76fade,Port=80 --target-group-arn arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067 Output:: { "TargetHealthDescriptions": [ { "HealthCheckPort": "80", "Target": { "Id": "i-0f76fade", "Port": 80 }, "TargetHealth": { "State": "healthy" } } ] } The following is an example response for a target whose target group is not specified in an action for a listener. This target can't receive traffic from the load balancer. Output:: { "TargetHealthDescriptions": [ { "Target": { "Id": "i-0f76fade", "Port": 80 }, "TargetHealth": { "State": "unused", "Reason": "Target.NotInUse", "Description": "Given target group is not configured to receive traffic from ELB" } } ] } The following is an example response for a target who target group was just specified in an action for a listener. The target is still being registered. Output:: { "TargetHealthDescriptions": [ { "Target": { "Id": "i-0f76fade", "Port": 80 }, "TargetHealth": { "State": "initial", "Reason": "Elb.RegistrationInProgress", "Description": "Target registration is in progress" } } ] } The following is an example response for an unhealthy target. Output:: { "TargetHealthDescriptions": [ { "Target": { "Id": "i-0f76fade", "Port": 80 }, "TargetHealth": { "State": "unhealthy", "Reason": "Target.Timeout", "Description": "Connection to target timed out" } } ] }
[-] modify-listener.rst
[edit]
[-] describe-listener-certificates.rst
[edit]
[-] create-target-group.rst
[edit]
[-] add-tags.rst
[edit]
[-] describe-target-group-attributes.rst
[edit]
[-] modify-load-balancer-attributes.rst
[edit]
[+]
..
[-] describe-rules.rst
[edit]
[-] delete-target-group.rst
[edit]
[-] describe-load-balancer-attributes.rst
[edit]
[-] delete-listener.rst
[edit]
[-] set-subnets.rst
[edit]
[-] set-security-groups.rst
[edit]
[-] add-listener-certificates.rst
[edit]
[-] modify-rule.rst
[edit]
[-] describe-target-groups.rst
[edit]
[-] modify-target-group-attributes.rst
[edit]
[-] describe-account-limits.rst
[edit]
[-] delete-rule.rst
[edit]
[-] delete-load-balancer.rst
[edit]
[-] register-targets.rst
[edit]
[-] describe-tags.rst
[edit]
[-] modify-target-group.rst
[edit]
[-] remove-tags.rst
[edit]
[-] describe-ssl-policies.rst
[edit]
[-] remove-listener-certificates.rst
[edit]
[-] create-rule.rst
[edit]
[-] deregister-targets.rst
[edit]
[-] set-ip-address-type.rst
[edit]
[-] create-listener.rst
[edit]
[-] describe-target-health.rst
[edit]
[-] describe-listeners.rst
[edit]
[-] set-rule-priorities.rst
[edit]
[-] describe-load-balancers.rst
[edit]
[-] create-load-balancer.rst
[edit]