検討中のお客様はこちら

0120-50-6065

10:00〜19:00
土日祝、年末年始除く

お申し込み

イメージ詳細取得(アイテム指定)

Description

image_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 Userトークン header トークン発行 にて払い出されたID
image_id イメージID URI イメージ一覧取得 にてご確認ください。

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" \
https://image-service.gpu-sys.cloud/v2/images/イメージID
  • Response
HTTP/1.1 200 OK
Date: Sun, 30 Aug 2020 15:32:24 GMT
Server: Apache
Content-Length: 1125
Content-Type: application/json

{
  "container_format": "ovf",
  "min_ram": 0,
  "updated_at": "2020-08-30T15:08:10Z",
  "file": "/v2/images/イメージID/file",
  "owner": "テナントID",
  "id": "イメージID",
  "size": 2004025344,
  "dst": "CentOS-7.6-AUTO-64bit",
  "disk_format": "qcow2",
  "display_order": "115",
  "direct_url": "file:///var/lib/glance/images_01/テナントID/イメージID",
  "schema": "/v2/schemas/image",
  "status": "active",
  "tags": [],
  "hw_qemu_guest_agent": "yes",
  "visibility": "private",
  "locations": [
    {
      "url": "file:///var/lib/glance/images_01/テナントID/イメージID",
      "metadata": {
        "mount_point": "/var/lib/glance/images_01/",
        "type": "nfs",
        "domain_id": "gpu",
        "share_location": "nfs://XXX.XXX.XXX.XXX/image_vol_01"
      }
    }
  ],
  "min_disk": 50,
  "name": "イメージ名",
  "bootable": "true",
  "checksum": "6a623d858b4e2025ea1bfbfbc9414f26",
  "created_at": "2020-08-30T15:03:03Z",
  "protected": false,
  "os_type": "lin",
  "self": "/v2/images/イメージID"
}