検討中のお客様はこちら

0120-50-6065

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

お申し込み

イメージ一覧取得

Description

イメージの一覧を取得します。

Request URL

Image API v2

GET /v2/images

Request Json

This operation does not accept a request body.

Request Parameters

Parameter Value Style Description
X-Auth-Token Userトークン header トークン発行 にて払い出されたID
marker(Optional) query 表示される最後のUUID
name
(Optional)
query イメージ名
visibility
(Optional)
public
private
query 「visibility」パラメーターから指定した種類のイメージに該当する情報を要求します。
「public」は標準提供のOSイメージ、「private」はお客様にてご取得された保存イメージになります。
member_status
(Optional)
query イメージメンバーの状態でフィルター
owner
(Optional)
query イメージ所有者(テナントID指定)
status
(Optional)
query イメージの状態
size_min
(Optional)
query イメージの最小サイズ。単位は bytes
size_max
(Optional)
query イメージの最大サイズ。単位は bytes
sort_key
(Optional)
query ソート対象となる項目。Deault:created_at
sort_dir
(Optional)
query ソートする方向性。 default:desc
tag
(Optional)
query イメージタグでフィルター

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

  • Response
HTTP/1.1 200 OK
Date: Thu, 03 Sep 2020 01:51:50 GMT
Server: Apache
Transfer-Encoding: chunked
Content-Type: application/json

{
  "images": [
    {
      "container_format": "ovf",
      "min_ram": 0,
      "updated_at": "2020-03-26T05:47:48Z",
      "file": "/v2/images/イメージID/file",
      "owner": "テナントID",
      "id": "イメージID",
      "size": 40737636352,
      "dst": "Windows_Server-2016datacenter + SQL Server 2016std-64bit",
      "disk_format": "qcow2",
      "display_order": "1085",
      "direct_url": "file:///var/lib/glance/images_01/テナントID/イメージID",
      "schema": "/v2/schemas/image",
      "status": "active",
      "tags": [],
      "hw_qemu_guest_agent": "yes",
      "visibility": "public",
      "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://172.25.6.241/image_vol_01"
          }
        }
      ],
      "min_disk": 50,
      "name": "イメージ名",
      "bootable": "true",
      "checksum": "3deb709f01c58257ed35b91634a95433",
      "created_at": "2020-03-26T03:29:45Z",
      "protected": false,
      "os_type": "win_2016sql2016std",
      "self": "/v2/images/イメージID"
    },
    {
      "container_format": "ovf",
      "min_ram": 0,
      "updated_at": "2020-03-26T03:44:43Z",
      "file": "/v2/images/イメージID/file",
      "owner": "テナントID",
      "id": "イメージID",
      "size": 16460087296,
      "dst": "Windows_Server-2016datacenter-64bit",
      "disk_format": "qcow2",
      "display_order": "1075",
      "direct_url": "file:///var/lib/glance/images_01/テナントID/イメージID",
      "schema": "/v2/schemas/image",
      "status": "active",
      "tags": [],
      "hw_qemu_guest_agent": "yes",
      "visibility": "public",
      "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://172.25.6.241/image_vol_01"
          }
        }
      ],
      "min_disk": 50,
      "name": "イメージ名",
      "bootable": "true",
      "checksum": "2dbf26f82799b7efd6282055f780b97c",
      "created_at": "2020-03-26T03:24:57Z",
      "protected": false,
      "os_type": "win_2016",
      "self": "/v2/images/イメージID"
    }
  ],
  "schema": "/v2/schemas/images",
  "first": "/v2/images"
}