Update server metadata items

Method URI Description
POST /v2/{tenant_id}/servers/{server_id}/metadata Updates metadata items by key for a specified server.

Replaces items that match the specified keys and does not modify items not specified in the request.

If this operation exceeds the metadata items quota, the API throws an overLimit (413) fault.

Normal response codes: 202

Request

This table shows the URI parameters for the update server metadata items request:

Name Type Description
{tenant_id} UUID Project ID
{server_id} UUID The UUID for the server.

This table shows the body parameters for the update server metadata items request:

Name Type Description
metadata hash A set of key/value pairs. These pair replace any existing key/value pairs in the resources metadata with matching keys. Any key/value pairs in the parameter with keys that do not occur in the existing resource metadata are added to the resources metadata.

Example. Update server metadata items: JSON request


{
	"metadata": {
		"name": "test_server"
	}
}
     

Response

Example. Update server metadata items: JSON response


{
	"metadata": {
		"name": "test_server"
	}
}