Merge "Fix requests/responses for set server metadata"
This commit is contained in:
commit
8041eb60e3
@ -1,5 +1,5 @@
|
||||
{
|
||||
"meta" : {
|
||||
"foo" : "Bar Value"
|
||||
}
|
||||
"metadata":{
|
||||
"name":"test_server"
|
||||
}
|
||||
}
|
@ -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>
|
||||
|
@ -1,5 +1,6 @@
|
||||
{
|
||||
"meta": {
|
||||
"foo": "Bar Value"
|
||||
}
|
||||
"metadata":{
|
||||
"name":"test_server",
|
||||
"server_type":"test"
|
||||
}
|
||||
}
|
@ -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>
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user