Method | URI | Description |
---|---|---|
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)
This table shows the URI parameters for the show image metadata request:
Name | Type | Description |
---|---|---|
| UUID | The UUID for the image. |
This operation does not require a request body.
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>