イメージ詳細取得(アイテム指定)
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.jpt1.cloud.z.com/v2/images/イメージID
-
Response
HTTP/1.1 200 OK
Date: Fri, 08 Jul 2016 08:09:19 GMT
Server: Apache
Content-Length: 1106
Content-Type: application/json
{
"bootable": "true",
"checksum": "8ceaf2f4a3c4d14ad50000f9476404e2",
"container_format": "ovf",
"created_at": "2016-07-08T06:30:11Z",
"direct_url": "file:///var/lib/glance/images_04/テナントID/イメージID",
"disk_format": "qcow2",
"display_order": "1100",
"dst": "CentOS-6.8-100GB-64bit",
"file": "/v2/images/イメージID/file",
"hw_qemu_guest_agent": "yes",
"id": "イメージID",
"locations": [
{
"metadata": {
"domain_id": "default",
"mount_point": "/var/lib/glance/images_04/",
"share_location": "nfs://172.25.6.244/image_vol_04",
"type": "nfs"
},
"url": "file:///var/lib/glance/images_04/テナントID/イメージID"
}
],
"min_disk": 100,
"min_ram": 0,
"name": "vmi-centos-6.8-amd64",
"os_type": "lin",
"owner": "テナントID",
"protected": false,
"schema": "/v2/schemas/image",
"self": "/v2/images/イメージID",
"size": 1546256384,
"status": "active",
"tags": [],
"updated_at": "2016-07-08T06:30:29Z",
"visibility": "public"
}