2.6.10. Show image metadata item details

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

Shows details for a metadata item by key 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.10.1. Request

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

NameTypeDescription

{image_id}

​U​U​ID

The UUID for the image.

{key}

​Image​Metadata​Key

A string. Maximum length is 255 characters.

This operation does not require a request body.

 2.6.10.2. Response

 

Example 2.75. Show image metadata item details: JSON response

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

 

Example 2.76. Show image metadata item details: 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...