2.6.7. Show image metadata

 
MethodURIDescription
GET/v2/images/{image_id}/metadata

Shows metadata for a specified image.

Normal response codes: 200, 203

Error response codes: computeFault (400, 500, ), serviceUnavailable (503), badRequest (400), unauthorized (401), forbidden (403), badMethod (405), overLimit (413), itemNotFound (404)

 2.6.7.1. Request

This table shows the URI parameters for the show image metadata request:

NameTypeDescription

{image_id}

​U​U​ID

The UUID for the image.

This operation does not require a request body.

 2.6.7.2. Response

 

Example 2.65. Show image metadata: JSON response

{
    "metadata": {
        "architecture": "x86_64",
        "auto_disk_config": "True",
        "kernel_id": "nokernel",
        "ramdisk_id": "nokernel"
    }
}

 

Example 2.66. Show image metadata: XML response

<?xml version='1.0' encoding='UTF-8'?>
<metadata xmlns="http://docs.openstack.org/compute/api/v1.1">
  <meta key="kernel_id">nokernel</meta>
  <meta key="auto_disk_config">True</meta>
  <meta key="ramdisk_id">nokernel</meta>
  <meta key="architecture">x86_64</meta>
</metadata>

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...