{"id":1268,"date":"2018-07-30T08:00:05","date_gmt":"2018-07-29T23:00:05","guid":{"rendered":"https:\/\/www.itc109.com\/knowledge\/?p=1268"},"modified":"2021-09-30T08:58:39","modified_gmt":"2021-09-29T23:58:39","slug":"get-aws-target-group","status":"publish","type":"post","link":"https:\/\/www.itc109.com\/knowledge\/aws\/get-aws-target-group","title":{"rendered":"AWS &#8211; \u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u60c5\u5831\u306e\u53d6\u5f97"},"content":{"rendered":"<h4><strong>\u6982\u8981<\/strong><\/h4>\n<p>\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote>\n<p><a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/elasticloadbalancing\/latest\/application\/load-balancer-target-groups.html\" target=\"_blank\" rel=\"noopener\"><strong>\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7<\/strong><\/a><br \/>\n1 \u3064\u4ee5\u4e0a\u306e\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u5404\u30ea\u30b9\u30ca\u30fc\u306e\u30eb\u30fc\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3068\u304d\u306b\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u3068\u6761\u4ef6\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30eb\u30fc\u30eb\u306e\u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u308b\u3068\u3001\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u304c\u8a72\u5f53\u3059\u308b\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306b\u8ee2\u9001\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<\/blockquote>\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-groups<\/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>TARGETGROUPS    30      \/       traffic-port    HTTP    5       5       80      HTTP    arn:aws:elasticloadbalancing:ap-northeast-1:987654321000:targetgroup\/tg-alb-ext\/7624b0e9f83ad82*    tg-alb-ext  instance        2       vpc-8db025e*\r\nLOADBALANCERARNS        arn:aws:elasticloadbalancing:ap-northeast-1:987654321000:loadbalancer\/app\/alb-ext\/a54953361b2ea5c*\r\nMATCHER 200\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|                                                          DescribeTargetGroups                                                          |\r\n+----------------------------------------------------------------------------------------------------------------------------------------+\r\n||                                                             TargetGroups                                                             ||\r\n|+----------------------------+---------------------------------------------------------------------------------------------------------+|\r\n||  HealthCheckIntervalSeconds|  30                                                                                                     ||\r\n||  HealthCheckPath           |  \/                                                                                                      ||\r\n||  HealthCheckPort           |  traffic-port                                                                                           ||\r\n||  HealthCheckProtocol       |  HTTP                                                                                                   ||\r\n||  HealthCheckTimeoutSeconds |  5                                                                                                      ||\r\n||  HealthyThresholdCount     |  5                                                                                                      ||\r\n||  Port                      |  80                                                                                                     ||\r\n||  Protocol                  |  HTTP                                                                                                   ||\r\n||  TargetGroupArn            |  arn:aws:elasticloadbalancing:ap-northeast-1:987654321000:targetgroup\/tg-alb-ext\/7624b0e9f83ad82*       ||\r\n||  TargetGroupName           |  tg-alb-ext                                                                                             ||\r\n||  TargetType                |  instance                                                                                               ||\r\n||  UnhealthyThresholdCount   |  2                                                                                                      ||\r\n||  VpcId                     |  vpc-8db025e*                                                                                           ||\r\n|+----------------------------+---------------------------------------------------------------------------------------------------------+|\r\n|||                                                          LoadBalancerArns                                                          |||\r\n||+------------------------------------------------------------------------------------------------------------------------------------+||\r\n|||  arn:aws:elasticloadbalancing:ap-northeast-1:987654321000:loadbalancer\/app\/alb-ext\/a54953361b2ea5c*                                |||\r\n||+------------------------------------------------------------------------------------------------------------------------------------+||\r\n|||                                                               Matcher                                                              |||\r\n||+-----------------------------------------------------------------------------------+------------------------------------------------+||\r\n|||  HttpCode                                                                         |  200                                           |||\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    \"TargetGroups\": [\r\n        {\r\n            \"HealthCheckPath\": \"\/\",\r\n            \"HealthCheckIntervalSeconds\": 30,\r\n            \"VpcId\": \"vpc-8db025e*\",\r\n            \"Protocol\": \"HTTP\",\r\n            \"HealthCheckTimeoutSeconds\": 5,\r\n            \"TargetType\": \"instance\",\r\n            \"HealthCheckProtocol\": \"HTTP\",\r\n            \"LoadBalancerArns\": [\r\n                \"arn:aws:elasticloadbalancing:ap-northeast-1:987654321000:loadbalancer\/app\/alb-ext\/a54953361b2ea5c*\"\r\n            ],\r\n            \"UnhealthyThresholdCount\": 2,\r\n            \"HealthyThresholdCount\": 5,\r\n            \"TargetGroupArn\": \"arn:aws:elasticloadbalancing:ap-northeast-1:987654321000:targetgroup\/tg-alb-ext\/7624b0e9f83ad82*\",\r\n            \"Matcher\": {\r\n                \"HttpCode\": \"200\"\r\n            },\r\n            \"HealthCheckPort\": \"traffic-port\",\r\n            \"Port\": 80,\r\n            \"TargetGroupName\": \"tg-alb-ext\"\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%;\" 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;\">TargetGroupArn<\/td>\n<td style=\"height: 24px;\">string<\/td>\n<td style=\"height: 24px;\">\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306eAmazon\u30ea\u30bd\u30fc\u30b9\u540d\uff08ARN\uff09\u3002<\/td>\n<td style=\"height: 24px;\">ARN<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">TargetGroupName<\/td>\n<td style=\"height: 24px;\">string<\/td>\n<td style=\"height: 24px;\">\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306e\u540d\u524d\u3002<\/td>\n<td style=\"height: 24px;\">\u540d\u524d<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">Protocol<\/td>\n<td style=\"height: 24px;\">string<\/td>\n<td style=\"height: 24px;\">\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3059\u308b\u30d7\u30ed\u30c8\u30b3\u30eb\u3002<\/td>\n<td style=\"height: 24px;\">\u30d7\u30ed\u30c8\u30b3\u30eb<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">Port<\/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;\">VpcId<\/td>\n<td style=\"height: 24px;\">string<\/td>\n<td style=\"height: 24px;\">\u30bf\u30fc\u30b2\u30c3\u30c8\u306eVPC\u306eID\u3002<\/td>\n<td style=\"height: 24px;\">VPC<\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"height: 48px;\">HealthCheckProtocol<\/td>\n<td style=\"height: 48px;\">string<\/td>\n<td style=\"height: 48px;\">\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u306e\u63a5\u7d9a\u306b\u4f7f\u7528\u3059\u308b\u30d7\u30ed\u30c8\u30b3\u30eb\u3002<\/td>\n<td style=\"height: 48px;\">\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af &#8211; \u30d7\u30ed\u30c8\u30b3\u30eb<\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"height: 48px;\">HealthCheckPort<\/td>\n<td style=\"height: 48px;\">string<\/td>\n<td style=\"height: 48px;\">\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u306e\u63a5\u7d9a\u306b\u4f7f\u7528\u3059\u308b\u30dd\u30fc\u30c8\u3002<\/td>\n<td style=\"height: 48px;\">\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af &#8211; \u30dd\u30fc\u30c8<\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"height: 48px;\">HealthCheckIntervalSeconds<\/td>\n<td style=\"height: 48px;\">integer<\/td>\n<td style=\"height: 48px;\">\u500b\u3005\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u6b63\u5e38\u6027\u30c1\u30a7\u30c3\u30af\u306e\u9593\u306e\u6982\u7b97\u6642\u9593\uff08\u79d2\u5358\u4f4d\uff09\u3002<\/td>\n<td style=\"height: 48px;\">\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af &#8211; \u9593\u9694<\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"height: 48px;\">HealthCheckTimeoutSeconds<\/td>\n<td style=\"height: 48px;\">integer<\/td>\n<td style=\"height: 48px;\">\u5fdc\u7b54\u304c\u5931\u6557\u3057\u305f\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3092\u610f\u5473\u3059\u308b\u6642\u9593\u306e\u9577\u3055\uff08\u79d2\u5358\u4f4d\uff09\u3002<\/td>\n<td style=\"height: 48px;\">\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af &#8211; \u30bf\u30a4\u30e0\u30a2\u30a6\u30c8<\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"height: 48px;\">HealthyThresholdCount<\/td>\n<td style=\"height: 48px;\">integer<\/td>\n<td style=\"height: 48px;\">\u5065\u5eb7\u3067\u306a\u3044\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u5065\u5eb7\u306a\u3082\u306e\u3068\u8003\u3048\u308b\u524d\u306b\u3001\u9023\u7d9a\u3057\u305f\u5065\u5eb7\u30c1\u30a7\u30c3\u30af\u306e\u6210\u529f\u56de\u6570\u304c\u5fc5\u8981\u3067\u3059\u3002<\/td>\n<td style=\"height: 48px;\">\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af &#8211; \u6b63\u5e38\u306e\u3057\u304d\u3044\u5024<\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"height: 48px;\">UnhealthyThresholdCount<\/td>\n<td style=\"height: 48px;\">integer<\/td>\n<td style=\"height: 48px;\">\u30bf\u30fc\u30b2\u30c3\u30c8\u304c\u4e0d\u5065\u5eb7\u3067\u3042\u308b\u3068\u8003\u3048\u308b\u524d\u306b\u3001\u9023\u7d9a\u3057\u305f\u6b63\u5e38\u6027\u691c\u67fb\u5931\u6557\u306e\u56de\u6570\u3002<\/td>\n<td style=\"height: 48px;\">\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af &#8211; \u975e\u6b63\u5e38\u306e\u3057\u304d\u3044\u5024<\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"height: 48px;\">HealthCheckPath<\/td>\n<td style=\"height: 48px;\">string<\/td>\n<td style=\"height: 48px;\">\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u8981\u6c42\u306e\u5b9b\u5148\u3002<\/td>\n<td style=\"height: 48px;\">\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af &#8211; \u30d1\u30b9<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">Matcher<\/td>\n<td style=\"height: 24px;\">structure<\/td>\n<td style=\"height: 24px;\">\u30bf\u30fc\u30b2\u30c3\u30c8\u304b\u3089\u306e\u6b63\u5e38\u306a\u5fdc\u7b54\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3068\u304d\u306b\u4f7f\u7528\u3059\u308bHTTP\u30b3\u30fc\u30c9\u3002<\/td>\n<td style=\"height: 24px;\">&#8211;<\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"height: 48px;\">\u3000HttpCode<\/td>\n<td style=\"height: 48px;\">string<\/td>\n<td style=\"height: 48px;\">HTTP\u30b3\u30fc\u30c9\u3002<\/td>\n<td style=\"height: 48px;\">\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af &#8211; \u6210\u529f\u30b3\u30fc\u30c9<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">LoadBalancerArns<\/td>\n<td style=\"height: 24px;\">list<\/td>\n<td style=\"height: 24px;\">\u3053\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306b\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u306eAmazon\u30ea\u30bd\u30fc\u30b9\u540d\uff08ARN\uff09\u3002<\/td>\n<td style=\"height: 24px;\">Load Balancer<\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"height: 48px;\">TargetType<\/td>\n<td style=\"height: 48px;\">string<\/td>\n<td style=\"height: 48px;\">\u3053\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306b\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u767b\u9332\u3059\u308b\u969b\u306b\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u306e\u3042\u308b\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u30bf\u30a4\u30d7\u3002\u6307\u5b9a\u3067\u304d\u308b\u5024\u306f\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\uff08\u30bf\u30fc\u30b2\u30c3\u30c8\u306f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9ID\u3067\u6307\u5b9a\uff09\u307e\u305f\u306fIP\uff08\u30bf\u30fc\u30b2\u30c3\u30c8\u306fIP\u30a2\u30c9\u30ec\u30b9\u3067\u6307\u5b9a\uff09\u3067\u3059\u3002<\/td>\n<td style=\"height: 48px;\">\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u7a2e\u985e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002 \u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7 1 \u3064\u4ee5\u4e0a\u306e\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u5404\u30ea\u30b9\u30ca\u30fc\u306e\u30eb\u30fc\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3068\u304d\u306b\u3001\u30bf\u30fc\u30b2\u30c3&#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":false,"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-1268","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-ks","_links":{"self":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/1268","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=1268"}],"version-history":[{"count":22,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/1268\/revisions"}],"predecessor-version":[{"id":2554,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/1268\/revisions\/2554"}],"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=1268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/categories?post=1268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/tags?post=1268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}