{"id":1276,"date":"2018-09-10T08:00:01","date_gmt":"2018-09-09T23:00:01","guid":{"rendered":"https:\/\/www.itc109.com\/knowledge\/?p=1276"},"modified":"2021-09-30T08:58:39","modified_gmt":"2021-09-29T23:58:39","slug":"get-aws-db-subnet-group","status":"publish","type":"post","link":"https:\/\/www.itc109.com\/knowledge\/aws\/get-aws-db-subnet-group","title":{"rendered":"AWS &#8211; DB\u30b5\u30d6\u30cd\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u60c5\u5831\u306e\u53d6\u5f97"},"content":{"rendered":"<h4><strong>\u6982\u8981<\/strong><\/h4>\n<hr \/>\n<p>DB\u30b5\u30d6\u30cd\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\/AmazonRDS\/latest\/UserGuide\/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Subnets\" target=\"_blank\" rel=\"noopener\"><strong>DB\u30b5\u30d6\u30cd\u30c3\u30c8<\/strong><\/a><br \/>\n\u30b5\u30d6\u30cd\u30c3\u30c8\u306f\u3001VPC \u306e IP \u30a2\u30c9\u30ec\u30b9\u7bc4\u56f2\u306e\u30bb\u30b0\u30e1\u30f3\u30c8\u3067\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3084\u904b\u7528\u4e0a\u306e\u30cb\u30fc\u30ba\u306b\u57fa\u3065\u3044\u3066\u30ea\u30bd\u30fc\u30b9\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u305f\u3081\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002DB \u30b5\u30d6\u30cd\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306f VPC \u306b\u4f5c\u6210\u3059\u308b\u30b5\u30d6\u30cd\u30c3\u30c8 (\u901a\u5e38\u306f\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8) \u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3067\u3001DB \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u7528\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002DB \u30b5\u30d6\u30cd\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306b\u306f\u3001CLI \u307e\u305f\u306f API \u3092\u4f7f\u7528\u3057\u3066 DB \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3068\u304d\u306b\u7279\u5b9a\u306e VPC \u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u4f7f\u7528\u3059\u308b VPC \u3068\u30b5\u30d6\u30cd\u30c3\u30c8\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/p>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<h4><strong>\u624b\u9806<\/strong><\/h4>\n<hr \/>\n<pre class=\"lang:default decode:true \">aws rds describe-db-subnet-groups\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c <strong>TEXT<\/strong><\/p>\n<pre class=\"lang:default decode:true \">DBSUBNETGROUPS  arn:aws:rds:ap-northeast-1:987654321000:subgrp:dsub-project-01 Project 01 DB Subnet Group  dsub-project-01   Complete        vpc-8db025e*\r\nSUBNETS subnet-a44c06e* Active\r\nSUBNETAVAILABILITYZONE  ap-northeast-1a\r\nSUBNETS subnet-802fa8d* Active\r\nSUBNETAVAILABILITYZONE  ap-northeast-1c\r\n<\/pre>\n<p><strong>TABLE<\/strong><\/p>\n<pre class=\"lang:default decode:true \">--------------------------------------------------------------------------------------------------\r\n|                                   DescribeDBSubnetGroups                                       |\r\n+------------------------------------------------------------------------------------------------+\r\n||                                     DBSubnetGroups                                           ||\r\n|+---------------------------+------------------------------------------------------------------+|\r\n||  DBSubnetGroupArn         |  arn:aws:rds:ap-northeast-1:987654321000:subgrp:dsub-project-01  ||\r\n||  DBSubnetGroupDescription |  Project 01 DB Subnet Group                                      ||\r\n||  DBSubnetGroupName        |  dsub-project-01                                                 ||\r\n||  SubnetGroupStatus        |  Complete                                                        ||\r\n||  VpcId                    |  vpc-8db025e*                                                    ||\r\n|+---------------------------+------------------------------------------------------------------+|\r\n|||                                         Subnets                                            |||\r\n||+----------------------------------------------+---------------------------------------------+||\r\n|||  SubnetIdentifier                            |  subnet-a44c06e*                            |||\r\n|||  SubnetStatus                                |  Active                                     |||\r\n||+----------------------------------------------+---------------------------------------------+||\r\n||||                                  SubnetAvailabilityZone                                  ||||\r\n|||+-----------------------+------------------------------------------------------------------+|||\r\n||||  Name                 |  ap-northeast-1a                                                 ||||\r\n|||+-----------------------+------------------------------------------------------------------+|||\r\n|||                                         Subnets                                            |||\r\n||+----------------------------------------------+---------------------------------------------+||\r\n|||  SubnetIdentifier                            |  subnet-802fa8d*                            |||\r\n|||  SubnetStatus                                |  Active                                     |||\r\n||+----------------------------------------------+---------------------------------------------+||\r\n||||                                  SubnetAvailabilityZone                                  ||||\r\n|||+-----------------------+------------------------------------------------------------------+|||\r\n||||  Name                 |  ap-northeast-1c                                                 ||||\r\n|||+-----------------------+------------------------------------------------------------------+|||\r\n<\/pre>\n<p><strong>JSON<\/strong><\/p>\n<pre class=\"lang:default decode:true \">{\r\n    \"DBSubnetGroups\": [\r\n        {\r\n            \"Subnets\": [\r\n                {\r\n                    \"SubnetStatus\": \"Active\",\r\n                    \"SubnetIdentifier\": \"subnet-a44c06e*\",\r\n                    \"SubnetAvailabilityZone\": {\r\n                        \"Name\": \"ap-northeast-1a\"\r\n                    }\r\n                },\r\n                {\r\n                    \"SubnetStatus\": \"Active\",\r\n                    \"SubnetIdentifier\": \"subnet-802fa8d*\",\r\n                    \"SubnetAvailabilityZone\": {\r\n                        \"Name\": \"ap-northeast-1c\"\r\n                    }\r\n                }\r\n            ],\r\n            \"VpcId\": \"vpc-8db025e*\",\r\n            \"DBSubnetGroupDescription\": \"Project 01 DB Subnet Group \",\r\n            \"SubnetGroupStatus\": \"Complete\",\r\n            \"DBSubnetGroupArn\": \"arn:aws:rds:ap-northeast-1:987654321000:subgrp:dsub-project-01\",\r\n            \"DBSubnetGroupName\": \"dsub-project-01\"\r\n        }\r\n    ]\r\n}\r\n<\/pre>\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;\">DBSubnetGroupName<\/td>\n<td style=\"height: 24px;\">string<\/td>\n<td style=\"height: 24px;\">\u00a0DB\u30b5\u30d6\u30cd\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;\">DBSubnetGroupDescription<\/td>\n<td style=\"height: 24px;\">string<\/td>\n<td style=\"height: 24px;\">DB\u30b5\u30d6\u30cd\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306e\u8aac\u660e\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/td>\n<td style=\"height: 24px;\">\u8aac\u660e<\/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;\">DB\u30b5\u30d6\u30cd\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306eVpcId\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/td>\n<td style=\"height: 24px;\">VPC ID<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">SubnetGroupStatus<\/td>\n<td style=\"height: 24px;\">string<\/td>\n<td style=\"height: 24px;\">DB\u30b5\u30d6\u30cd\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/td>\n<td style=\"height: 24px;\">&#8211;<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">Subnets<\/td>\n<td style=\"height: 24px;\">list<\/td>\n<td style=\"height: 24px;\">\u30b5\u30d6\u30cd\u30c3\u30c8\u8981\u7d20\u306e\u30ea\u30b9\u30c8\u3092\u542b\u307f\u307e\u3059\u3002<\/td>\n<td style=\"height: 24px;\">\u30b5\u30d6\u30cd\u30c3\u30c8<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">\u3000SubnetIdentifier<\/td>\n<td style=\"height: 24px;\">string<\/td>\n<td style=\"height: 24px;\">\u30b5\u30d6\u30cd\u30c3\u30c8\u306e\u8b58\u5225\u5b50\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/td>\n<td style=\"height: 24px;\">\u30b5\u30d6\u30cd\u30c3\u30c8ID<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">\u3000SubnetAvailabilityZone<\/td>\n<td style=\"height: 24px;\">structure<\/td>\n<td style=\"height: 24px;\">\u53ef\u7528\u6027\u30be\u30fc\u30f3\u60c5\u5831\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/td>\n<td style=\"height: 24px;\">\u30a2\u30d9\u30a4\u30e9\u30d3\u30ea\u30c6\u30a3\u30be\u30fc\u30f3<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">\u3000Name<\/td>\n<td style=\"height: 24px;\">string<\/td>\n<td style=\"height: 24px;\">\u53ef\u7528\u6027\u30be\u30fc\u30f3\u306e\u540d\u524d\u3002<\/td>\n<td style=\"height: 24px;\">\u30b5\u30d6\u30cd\u30c3\u30c8\u540d<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">\u3000SubnetStatus<\/td>\n<td style=\"height: 24px;\">string<\/td>\n<td style=\"height: 24px;\">\u30b5\u30d6\u30cd\u30c3\u30c8\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/td>\n<td style=\"height: 24px;\">\u72b6\u614b<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">DBSubnetGroupArn<\/td>\n<td style=\"height: 24px;\">string<\/td>\n<td style=\"height: 24px;\">DB\u30b5\u30d6\u30cd\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<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 DB\u30b5\u30d6\u30cd\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 DB\u30b5\u30d6\u30cd\u30c3\u30c8 \u30b5\u30d6\u30cd\u30c3\u30c8\u306f\u3001VPC \u306e IP \u30a2\u30c9\u30ec\u30b9\u7bc4\u56f2\u306e\u30bb\u30b0\u30e1\u30f3\u30c8\u3067\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3084\u904b\u7528\u4e0a\u306e\u30cb\u30fc\u30ba\u306b\u57fa\u3065\u3044\u3066\u30ea\u30bd\u30fc\u30b9\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u305f\u3081\u306b\u6307&#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,100,82],"class_list":["post-1276","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws","tag-aws-cli","tag-db-subnet-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-kA","_links":{"self":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/1276","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=1276"}],"version-history":[{"count":8,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/1276\/revisions"}],"predecessor-version":[{"id":1713,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/1276\/revisions\/1713"}],"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=1276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/categories?post=1276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/tags?post=1276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}