forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
176 lines
12 KiB
HTML
176 lines
12 KiB
HTML
<a name="evs_04_2102"></a><a name="evs_04_2102"></a>
|
|
|
|
<h1 class="topictitle1">Updating the Metadata of an EVS Snapshot</h1>
|
|
<div id="body1493902424393"><div class="section" id="evs_04_2102__section4805694511340"><h4 class="sectiontitle">Function</h4><p id="evs_04_2102__p29847411340">This API is used to update the metadata of an EVS snapshot.</p>
|
|
</div>
|
|
<div class="section" id="evs_04_2102__section268627411340"><h4 class="sectiontitle">URI</h4><ul id="evs_04_2102__ul1626162711340"><li id="evs_04_2102__li1213691911340">URI format<p id="evs_04_2102__p2398633914939"><a name="evs_04_2102__li1213691911340"></a><a name="li1213691911340"></a>PUT /v2/{project_id}/snapshots/{snapshot_id}/metadata</p>
|
|
</li><li id="evs_04_2102__li4356636211340">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_2102__table5655293911340" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_2102__row4718979611340"><th align="left" class="cellrowborder" valign="top" width="28.57%" id="mcps1.3.2.2.2.1.1.4.1.1"><p id="evs_04_2102__p6427715211340">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="26.529999999999998%" id="mcps1.3.2.2.2.1.1.4.1.2"><p id="evs_04_2102__p3906685711340">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44.9%" id="mcps1.3.2.2.2.1.1.4.1.3"><p id="evs_04_2102__p1029885411340">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="evs_04_2102__row2890086411340"><td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.2.2.2.1.1.4.1.1 "><p id="evs_04_2102__p5926863811340">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.529999999999998%" headers="mcps1.3.2.2.2.1.1.4.1.2 "><p id="evs_04_2102__p3603037711340">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.9%" headers="mcps1.3.2.2.2.1.1.4.1.3 "><p id="evs_04_2102__p3277940011340">The project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="evs_04_2102__row2657914711340"><td class="cellrowborder" valign="top" width="28.57%" headers="mcps1.3.2.2.2.1.1.4.1.1 "><p id="evs_04_2102__p542726811340">snapshot_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.529999999999998%" headers="mcps1.3.2.2.2.1.1.4.1.2 "><p id="evs_04_2102__p3695552511340">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.9%" headers="mcps1.3.2.2.2.1.1.4.1.3 "><p id="evs_04_2102__p4060754311340">The snapshot ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="evs_04_2102__section87667311340"><h4 class="sectiontitle">Request</h4><ul id="evs_04_2102__ul772326021175"><li id="evs_04_2102__li240048321175">Request parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_2102__table31588048" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_2102__row57330849"><th align="left" class="cellrowborder" valign="top" width="17.491749174917494%" id="mcps1.3.3.2.1.1.1.5.1.1"><p id="evs_04_2102__p13287175">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.72167216721672%" id="mcps1.3.3.2.1.1.1.5.1.2"><p id="evs_04_2102__p2519427">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.67176717671767%" id="mcps1.3.3.2.1.1.1.5.1.3"><p id="evs_04_2102__p2747002">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="48.11481148114812%" id="mcps1.3.3.2.1.1.1.5.1.4"><p id="evs_04_2102__p21180630">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="evs_04_2102__row53167494153413"><td class="cellrowborder" valign="top" width="17.491749174917494%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="evs_04_2102__p11599783153413">metadata</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.72167216721672%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="evs_04_2102__p58405153413">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.67176717671767%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="evs_04_2102__p4730855153413">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.11481148114812%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="evs_04_2102__p47654998153413">The metadata to be updated. For details, see <a href="#evs_04_2102__li54973602211845">Parameter in the metadata field</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="evs_04_2102__li54973602211845"><a name="evs_04_2102__li54973602211845"></a><a name="li54973602211845"></a>Parameter in the <strong id="evs_04_2102__b98161779215">metadata</strong> field
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_2102__table32717123212358" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_2102__row2280240212358"><th align="left" class="cellrowborder" valign="top" width="17.491749174917494%" id="mcps1.3.3.2.2.2.1.5.1.1"><p id="evs_04_2102__p50481723212358">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.72167216721672%" id="mcps1.3.3.2.2.2.1.5.1.2"><p id="evs_04_2102__p62487767212358">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.67176717671767%" id="mcps1.3.3.2.2.2.1.5.1.3"><p id="evs_04_2102__p28344363212358">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="48.11481148114812%" id="mcps1.3.3.2.2.2.1.5.1.4"><p id="evs_04_2102__p14192096212358">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="evs_04_2102__row8709150212358"><td class="cellrowborder" valign="top" width="17.491749174917494%" headers="mcps1.3.3.2.2.2.1.5.1.1 "><p id="evs_04_2102__p34352524212358">key_val</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.72167216721672%" headers="mcps1.3.3.2.2.2.1.5.1.2 "><p id="evs_04_2102__p31091026212358">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.67176717671767%" headers="mcps1.3.3.2.2.2.1.5.1.3 "><p id="evs_04_2102__p35345177212358">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.11481148114812%" headers="mcps1.3.3.2.2.2.1.5.1.4 "><p id="evs_04_2102__p44387080212358">The metadata information, which is made up of one or multiple key-value pairs.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="evs_04_2102__li47272903212140">Example request<pre class="screen" id="evs_04_2102__screen22802947212140">{
|
|
"metadata": {
|
|
"key1": "value1",
|
|
"key2": "value2"
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="evs_04_2102__section5147449911340"><h4 class="sectiontitle">Response</h4><ul id="evs_04_2102__ul45240216"><li id="evs_04_2102__li8787321201856">Response parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_2102__table11977025201856" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_2102__row8102228201856"><th align="left" class="cellrowborder" valign="top" width="21.43%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="evs_04_2102__p52300707201856">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.43%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="evs_04_2102__p3642697315541">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.14%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="evs_04_2102__p17319263201856">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="evs_04_2102__row60683035201856"><td class="cellrowborder" valign="top" width="21.43%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="evs_04_2102__p16378828201856">metadata</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.43%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="evs_04_2102__p6490369115541">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.14%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="evs_04_2102__p20205612201856">The snapshot metadata, which is made up of key-value pairs.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="evs_04_2102__row2012491218193"><td class="cellrowborder" valign="top" width="21.43%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="evs_04_2102__p129522216412">error</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.43%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="evs_04_2102__p1595262111415">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.14%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="evs_04_2102__p109527215417">The error message returned if an error occurs. For details, see <a href="#evs_04_2102__li24688256">Parameters in the error field</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="evs_04_2102__li24688256"><a name="evs_04_2102__li24688256"></a><a name="li24688256"></a>Parameters in the <strong id="evs_04_2102__b563414367405">error</strong> field
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_2102__table15441099103019" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_2102__row54094047103019"><th align="left" class="cellrowborder" valign="top" width="21.17788221177882%" id="mcps1.3.4.2.2.2.1.4.1.1"><p id="evs_04_2102__p19541716103019">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.17788221177882%" id="mcps1.3.4.2.2.2.1.4.1.2"><p id="evs_04_2102__p39375186103019">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.64423557644236%" id="mcps1.3.4.2.2.2.1.4.1.3"><p id="evs_04_2102__p38578950103019">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="evs_04_2102__row59401790103019"><td class="cellrowborder" valign="top" width="21.17788221177882%" headers="mcps1.3.4.2.2.2.1.4.1.1 "><p id="evs_04_2102__p46815658103019">message</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.17788221177882%" headers="mcps1.3.4.2.2.2.1.4.1.2 "><p id="evs_04_2102__p33971979103019">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.64423557644236%" headers="mcps1.3.4.2.2.2.1.4.1.3 "><p id="evs_04_2102__p21623243103019">The error message returned if an error occurs.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="evs_04_2102__row60391466103019"><td class="cellrowborder" valign="top" width="21.17788221177882%" headers="mcps1.3.4.2.2.2.1.4.1.1 "><p id="evs_04_2102__p59870541103019">code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.17788221177882%" headers="mcps1.3.4.2.2.2.1.4.1.2 "><p id="evs_04_2102__p17675690103019">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.64423557644236%" headers="mcps1.3.4.2.2.2.1.4.1.3 "><p id="evs_04_2102__p6087468103019">The error code returned if an error occurs.</p>
|
|
<p id="evs_04_2102__p54787218103019">For details about the error code, see <a href="evs_04_0038.html">Error Codes</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="evs_04_2102__li4508766">Example response<pre class="screen" id="evs_04_2102__screen34893098153746">{
|
|
"metadata": {
|
|
"key1": "value1",
|
|
"key2": "value2"
|
|
}
|
|
}</pre>
|
|
<p id="evs_04_2102__p52821068113531">or</p>
|
|
<pre class="screen" id="evs_04_2102__screen3736529515384">{
|
|
"error": {
|
|
"message": "XXXX",
|
|
"code": "XXX"
|
|
}
|
|
}</pre>
|
|
<p id="evs_04_2102__p5655715720175">In the preceding example, <strong id="evs_04_2102__b842352706143959">error</strong> indicates a general error, for example, <strong id="evs_04_2102__b842352706144438">badRequest</strong> or <strong id="evs_04_2102__b842352706144454">itemNotFound</strong>. An example is provided as follows:</p>
|
|
<pre class="screen" id="evs_04_2102__screen36937682153827">{
|
|
"badRequest": {
|
|
"message": "XXXX",
|
|
"code": "XXX"
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="evs_04_2102__section1751558211340"><h4 class="sectiontitle">Status Codes</h4><ul id="evs_04_2102__ul947606911340"><li id="evs_04_2102__li1817575711340">Normal<p id="evs_04_2102__p2936408711340"><a name="evs_04_2102__li1817575711340"></a><a name="li1817575711340"></a>200</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="evs_04_2102__section431317151242"><h4 class="sectiontitle">Error Codes</h4><p id="evs_04_2102__evs_04_2013_p783819215242">For details, see <a href="evs_04_0038.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="evs_04_2092.html">EVS Snapshot</a></div>
|
|
</div>
|
|
</div>
|
|
|