• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference

Show Images Metadata (V1.1, Discarded and Not Recommended)

Function Description

This interface is used to query image metadata.

Interface Format

Method

URI

Description

HEAD

/v1/images/{image_id}

Queries image metadata.

Restrictions

N/A

Extension Description

Request Parameter

N/A

Response Parameter

Parameter

Type

Mandatory

Description

Status

String

Yes

Specifies the image status.

Virtual_size

Int

No

Specifies the virtual size of the image.

Name

String

Yes

Specifies the image name.

Deleted

Bool

Yes

Specifies whether an image has been deleted.

Container_format

String

Yes

Specifies the image container type.

Created_at

Datetime

Yes

Specifies the time when an image was created.

Disk_format

String

Yes

Specifies the image file type.

Updated_at

Datetime

Yes

Specifies the time when an image was updated.

Property

Dict

No

Specifies the image attributes.

Owner

String

Yes

Specifies the tenant to which an image belongs.

Protected

Bool

Yes

Specifies whether an image is protected.

Min_ram

Int

Yes

Specifies the minimum memory (MB) required for running an image.

Checksum

String

No

Specifies the image verification sum. This parameter is available after an image file is uploaded.

Min_disk

Int

Yes

Specifies the minimum disk capacity (GB) required for running the image.

Is_public

Bool

Yes

Specifies whether an image is a public one.

Deleted_at

Datetime

No

Specifies the time when an image was deleted.

Id

String

Yes

Specifies the image UUID.

Size

Int

No

Specifies the image size. This parameter is available after an image is uploaded.

These parameters are contained in the header of the HTTP response message.

Request Example

HEAD /v1/images/3c3d1d01-b48a-4639-8a88-08be3b9b5d78

Response Example

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Content-Length: 0
X-Image-Meta-Id: 3c3d1d01-b48a-4639-8a88-08be3b9b5d78
X-Image-Meta-Deleted: False
X-Image-Meta-Container_format: bare
X-Image-Meta-Checksum: 64d7c1cd2b6f60c92c14662941cb7913
X-Image-Meta-Protected: False
X-Image-Meta-Min_disk: 0
X-Image-Meta-Created_at: 2016-05-22T06:04:20.425843
X-Image-Meta-Size: 13167616
X-Image-Meta-Status: active
X-Image-Meta-Is_public: True
X-Image-Meta-Min_ram: 0
X-Image-Meta-Owner: 23f4cb75768d4febb39542ef6fe169f3
X-Image-Meta-Updated_at: 2016-05-22T06:04:22.719791
X-Image-Meta-Disk_format: qcow2
X-Image-Meta-Name: cirros
Etag: 64d7c1cd2b6f60c92c14662941cb7913
X-Openstack-Request-Id: req-7123ca83-da23-4f4e-9ed6-accd3707d333
Date: Mon, 23 May 2016 02:29:54 GMT

Error Code

Error Code

Description

404

Not Found

This error code indicates that the specified image does not exist.