2.6.1. Show server metadata

 
MethodURIDescription
GET/v2/{tenant_id}/servers/{server_id}/metadata

Shows metadata for a specified server.

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.1.1. Request

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

NameTypeDescription

{tenant_id}

​U​U​ID

The tenant ID in a multi-tenancy cloud.

{server_id}

​U​U​ID

The UUID for the server.

This operation does not require a request body.

 2.6.1.2. Response

 

Example 2.49. Show server metadata: JSON response

{
    "metadata": {
        "foo": "Foo Value"
    }
}

 

Example 2.50. Show server metadata: XML response

<?xml version='1.0' encoding='UTF-8'?>
<metadata xmlns="http://docs.openstack.org/compute/api/v1.1">
  <meta key="foo">Foo Value</meta>
</metadata>

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


loading table of contents...