{"id":1264,"date":"2018-07-01T08:00:34","date_gmt":"2018-06-30T23:00:34","guid":{"rendered":"https:\/\/www.itc109.com\/knowledge\/?p=1264"},"modified":"2021-09-30T08:58:40","modified_gmt":"2021-09-29T23:58:40","slug":"get-aws-ebs-volume","status":"publish","type":"post","link":"https:\/\/www.itc109.com\/knowledge\/aws\/get-aws-ebs-volume","title":{"rendered":"AWS &#8211; EBS\u30dc\u30ea\u30e5\u30fc\u30e0\u60c5\u5831\u306e\u53d6\u5f97"},"content":{"rendered":"<h4><strong>\u6982\u8981<\/strong><\/h4>\n<p>EBS\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\/AWSEC2\/latest\/UserGuide\/AmazonEBS.html\" target=\"_blank\" rel=\"noopener\"><strong>EBS<\/strong><\/a><br \/>\nAmazon Elastic Block Store (Amazon EBS) \u306f\u3001EC2 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u30d6\u30ed\u30c3\u30af\u30ec\u30d9\u30eb\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u30dc\u30ea\u30e5\u30fc\u30e0\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002EBS \u30dc\u30ea\u30e5\u30fc\u30e0\u306f\u3001\u540c\u3058\u30a2\u30d9\u30a4\u30e9\u30d3\u30ea\u30c6\u30a3\u30fc\u30be\u30fc\u30f3\u306b\u3042\u308b\u5b9f\u884c\u4e2d\u306e\u3069\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u3082\u30a2\u30bf\u30c3\u30c1\u3067\u304d\u308b\u3001\u53ef\u7528\u6027\u3068\u4fe1\u983c\u6027\u306b\u512a\u308c\u305f\u30b9\u30c8\u30ec\u30fc\u30b8\u30dc\u30ea\u30e5\u30fc\u30e0\u3067\u3059\u3002EC2 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u30a2\u30bf\u30c3\u30c1\u3055\u308c\u305f EBS \u30dc\u30ea\u30e5\u30fc\u30e0\u306f\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u904b\u7528\u72b6\u6cc1\u304b\u3089\u3001\u72ec\u7acb\u3057\u305f\u6c38\u7d9a\u6027\u3092\u4fdd\u3064\u30b9\u30c8\u30ec\u30fc\u30b8\u30dc\u30ea\u30e5\u30fc\u30e0\u3068\u3057\u3066\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/blockquote>\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 ec2 describe-volumes<\/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>VOLUMES ap-northeast-1a 2018-01-01T00:00:00.000Z        False   100     8       snap-083bfa23f2e4ac5c*  in-use  vol-0595311324b7aeb5*   gp2\r\nATTACHMENTS     2018-01-01T00:00:00.000Z        False   \/dev\/xvda       i-07acc4012b5efb3a*     attached        vol-0595311324b7aeb5*\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|                    DescribeVolumes                    |\r\n+-------------------------------------------------------+\r\n||                       Volumes                       ||\r\n|+---------------------+-------------------------------+|\r\n||  AvailabilityZone   |  ap-northeast-1a              ||\r\n||  CreateTime         |  2018-01-01T00:00:00.000Z     ||\r\n||  Encrypted          |  False                        ||\r\n||  Iops               |  100                          ||\r\n||  Size               |  8                            ||\r\n||  SnapshotId         |  snap-083bfa23f2e4ac5c*       ||\r\n||  State              |  in-use                       ||\r\n||  VolumeId           |  vol-0595311324b7aeb5*        ||\r\n||  VolumeType         |  gp2                          ||\r\n|+---------------------+-------------------------------+|\r\n|||                    Attachments                    |||\r\n||+----------------------+----------------------------+||\r\n|||  AttachTime          |  2018-01-01T00:00:00.000Z  |||\r\n|||  DeleteOnTermination |  False                     |||\r\n|||  Device              |  \/dev\/xvda                 |||\r\n|||  InstanceId          |  i-07acc4012b5efb3a*       |||\r\n|||  State               |  attached                  |||\r\n|||  VolumeId            |  vol-0595311324b7aeb5*     |||\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    \"Volumes\": [\r\n        {\r\n            \"AvailabilityZone\": \"ap-northeast-1a\",\r\n            \"Attachments\": [\r\n                {\r\n                    \"AttachTime\": \"2018-01-01T00:00:00.000Z\",\r\n                    \"InstanceId\": \"i-07acc4012b5efb3a*\",\r\n                    \"VolumeId\": \"vol-0595311324b7aeb5*\",\r\n                    \"State\": \"attached\",\r\n                    \"DeleteOnTermination\": false,\r\n                    \"Device\": \"\/dev\/xvda\"\r\n                }\r\n            ],\r\n            \"Encrypted\": false,\r\n            \"VolumeType\": \"gp2\",\r\n            \"VolumeId\": \"vol-0595311324b7aeb5*\",\r\n            \"State\": \"in-use\",\r\n            \"Iops\": 100,\r\n            \"SnapshotId\": \"snap-083bfa23f2e4ac5c*\",\r\n            \"CreateTime\": \"2018-01-01T00:00:00.000Z\",\r\n            \"Size\": 8\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;\" 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=\"width: 25%; height: 24px;\">Attachments<\/td>\n<td style=\"width: 25%; height: 24px;\">List<\/td>\n<td style=\"width: 25%; height: 24px;\">\u30dc\u30ea\u30e5\u30fc\u30e0\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u306b\u95a2\u3059\u308b\u60c5\u5831\u3002<\/td>\n<td style=\"width: 25%; height: 24px;\">&#8211;<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 25%; height: 24px;\">\u3000AttachTime<\/td>\n<td style=\"width: 25%; height: 24px;\">timestamp<\/td>\n<td style=\"width: 25%; height: 24px;\">\u30a2\u30bf\u30c3\u30c1\u30e1\u30f3\u30c8\u304c\u958b\u59cb\u3055\u308c\u305f\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3002<\/td>\n<td style=\"width: 25%; height: 24px;\">\u30a2\u30bf\u30c3\u30c1\u6e08\u307f\u60c5\u5831<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 25%; height: 24px;\">\u3000Device<\/td>\n<td style=\"width: 25%; height: 24px;\">string<\/td>\n<td style=\"width: 25%; height: 24px;\">\u30c7\u30d0\u30a4\u30b9\u540d\u3002<\/td>\n<td style=\"width: 25%; height: 24px;\">\u30a2\u30bf\u30c3\u30c1\u6e08\u307f\u60c5\u5831<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 25%; height: 24px;\">\u3000InstanceId<\/td>\n<td style=\"width: 25%; height: 24px;\">string<\/td>\n<td style=\"width: 25%; height: 24px;\">\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306eID\u3002<\/td>\n<td style=\"width: 25%; height: 24px;\">\u30a2\u30bf\u30c3\u30c1\u6e08\u307f\u60c5\u5831<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 25%; height: 24px;\">\u3000State<\/td>\n<td style=\"width: 25%; height: 24px;\">string<\/td>\n<td style=\"width: 25%; height: 24px;\">\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u63a5\u7d9a\u72b6\u614b\u3002<\/td>\n<td style=\"width: 25%; height: 24px;\">\u72b6\u614b<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 25%; height: 24px;\">\u3000VolumeId<\/td>\n<td style=\"width: 25%; height: 24px;\">string<\/td>\n<td style=\"width: 25%; height: 24px;\">\u30dc\u30ea\u30e5\u30fc\u30e0\u306eID\u3002<\/td>\n<td style=\"width: 25%; height: 24px;\">\u30dc\u30ea\u30e5\u30fc\u30e0ID<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 25%; height: 24px;\">\u3000DeleteOnTermination<\/td>\n<td style=\"width: 25%; height: 24px;\">boolean<\/td>\n<td style=\"width: 25%; height: 24px;\">\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u7d42\u4e86\u6642\u306bEBS\u30dc\u30ea\u30e5\u30fc\u30e0\u304c\u524a\u9664\u3055\u308c\u308b\u304b\u3069\u3046\u304b\u3092\u793a\u3057\u307e\u3059\u3002<\/td>\n<td style=\"width: 25%; height: 24px;\">&#8211;<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 25%; height: 24px;\">AvailabilityZone<\/td>\n<td style=\"width: 25%; height: 24px;\">string<\/td>\n<td style=\"width: 25%; height: 24px;\">\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u53ef\u7528\u6027\u30be\u30fc\u30f3\u3002<\/td>\n<td style=\"width: 25%; 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=\"width: 25%; height: 24px;\">CreateTime<\/td>\n<td style=\"width: 25%; height: 24px;\">timestamp<\/td>\n<td style=\"width: 25%; height: 24px;\">\u30dc\u30ea\u30e5\u30fc\u30e0\u4f5c\u6210\u304c\u958b\u59cb\u3055\u308c\u305f\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3002<\/td>\n<td style=\"width: 25%; height: 24px;\">\u4f5c\u6210\u65e5<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 25%; height: 24px;\">Encrypted<\/td>\n<td style=\"width: 25%; height: 24px;\">boolean<\/td>\n<td style=\"width: 25%; height: 24px;\">\u30dc\u30ea\u30e5\u30fc\u30e0\u3092\u6697\u53f7\u5316\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u793a\u3057\u307e\u3059\u3002<\/td>\n<td style=\"width: 25%; height: 24px;\">\u6697\u53f7\u5316\u6e08\u307f<\/td>\n<\/tr>\n<tr style=\"height: 96px;\">\n<td style=\"width: 25%; height: 96px;\">KmsKeyId<\/td>\n<td style=\"width: 25%; height: 96px;\">string<\/td>\n<td style=\"width: 25%; height: 96px;\">\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u30dc\u30ea\u30e5\u30fc\u30e0\u6697\u53f7\u5316\u30ad\u30fc\u3092\u4fdd\u8b77\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u305fAWS Key Management Service\uff08AWS KMS\uff09\u306e\u30ab\u30b9\u30bf\u30de\u30fc\u30de\u30b9\u30bf\u30ad\u30fc\uff08CMK\uff09\u306e\u5b8c\u5168\u306aARN\u3002<\/td>\n<td style=\"width: 25%; height: 96px;\">KMS \u30ad\u30fc ID<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 25%; height: 24px;\">Size<\/td>\n<td style=\"width: 25%; height: 24px;\">integer<\/td>\n<td style=\"width: 25%; height: 24px;\">GiB\u306e\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u30b5\u30a4\u30ba\u3002<\/td>\n<td style=\"width: 25%; height: 24px;\">\u30b5\u30a4\u30ba<\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"width: 25%; height: 48px;\">SnapshotId<\/td>\n<td style=\"width: 25%; height: 48px;\">string<\/td>\n<td style=\"width: 25%; height: 48px;\">\u8a72\u5f53\u3059\u308b\u5834\u5408\u3001\u30dc\u30ea\u30e5\u30fc\u30e0\u304c\u4f5c\u6210\u3055\u308c\u305f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3002<\/td>\n<td style=\"width: 25%; height: 48px;\">\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 25%; height: 24px;\">State<\/td>\n<td style=\"width: 25%; height: 24px;\">string<\/td>\n<td style=\"width: 25%; height: 24px;\">\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u72b6\u614b\u3002<\/td>\n<td style=\"width: 25%; height: 24px;\">\u72b6\u614b<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 25%; height: 24px;\">VolumeId<\/td>\n<td style=\"width: 25%; height: 24px;\">string<\/td>\n<td style=\"width: 25%; height: 24px;\">\u30dc\u30ea\u30e5\u30fc\u30e0\u306eID\u3002<\/td>\n<td style=\"width: 25%; height: 24px;\">\u30dc\u30ea\u30e5\u30fc\u30e0ID<\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"width: 25%; height: 48px;\">Iops<\/td>\n<td style=\"width: 25%; height: 48px;\">integer<\/td>\n<td style=\"width: 25%; height: 48px;\">\u30dc\u30ea\u30e5\u30fc\u30e0\u304c\u30b5\u30dd\u30fc\u30c8\u3059\u308b1\u79d2\u3042\u305f\u308a\u306eI \/ O\u64cd\u4f5c\u6570\uff08IOPS\uff09\u3002\u00a0<\/td>\n<td style=\"width: 25%; height: 48px;\">IOPS<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 25%;\">VolumeType<\/td>\n<td style=\"width: 25%;\">string<\/td>\n<td style=\"width: 25%;\">\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u7a2e\u985e\u3002 \u3053\u308c\u306f\u3001\u6c4e\u7528SSD\u306e\u5834\u5408\u306fgp2\u3001\u30d7\u30ed\u30d3\u30b8\u30e7\u30cb\u30f3\u30b0\u3055\u308c\u305fIOPS SSD\u306e\u5834\u5408\u306fio1\u3001\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8\u6700\u9069\u5316HDD\u306e\u5834\u5408\u306fst1\u3001\u30b3\u30fc\u30eb\u30c9HDD\u306e\u5834\u5408\u306fsc1\u3001\u78c1\u6c17\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u5834\u5408\u306f\u6a19\u6e96\u3067\u3059\u3002<\/td>\n<td style=\"width: 25%;\">\u30dc\u30ea\u30e5\u30fc\u30e0\u30bf\u30a4\u30d7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 EBS\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002 EBS Amazon Elastic Block Store (Amazon EBS) \u306f\u3001EC2 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u30d6\u30ed\u30c3\u30af\u30ec\u30d9\u30eb\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u30dc\u30ea\u30e5\u30fc&#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,94,82],"class_list":["post-1264","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws","tag-aws-cli","tag-ebs-volume","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-ko","_links":{"self":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/1264","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=1264"}],"version-history":[{"count":9,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/1264\/revisions"}],"predecessor-version":[{"id":2561,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/1264\/revisions\/2561"}],"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=1264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/categories?post=1264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/tags?post=1264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}