Difference between revisions of "Aws elbv2 describe-target-groups"
Jump to navigation
Jump to search
(10 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
https://docs.aws.amazon.com/cli/latest/reference/elbv2/describe-target-groups.html | https://docs.aws.amazon.com/cli/latest/reference/elbv2/describe-target-groups.html | ||
− | aws elbv2 describe-target-groups | grep TargetGroupName | + | * <code>[[aws elbv2]] describe-target-groups | grep [[TargetGroupName]]</code> |
+ | * <code>[[aws elbv2]] describe-target-groups | grep [[TargetGroupArn]]</code> | ||
+ | |||
+ | [[aws elbv2]] describe-target-groups --load-balancer-arn <value> | ||
+ | [[aws elbv2]] describe-target-groups [[--target-group-arns]] <value> | ||
+ | |||
+ | |||
+ | == Examples == | ||
+ | [[aws elbv2]] describe-target-groups | ||
+ | { | ||
+ | "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 == | == Related == | ||
* <code>[[aws list all]]</code> | * <code>[[aws list all]]</code> | ||
− | |||
==See also== | ==See also== |
Latest revision as of 06:51, 20 March 2023
https://docs.aws.amazon.com/cli/latest/reference/elbv2/describe-target-groups.html
aws elbv2 describe-target-groups | grep TargetGroupName
aws elbv2 describe-target-groups | grep TargetGroupArn
aws elbv2 describe-target-groups --load-balancer-arn <value> aws elbv2 describe-target-groups --target-group-arns <value>
Examples[edit]
aws elbv2 describe-target-groups { "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[edit]
See also[edit]
Advertising: