{"id":1374,"date":"2018-09-17T08:00:27","date_gmt":"2018-09-16T23:00:27","guid":{"rendered":"https:\/\/www.itc109.com\/knowledge\/?p=1374"},"modified":"2021-09-30T08:58:39","modified_gmt":"2021-09-29T23:58:39","slug":"get-aws-target-group-target","status":"publish","type":"post","link":"https:\/\/www.itc109.com\/knowledge\/aws\/get-aws-target-group-target","title":{"rendered":"AWS &#8211; \u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u60c5\u5831\u306e\u53d6\u5f97"},"content":{"rendered":"<h4><strong>\u6982\u8981<\/strong><\/h4>\n<p>[ describe-target-groups ] \u3092\u7528\u3044\u3066\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306e\u60c5\u5831\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u304c\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306f\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u306e\u5bfe\u8c61\u3068\u306a\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u3057\u3066\u675f\u306d\u3089\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u60c5\u5831\u304c\u5408\u308f\u305b\u3066\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>[ describe-target-groups ] \u3092\u7528\u3044\u3066\u53d6\u5f97\u3057\u305f\u60c5\u5831\u304b\u3089\u30bf\u30fc\u30b2\u30c3\u30c8\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>\u624b\u9806<\/strong><\/h4>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>aws elbv2 describe-target-health --target-group-arn %TARGETGROUPARN%<\/code><\/pre>\n<\/div>\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n<p><strong>TEXT<\/strong><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>TARGETHEALTHDESCRIPTIONS        80\r\nTARGET  i-0cee8c0bc84b6760*     80\r\nTARGETHEALTH    healthy\r\nTARGETHEALTHDESCRIPTIONS        80\r\nTARGET  i-0e1ccd90fd2a6e55*     80\r\nTARGETHEALTH    healthy\r\n<\/code><\/pre>\n<\/div>\n<p><strong>TABLE<\/strong><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>-------------------------------------\r\n|       DescribeTargetHealth        |\r\n+-----------------------------------+\r\n||    TargetHealthDescriptions     ||\r\n|+---------------------------------+|\r\n||         HealthCheckPort         ||\r\n|+---------------------------------+|\r\n||  80                             ||\r\n|+---------------------------------+|\r\n|||            Target             |||\r\n||+----------------------+--------+||\r\n|||          Id          | Port   |||\r\n||+----------------------+--------+||\r\n|||  i-0cee8c0bc84b6760* |  80    |||\r\n||+----------------------+--------+||\r\n|||         TargetHealth          |||\r\n||+-------------+-----------------+||\r\n|||  State      |  healthy        |||\r\n||+-------------+-----------------+||\r\n||    TargetHealthDescriptions     ||\r\n|+---------------------------------+|\r\n||         HealthCheckPort         ||\r\n|+---------------------------------+|\r\n||  80                             ||\r\n|+---------------------------------+|\r\n|||            Target             |||\r\n||+----------------------+--------+||\r\n|||          Id          | Port   |||\r\n||+----------------------+--------+||\r\n|||  i-0e1ccd90fd2a6e55* |  80    |||\r\n||+----------------------+--------+||\r\n|||         TargetHealth          |||\r\n||+-------------+-----------------+||\r\n|||  State      |  healthy        |||\r\n||+-------------+-----------------+||\r\n<\/code><\/pre>\n<\/div>\n<p><strong>JSON<\/strong><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>{\r\n    \"TargetHealthDescriptions\": [\r\n        {\r\n            \"HealthCheckPort\": \"80\",\r\n            \"Target\": {\r\n                \"Id\": \"i-0cee8c0bc84b6760*\",\r\n                \"Port\": 80\r\n            },\r\n            \"TargetHealth\": {\r\n                \"State\": \"healthy\"\r\n            }\r\n        },\r\n        {\r\n            \"HealthCheckPort\": \"80\",\r\n            \"Target\": {\r\n                \"Id\": \"i-0e1ccd90fd2a6e55*\",\r\n                \"Port\": 80\r\n            },\r\n            \"TargetHealth\": {\r\n                \"State\": \"healthy\"\r\n            }\r\n        }\r\n    ]\r\n}\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u51fa\u529b\u7d50\u679c\u304b\u3089\u4ee5\u4e0b\u306e\u9805\u76ee\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<table style=\"border-collapse: collapse; width: 100%; height: 264px;\" border=\"1\">\n<tbody>\n<tr style=\"height: 24px;\">\n<th style=\"height: 24px;\">\u9805\u76ee<\/th>\n<th style=\"height: 24px;\">\u5f62\u5f0f<\/th>\n<th style=\"height: 24px;\">\u8aac\u660e<\/th>\n<th style=\"height: 24px;\">\u5bfe\u5fdc\u7b87\u6240<\/th>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">TargetHealthDescriptions<\/td>\n<td style=\"height: 24px;\">list<\/td>\n<td style=\"height: 24px;\">&#8211;<\/td>\n<td style=\"height: 24px;\">&#8211;<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">\u3000Target<\/td>\n<td style=\"height: 24px;\">structure<\/td>\n<td style=\"height: 24px;\">&#8211;<\/td>\n<td style=\"height: 24px;\">&#8211;<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">\u3000\u3000Id<\/td>\n<td style=\"height: 24px;\">string<\/td>\n<td style=\"height: 24px;\">\u30bf\u30fc\u30b2\u30c3\u30c8\u306eID\u3002\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u30bf\u30a4\u30d7\u304c\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u5834\u5408\u306f\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9ID\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30bf\u30fc\u30b2\u30c3\u30c8\u30bf\u30a4\u30d7\u304cip\u306e\u5834\u5408\u306f\u3001IP\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/td>\n<td style=\"height: 24px;\">\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9ID,IP\u30a2\u30c9\u30ec\u30b9<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">\u3000\u3000Port<\/td>\n<td style=\"height: 24px;\">integer<\/td>\n<td style=\"height: 24px;\">\u30bf\u30fc\u30b2\u30c3\u30c8\u304c\u30ea\u30b9\u30f3\u3057\u3066\u3044\u308b\u30dd\u30fc\u30c8\u3002<\/td>\n<td style=\"height: 24px;\">\u30dd\u30fc\u30c8<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">\u3000\u3000AvailabilityZone<\/td>\n<td style=\"height: 24px;\">string<\/td>\n<td style=\"height: 24px;\">\u53ef\u7528\u6027\u30be\u30fc\u30f3\u307e\u305f\u306f\u3059\u3079\u3066\u3002<\/td>\n<td style=\"height: 24px;\">\u30a2\u30d9\u30a4\u30e9\u30d3\u30ea\u30c6\u30a3\u30fc\u30be\u30fc\u30f3<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">\u3000HealthCheckPort<\/td>\n<td style=\"height: 24px;\">string<\/td>\n<td style=\"height: 24px;\">\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u306e\u63a5\u7d9a\u306b\u4f7f\u7528\u3059\u308b\u30dd\u30fc\u30c8\u3002<\/td>\n<td style=\"height: 24px;\">\u30dd\u30fc\u30c8<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">\u3000TargetHealth<\/td>\n<td style=\"height: 24px;\">structure<\/td>\n<td style=\"height: 24px;\">&#8211;<\/td>\n<td style=\"height: 24px;\">&#8211;<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">\u3000\u3000State<\/td>\n<td style=\"height: 24px;\">string<\/td>\n<td style=\"height: 24px;\">\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u72b6\u614b\u3002<\/td>\n<td style=\"height: 24px;\">\u30b9\u30c6\u30fc\u30bf\u30b9<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">\u3000\u3000Reason<\/td>\n<td style=\"height: 24px;\">string<\/td>\n<td style=\"height: 24px;\">\u7406\u7531\u30b3\u30fc\u30c9\u3002\u30bf\u30fc\u30b2\u30c3\u30c8\u72b6\u614b\u304c\u6b63\u5e38\u306a\u5834\u5408\u3001\u7406\u7531\u30b3\u30fc\u30c9\u306f\u63d0\u4f9b\u3055\u308c\u307e\u305b\u3093\u3002<\/td>\n<td style=\"height: 24px;\">&#8211;<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">\u3000\u3000Description<\/td>\n<td style=\"height: 24px;\">string<\/td>\n<td style=\"height: 24px;\">\u8ffd\u52a0\u306e\u8a73\u7d30\u3092\u63d0\u4f9b\u3059\u308b\u30bf\u30fc\u30b2\u30c3\u30c8\u30fb\u30d8\u30eb\u30b9\u306e\u8aac\u660e\u3002\u72b6\u614b\u304c\u5065\u5168\u306a\u5834\u5408\u3001\u8aac\u660e\u306f\u63d0\u4f9b\u3055\u308c\u307e\u305b\u3093\u3002<\/td>\n<td style=\"height: 24px;\">&#8211;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 [ describe-target-groups ] \u3092\u7528\u3044\u3066\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306e\u60c5\u5831\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u304c\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306f\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u306e\u5bfe\u8c61\u3068\u306a\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u3057\u3066\u675f\u306d\u3089\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u30bf\u30fc\u30b2\u30c3\u30c8&#8230;<\/p>\n","protected":false},"author":3,"featured_media":23,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[2],"tags":[30,96,82],"class_list":["post-1374","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws","tag-aws-cli","tag-target-group","tag-82"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.itc109.com\/knowledge\/wp-content\/uploads\/sites\/2\/logo\/logo-aws.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pacZwp-ma","_links":{"self":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/1374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/comments?post=1374"}],"version-history":[{"count":11,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/1374\/revisions"}],"predecessor-version":[{"id":2534,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/1374\/revisions\/2534"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/media\/23"}],"wp:attachment":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/media?parent=1374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/categories?post=1374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/tags?post=1374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}