Difference between revisions of "Aws elbv2 describe-target-groups"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
 
  [[aws elbv2]] describe-target-groups  | grep [[TargetGroupName]]
 
  [[aws elbv2]] describe-target-groups  | grep [[TargetGroupName]]
  
<pre>
+
 
{
+
{
    "TargetGroups": [
+
    "TargetGroups": [
        {
+
        {
            "TargetGroupName": "my-targets",
+
            "TargetGroupName": "my-targets",
            "Protocol": "HTTP",
+
            "Protocol": "HTTP",
            "Port": 80,
+
            "Port": 80,
            "VpcId": "vpc-3ac0fb5f",
+
            "VpcId": "vpc-3ac0fb5f",
            "TargetType": "instance",
+
            "TargetType": "instance",
            "HealthCheckEnabled": true,
+
            "HealthCheckEnabled": true,
            "UnhealthyThresholdCount": 2,
+
            "UnhealthyThresholdCount": 2,
            "HealthyThresholdCount": 5,
+
            "HealthyThresholdCount": 5,
            "HealthCheckPath": "/",
+
            "HealthCheckPath": "/",
            "Matcher": {
+
            "Matcher": {
                "HttpCode": "200"
+
                "HttpCode": "200"
            },
+
            },
            "HealthCheckProtocol": "HTTP",
+
            "HealthCheckProtocol": "HTTP",
            "HealthCheckPort": "traffic-port",
+
            "HealthCheckPort": "traffic-port",
            "HealthCheckIntervalSeconds": 30,
+
            "HealthCheckIntervalSeconds": 30,
            "HealthCheckTimeoutSeconds": 5,
+
            "HealthCheckTimeoutSeconds": 5,
            "TargetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
+
            "TargetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
            "LoadBalancerArns": [
+
            "LoadBalancerArns": [
                "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"
+
                "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"
            ]
+
            ]
        }
+
        }
    ]
+
    ]
}
+
}
</pre>
+
 
  
  

Revision as of 09:24, 22 October 2021

https://docs.aws.amazon.com/cli/latest/reference/elbv2/describe-target-groups.html

aws elbv2 describe-target-groups  | grep TargetGroupName


{
    "TargetGroups": [
        {
            "TargetGroupName": "my-targets",
            "Protocol": "HTTP",
            "Port": 80,
            "VpcId": "vpc-3ac0fb5f",
            "TargetType": "instance",
            "HealthCheckEnabled": true,
            "UnhealthyThresholdCount": 2,
            "HealthyThresholdCount": 5,
            "HealthCheckPath": "/",
            "Matcher": {
                "HttpCode": "200"
            },
            "HealthCheckProtocol": "HTTP",
            "HealthCheckPort": "traffic-port",
            "HealthCheckIntervalSeconds": 30,
            "HealthCheckTimeoutSeconds": 5,
            "TargetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
            "LoadBalancerArns": [
                "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188"
            ]
        }
    ]
}



Related


See also

Advertising: