イメージ詳細取得

Description

イメージIDを指定し該当するイメージの情報を取得します。

Request URL

Image API v2

GET /v2/images/{image_id}

Request Json

This operation does not accept a request body.

Request Parameters

Parameter Value Style Description
X-Auth-Token トークンID header トークン発行 にて払い出されたID
image_id イメージID URI イメージIDを指定します。
イメージ一覧取得 にて任意のイメージIDをご確認ください。

Response

  • Normal response codes
200

Example

  • Request
curl -i -X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Auth-Token: トークンID" \
イメージエンドポイント/images/イメージID
  • Response
{
    "container_format": "ovf",
    "min_ram": 0,
    "updated_at": "2018-03-30T11:42:12Z",
    "file": "/v2/images/イメージID/file",
    "owner": "テナントID",
    "id": "イメージID",
    "size": 2256797696,
    "dst": "CentOS-7.4-AUTO-64bit",
    "disk_format": "qcow2",
    "display_order": "100",
    "direct_url": "file:///var/lib/glance/images_07/テナントID/イメージID",
    "schema": "/v2/schemas/image",
    "status": "active",
    "tags": [],
    "hw_qemu_guest_agent": "yes",
    "visibility": "private",
    "locations": [
        {
            "url": "file:///var/lib/glance/images_07/テナントID/イメージID",
            "metadata": {
                "mount_point": "/var/lib/glance/images_07/",
                "type": "nfs",
                "domain_id": "gac",
                "share_location": "nfs://172.25.6.247/image_vol_07"
            }
        }
    ],
    "backup_schedule": "not_assigned",
    "min_disk": 50,
    "name": "イメージ名",
    "bootable": "true",
    "checksum": "4140faf4ac08a49e0b9d390c98d985d2",
    "created_at": "2018-03-30T11:36:58Z",
    "backup_rotation": "true",
    "protected": false,
    "os_type": "lin",
    "self": "/v2/images/イメージID"
}

Internet for everyone

Copyright (c) 2024 GMO Internet Group, Inc. All Rights Reserved.