404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.149.253.148: ~ $
**Example 1: To describe the health of the targets for a target group**

The following ``describe-target-health`` example displays health details for the targets of the specified target group. These targets are healthy. ::

    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"
                }
            }
        ]
    }

**Example 2: To describe the health of a target**

The following ``describe-target-health`` example displays health details for the specified target. This target is healthy. ::

    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 example output is 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. ::

    {
        "TargetHealthDescriptions": [
        {
            "HealthCheckPort": "80",
            "Target": {
                "Id": "i-0f76fade",
                "Port": 80
            },
                "TargetHealth": {
                    "State": "unused",
                    "Reason": "Target.NotInUse",
                    "Description": "Target group is not configured to receive traffic from the load balancer"
                }
            }
        ]
    }

The following example output is for a target whose target group was just specified in an action for a listener. The target is still being registered. ::

    {
        "TargetHealthDescriptions": [
            {
                "HealthCheckPort": "80",
                "Target": {
                    "Id": "i-0f76fade",
                    "Port": 80
                },
                "TargetHealth": {
                    "State": "initial",
                    "Reason": "Elb.RegistrationInProgress",
                    "Description": "Target registration is in progress"
                }
            }
        ]
    }

The following example output is for an unhealthy target. ::

    {
        "TargetHealthDescriptions": [
            {
                "HealthCheckPort": "80",
                "Target": {
                    "Id": "i-0f76fade",
                    "Port": 80
                },
                "TargetHealth": {
                    "State": "unhealthy",
                    "Reason": "Target.Timeout",
                    "Description": "Connection to target timed out"
                }
            }
        ]
    }

The following example output is for a target that is a Lambda function and health checks are disabled. ::

    {
        "TargetHealthDescriptions": [
            {
                "Target": {
                    "Id": "arn:aws:lambda:us-west-2:123456789012:function:my-function",
                    "AvailabilityZone": "all",
                },
                "TargetHealth": {
                    "State": "unavailable",
                    "Reason": "Target.HealthCheckDisabled",
                    "Description": "Health checks are not enabled for this target"
                }
            }
        ]
    }

Filemanager

Name Type Size Permission Actions
wait Folder 0755
add-listener-certificates.rst File 653 B 0644
add-tags.rst File 390 B 0644
create-listener.rst File 6.53 KB 0644
create-load-balancer.rst File 6.97 KB 0644
create-rule.rst File 3.72 KB 0644
create-target-group.rst File 5.71 KB 0644
delete-listener.rst File 281 B 0644
delete-load-balancer.rst File 293 B 0644
delete-rule.rst File 283 B 0644
delete-target-group.rst File 277 B 0644
deregister-targets.rst File 833 B 0644
describe-account-limits.rst File 1.51 KB 0644
describe-listener-certificates.rst File 895 B 0644
describe-listeners.rst File 2.71 KB 0644
describe-load-balancer-attributes.rst File 1.85 KB 0644
describe-load-balancers.rst File 1.47 KB 0644
describe-rules.rst File 727 B 0644
describe-ssl-policies.rst File 1.44 KB 0644
describe-tags.rst File 785 B 0644
describe-target-group-attributes.rst File 1.75 KB 0644
describe-target-groups.rst File 1.9 KB 0644
describe-target-health.rst File 4.18 KB 0644
modify-listener.rst File 3.72 KB 0644
modify-load-balancer-attributes.rst File 2.87 KB 0644
modify-rule.rst File 1.33 KB 0644
modify-target-group-attributes.rst File 858 B 0644
modify-target-group.rst File 1.26 KB 0644
register-targets.rst File 1.95 KB 0644
remove-listener-certificates.rst File 440 B 0644
remove-tags.rst File 367 B 0644
set-ip-address-type.rst File 459 B 0644
set-rule-priorities.rst File 1.05 KB 0644
set-security-groups.rst File 428 B 0644
set-subnets.rst File 631 B 0644