Method | URI | Description |
---|---|---|
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)
This table shows the URI parameters for the show image metadata item details request:
Name | Type | Description |
---|---|---|
| UUID | The UUID for the image. |
| ImageMetadataKey | A string. Maximum length is 255 characters. |
This operation does not require a request body.
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>