Description

Specify image ID and get information of it.

Request URL

Image API v2

GET /v2/images/{image_id}

Request Paramters

Parameter Value Style Description
X-Auth-Token User Token header
image_id Image ID URI

Normal response codes

OK (200)

Example

curl -i -X GET \
-H "Accept: application/json" \
-H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \
https://image-service.tyo1.cloud.z.com/v2/images/a2b95d7e-d4d3-4c29-bdcd-19d2a144547e
HTTP/1.1 200 OK
Date: Tue, 09 Dec 2014 07:18:57 GMT
Server: Apache
Content-Length: 641
Content-Type: application/json

{
    "checksum": "113beb51bf3277034daf8ee3e06e739a",
    "container_format": "ovf",
    "created_at": "2015-05-01T06:48:37Z",
    "direct_url": "file:///var/lib/glance/images/647dcc7827f24909a096147ea4a4ccca/a2b95d7e-d4d3-4c29-bdcd-19d2a144547e",
    "disk_format": "qcow2",
    "display_order": "150",
    "file": "/v2/images/a2b95d7e-d4d3-4c29-bdcd-19d2a144547e/file",
    "gnc_dst": "Fedora-21-64bit",
    "hw_qemu_guest_agent": "yes",
    "id": "a2b95d7e-d4d3-4c29-bdcd-19d2a144547e",
    "min_disk": 0,
    "min_ram": 0,
    "name": "gncvmi-fedora-21-x86_64",
    "os_type": "lin",
    "owner": "647dcc7827f24909a096147ea4a4ccca",
    "protected": false,
    "schema": "/v2/schemas/image",
    "self": "/v2/images/a2b95d7e-d4d3-4c29-bdcd-19d2a144547e",
    "size": 1348730880,
    "status": "active",
    "tags": [],
    "updated_at": "2015-05-05T11:45:56Z",
    "visibility": "public"
}