Merge "Fix requests/responses for set server metadata"

This commit is contained in:
Jenkins 2014-02-12 16:05:31 +00:00 committed by Gerrit Code Review
commit 8041eb60e3
5 changed files with 20 additions and 15 deletions

View File

@ -1,5 +1,5 @@
{
"meta" : {
"foo" : "Bar Value"
}
"metadata":{
"name":"test_server"
}
}

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<meta xmlns="http://docs.openstack.org/compute/api/v1.1" key="foo">Bar Value</meta>
<?xml version='1.0' encoding='UTF-8'?>
<metadata xmlns="http://docs.openstack.org/compute/api/v1.1">
<meta key="type">staging_server</meta>
</metadata>

View File

@ -1,5 +1,6 @@
{
"meta": {
"foo": "Bar Value"
}
"metadata":{
"name":"test_server",
"server_type":"test"
}
}

View File

@ -1,2 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<meta xmlns="http://docs.openstack.org/compute/api/v1.1" key="foo">Bar Value</meta>
<metadata xmlns="http://docs.openstack.org/compute/api/v1.1">
<meta key="type">staging_server</meta>
</metadata>

View File

@ -1354,11 +1354,12 @@
title="Create or replace metadata">
<para role="shortdesc">Sets metadata for the specified
resource.</para>
<para>Replaces items that match the specified keys and
removes items not specified in the request.</para>
<para>An overLimit (<errorcode>413</errorcode>) fault
might be thrown if the operation causes the quota for
metadata items to be exceeded.</para>
<para>Replaces items that match the specified keys. If you
omit a key that already exists, this key retains its
value.</para>
<para>If the number of metadata items exceeds the quota for metadata
items, an overLimit (<errorcode>413</errorcode>) fault
might be thrown.</para>
</wadl:doc>
<request>
<representation mediaType="application/json">