ConoHa API Documantation

イメージ一覧取得(Glance) - Image API v2

Description

イメージ一覧を取得

Request URL

Image API v2

GET /v2/images

Request Paramters

Parameter Value Style Description
X-Auth-Token Userトークン header トークンID
limit (Optional) query イメージ表示数
marker (Optional) query 表示される最後のUUID
name (Optional) query イメージ名
visibility (Optional) query 公開(public) または、非公開(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 ソートする方向性 <asc or desc> default:desc
tag (Optional) query イメージタグでフィルター

Normal response codes

OK (200)

Example
※エンドポイントURLにつきましては、お客様環境によって異なりますので、コントロールパネルにてご確認の上ご利用ください。

  • REQ
curl -i -X GET \
-H "Accept: application/json" \
-H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \
https://image-service.tyo1.conoha.io/v2/images
  • RES
HTTP/1.1 200 OK
Date: Tue, 09 Dec 2014 10:17:20 GMT
Server: Apache
Content-Length: 6102
Content-Type: application/json

{
  "images": [
    {
      "status": "active",
      "name": "testsnap",
      "tags": [],
      "container_format": "ovf",
      "created_at": "2014-12-05T13:16:57Z",
      "size": 3134390272,
      "disk_format": "qcow2",
      "updated_at": "2014-12-05T13:17:14Z",
      "visibility": "private",
      "id": "e9a36da8-5c2e-4d8c-a7a4-db32e7054d34",
      "self": "/v2/images/e9a36da8-5c2e-4d8c-a7a4-db32e7054d34",
      "min_disk": 0,
      "protected": false,
      "min_ram": 0,
      "file": "/v2/images/e9a36da8-5c2e-4d8c-a7a4-db32e7054d34/file",
      "checksum": "238c596d2aa5c4c1daa101c4eb3682ff",
      "owner": "65a85d8e02e7470da8f72ed31effaf4e",
      "direct_url": "file:///var/lib/glance/images/e9a36da8-5c2e-4d8c-a7a4-db32e7054d34",
      "hw_qemu_guest_agent": "yes",
      "schema": "/v2/schemas/image"
    },
    {
      "status": "active",
      "name": "okvm-centos65_ga_fio",
      "tags": [],
      "container_format": "ovf",
      "created_at": "2014-12-05T13:09:24Z",
      "size": 3135963136,
      "disk_format": "qcow2",
      "updated_at": "2014-12-05T13:09:41Z",
      "visibility": "private",
      "id": "7e8ef227-9000-46f2-82b4-c7d68f1bcf96",
      "self": "/v2/images/7e8ef227-9000-46f2-82b4-c7d68f1bcf96",
      "min_disk": 0,
      "protected": false,
      "min_ram": 0,
      "file": "/v2/images/7e8ef227-9000-46f2-82b4-c7d68f1bcf96/file",
      "checksum": "5331449d33377d47459628542f542d4d",
      "owner": "65a85d8e02e7470da8f72ed31effaf4e",
      "direct_url": "file:///var/lib/glance/images/7e8ef227-9000-46f2-82b4-c7d68f1bcf96",
      "hw_qemu_guest_agent": "yes",
      "schema": "/v2/schemas/image"
    },
    {
      "status": "active",
      "name": "okvm-centos65",
      "tags": [],
      "container_format": "ovf",
      "created_at": "2014-12-05T12:33:00Z",
      "size": 2967273472,
      "disk_format": "qcow2",
      "updated_at": "2014-12-05T12:33:18Z",
      "visibility": "private",
      "self": "/v2/images/7b85762c-23d0-4ed0-805b-b5a0604049a2",
      "min_disk": 0,
      "protected": false,
      "id": "7b85762c-23d0-4ed0-805b-b5a0604049a2",
      "file": "/v2/images/7b85762c-23d0-4ed0-805b-b5a0604049a2/file",
      "checksum": "765f4a4670240bcd1e7f40fe5e655c90",
      "owner": "4a9f0a43587e46258d6b0feb45b58b31",
      "direct_url": "file:///var/lib/glance/images/7b85762c-23d0-4ed0-805b-b5a0604049a2",
      "min_ram": 0,
      "schema": "/v2/schemas/image"
    },
    {
      "status": "active",
      "name": "okvm-centos65_ga",
      "tags": [],
      "container_format": "ovf",
      "created_at": "2014-12-05T12:32:10Z",
      "size": 2967273472,
      "disk_format": "qcow2",
      "updated_at": "2014-12-05T12:32:26Z",
      "visibility": "public",
      "id": "0481cc6f-5cee-474c-bdf3-b46c793a94ec",
      "self": "/v2/images/0481cc6f-5cee-474c-bdf3-b46c793a94ec",
      "min_disk": 0,
      "protected": false,
      "min_ram": 0,
      "file": "/v2/images/0481cc6f-5cee-474c-bdf3-b46c793a94ec/file",
      "checksum": "5ada4a66c2598d39fb6aacc6731aeae4",
      "owner": "4a9f0a43587e46258d6b0feb45b58b31",
      "direct_url": "file:///var/lib/glance/images/0481cc6f-5cee-474c-bdf3-b46c793a94ec",
      "hw_qemu_guest_agent": "yes",
      "schema": "/v2/schemas/image"
    },
    {
      "status": "active",
      "name": "okvm-centos65",
      "tags": [],
      "container_format": "ovf",
      "created_at": "2014-12-03T08:22:44Z",
      "size": 2967273472,
      "disk_format": "qcow2",
      "updated_at": "2014-12-03T08:23:02Z",
      "visibility": "public",
      "self": "/v2/images/765acb4f-e4df-4f9f-a37c-e062df376504",
      "protected": false,
      "id": "765acb4f-e4df-4f9f-a37c-e062df376504",
      "file": "/v2/images/765acb4f-e4df-4f9f-a37c-e062df376504/file",
      "checksum": "765f4a4670240bcd1e7f40fe5e655c90",
      "min_disk": 0,
      "direct_url": "file:///var/lib/glance/images/765acb4f-e4df-4f9f-a37c-e062df376504",
      "min_ram": 0,
      "schema": "/v2/schemas/image"
    },
    {
      "status": "active",
      "name": "cirros-0.3.3-x86_64",
      "tags": [],
      "container_format": "bare",
      "created_at": "2014-12-03T07:48:41Z",
      "size": 13200896,
      "disk_format": "qcow2",
      "updated_at": "2014-12-03T07:48:42Z",
      "visibility": "public",
      "self": "/v2/images/3cab9d0f-29b1-45e3-b5fd-76e8d746b289",
      "protected": false,
      "id": "3cab9d0f-29b1-45e3-b5fd-76e8d746b289",
      "file": "/v2/images/3cab9d0f-29b1-45e3-b5fd-76e8d746b289/file",
      "checksum": "133eae9fb1c98f45894a4e60d8736619",
      "min_disk": 0,
      "direct_url": "file:///var/lib/glance/images/3cab9d0f-29b1-45e3-b5fd-76e8d746b289",
      "min_ram": 0,
      "schema": "/v2/schemas/image"
    },
    {
      "status": "active",
      "name": "cirros-0.3.3-x86_64",
      "tags": [],
      "container_format": "bare",
      "created_at": "2014-12-03T07:48:38Z",
      "size": 13200896,
      "disk_format": "qcow2",
      "updated_at": "2014-12-03T07:48:39Z",
      "visibility": "public",
      "self": "/v2/images/fd2cbdb5-b4dd-4afe-8409-fb2998ca50ef",
      "protected": false,
      "id": "fd2cbdb5-b4dd-4afe-8409-fb2998ca50ef",
      "file": "/v2/images/fd2cbdb5-b4dd-4afe-8409-fb2998ca50ef/file",
      "checksum": "133eae9fb1c98f45894a4e60d8736619",
      "min_disk": 0,
      "direct_url": "file:///var/lib/glance/images/fd2cbdb5-b4dd-4afe-8409-fb2998ca50ef",
      "min_ram": 0,
      "schema": "/v2/schemas/image"
    },
    {
      "status": "active",
      "name": "cirros-0.3.3-x86_64",
      "tags": [],
      "container_format": "bare",
      "created_at": "2014-12-03T07:42:58Z",
      "size": 13200896,
      "disk_format": "qcow2",
      "updated_at": "2014-12-03T07:42:59Z",
      "visibility": "public",
      "self": "/v2/images/a6f3a56f-0e21-4dfc-b267-9df611034a5d",
      "protected": false,
      "id": "a6f3a56f-0e21-4dfc-b267-9df611034a5d",
      "file": "/v2/images/a6f3a56f-0e21-4dfc-b267-9df611034a5d/file",
      "checksum": "133eae9fb1c98f45894a4e60d8736619",
      "min_disk": 0,
      "direct_url": "file:///var/lib/glance/images/a6f3a56f-0e21-4dfc-b267-9df611034a5d",
      "min_ram": 0,
      "schema": "/v2/schemas/image"
    },
    {
      "status": "active",
      "name": "cirros-0.3.3-x86_64",
      "tags": [],
      "container_format": "bare",
      "created_at": "2014-12-03T07:41:52Z",
      "size": 13200896,
      "disk_format": "qcow2",
      "updated_at": "2014-12-03T07:41:52Z",
      "visibility": "public",
      "self": "/v2/images/62094b84-d4fb-4066-b308-1d54790e5421",
      "protected": false,
      "id": "62094b84-d4fb-4066-b308-1d54790e5421",
      "file": "/v2/images/62094b84-d4fb-4066-b308-1d54790e5421/file",
      "checksum": "133eae9fb1c98f45894a4e60d8736619",
      "min_disk": 0,
      "direct_url": "file:///var/lib/glance/images/62094b84-d4fb-4066-b308-1d54790e5421",
      "min_ram": 0,
      "schema": "/v2/schemas/image"
    },
    {
      "status": "active",
      "name": "cirros-0.3.3-x86_64",
      "tags": [],
      "container_format": "bare",
      "created_at": "2014-12-03T07:41:38Z",
      "size": 13200896,
      "disk_format": "qcow2",
      "updated_at": "2014-12-03T07:41:38Z",
      "visibility": "public",
      "self": "/v2/images/ac394825-792b-4a8d-8a46-6cf18b0ef660",
      "protected": false,
      "id": "ac394825-792b-4a8d-8a46-6cf18b0ef660",
      "file": "/v2/images/ac394825-792b-4a8d-8a46-6cf18b0ef660/file",
      "checksum": "133eae9fb1c98f45894a4e60d8736619",
      "min_disk": 0,
      "direct_url": "file:///var/lib/glance/images/ac394825-792b-4a8d-8a46-6cf18b0ef660",
      "min_ram": 0,
      "schema": "/v2/schemas/image"
    }
  ],
  "schema": "/v2/schemas/images",
  "first": "/v2/images"
}