forked from docs/doc-exports
Reviewed-by: Ziuzko, Alevtina <alevtina.ziuzko@t-systems.com> Co-authored-by: Wei, Hongmin <weihongmin1@huawei.com> Co-committed-by: Wei, Hongmin <weihongmin1@huawei.com>
161 lines
13 KiB
HTML
161 lines
13 KiB
HTML
<a name="en-us_topic_0060929630"></a><a name="en-us_topic_0060929630"></a>
|
|
|
|
<h1 class="topictitle1">Modifying Predefined Tags</h1>
|
|
<div id="body1495792148769"><div class="section" id="en-us_topic_0060929630__section18143273182827"><h4 class="sectiontitle">Function</h4><p id="en-us_topic_0060929630__p60319017182827">This API is used for modifying predefined tags.</p>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0060929630__section6000243182827"><h4 class="sectiontitle">URI</h4><p id="en-us_topic_0060929630__p41801774182827">PUT /v1.0/predefine_tags</p>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0060929630__section54624715182827"><h4 class="sectiontitle">Request</h4><ul id="en-us_topic_0060929630__ul62525827182827"><li id="en-us_topic_0060929630__li25861533182827">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0060929630__table5301040102116" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request header parameters</caption><thead align="left"><tr id="en-us_topic_0060929630__en-us_topic_0133313257_row627664919518"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.1.1.2.5.1.1"><p id="en-us_topic_0060929630__en-us_topic_0133313257_p3349526181715">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.1.1.2.5.1.2"><p id="en-us_topic_0060929630__en-us_topic_0133313257_p2349182681715">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.1.1.2.5.1.3"><p id="en-us_topic_0060929630__en-us_topic_0133313257_p183491226101712">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.1.1.2.5.1.4"><p id="en-us_topic_0060929630__en-us_topic_0133313257_p1734915261172">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0060929630__en-us_topic_0133313257_row8281649753"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="en-us_topic_0060929630__en-us_topic_0133313257_p17280349556">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="en-us_topic_0060929630__en-us_topic_0133313257_p122819492055">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="en-us_topic_0060929630__en-us_topic_0133313257_p1028110492510">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="en-us_topic_0060929630__en-us_topic_0133313257_p172819491858">Specifies the user token. TMS is a global service. When calling the IAM API to obtain a user token, set <strong id="en-us_topic_0060929630__en-us_topic_0133313257_b1896416521191">scope</strong> to <strong id="en-us_topic_0060929630__en-us_topic_0133313257_b14965652697">domain</strong>. The value of <strong id="en-us_topic_0060929630__en-us_topic_0133313257_b179651521297">X-Subject-Token</strong> in the response header is the user token.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0060929630__table31427211182827" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters</caption><thead align="left"><tr id="en-us_topic_0060929630__row44416069182827"><th align="left" class="cellrowborder" valign="top" width="14.719999999999999%" id="mcps1.3.3.2.1.2.2.5.1.1"><p id="en-us_topic_0060929630__p40931822182827">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.1%" id="mcps1.3.3.2.1.2.2.5.1.2"><p id="en-us_topic_0060929630__p27143284182827">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="28.38%" id="mcps1.3.3.2.1.2.2.5.1.3"><p id="en-us_topic_0060929630__p51122366182827">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="39.800000000000004%" id="mcps1.3.3.2.1.2.2.5.1.4"><p id="en-us_topic_0060929630__p47270964182827">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0060929630__row3742912182827"><td class="cellrowborder" valign="top" width="14.719999999999999%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="en-us_topic_0060929630__p34740423182827">old_tag</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.1%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="en-us_topic_0060929630__p62510899182827">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.38%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="en-us_topic_0060929630__p30218092182827">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.800000000000004%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="en-us_topic_0060929630__p31746393182827">Specifies the tag to be modified.</p>
|
|
<p id="en-us_topic_0060929630__p11490457172114">For details, see <a href="#en-us_topic_0060929630__table62639743182827">Table 3</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0060929630__row17282087182827"><td class="cellrowborder" valign="top" width="14.719999999999999%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="en-us_topic_0060929630__p57671806182827">new_tag</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.1%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="en-us_topic_0060929630__p40904701182827">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.38%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="en-us_topic_0060929630__p24946509182827">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.800000000000004%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="en-us_topic_0060929630__p7401366182827">Specifies the tag that has been modified.</p>
|
|
<p id="en-us_topic_0060929630__p1644791932216">For details, see <a href="#en-us_topic_0060929630__table39454339814">Table 4</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="en-us_topic_0060929630__li66612295182827"><strong id="en-us_topic_0060929630__b842352706143829">old_tag</strong> field description
|
|
<div class="tablenoborder"><a name="en-us_topic_0060929630__table62639743182827"></a><a name="table62639743182827"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0060929630__table62639743182827" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Fields</caption><thead align="left"><tr id="en-us_topic_0060929630__row49571698182827"><th align="left" class="cellrowborder" valign="top" width="13.209999999999999%" id="mcps1.3.3.2.2.2.2.5.1.1"><p id="en-us_topic_0060929630__p55884612182827">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.86%" id="mcps1.3.3.2.2.2.2.5.1.2"><p id="en-us_topic_0060929630__p30359747182827">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.91%" id="mcps1.3.3.2.2.2.2.5.1.3"><p id="en-us_topic_0060929630__p43220438182827">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.02%" id="mcps1.3.3.2.2.2.2.5.1.4"><p id="en-us_topic_0060929630__p11194598182827">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0060929630__row34347226182827"><td class="cellrowborder" valign="top" width="13.209999999999999%" headers="mcps1.3.3.2.2.2.2.5.1.1 "><p id="en-us_topic_0060929630__p30661915182827">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.3.2.2.2.2.5.1.2 "><p id="en-us_topic_0060929630__p587152182827">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.91%" headers="mcps1.3.3.2.2.2.2.5.1.3 "><p id="en-us_topic_0060929630__p47559329182827">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.02%" headers="mcps1.3.3.2.2.2.2.5.1.4 "><p id="en-us_topic_0060929630__p108587120631">Specifies the key.</p>
|
|
<p id="en-us_topic_0060929630__p16424462153146">It cannot be left blank and can contain a maximum of 36 Unicode characters. Only digits, letters, hyphens (-), at signs (@), and underscores (_) are allowed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0060929630__row42577656182827"><td class="cellrowborder" valign="top" width="13.209999999999999%" headers="mcps1.3.3.2.2.2.2.5.1.1 "><p id="en-us_topic_0060929630__p26238096182827">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.3.2.2.2.2.5.1.2 "><p id="en-us_topic_0060929630__p44911008182827">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.91%" headers="mcps1.3.3.2.2.2.2.5.1.3 "><p id="en-us_topic_0060929630__p13913041182827">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.02%" headers="mcps1.3.3.2.2.2.2.5.1.4 "><p id="en-us_topic_0060929630__p2486891184110">Specifies the value.</p>
|
|
<p id="en-us_topic_0060929630__p10159585153243">Each value contains a maximum of 43 Unicode characters and can be an empty string. Only digits, letters, hyphens (-), at signs (@), and underscores (_) are allowed.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="en-us_topic_0060929630__li16945153316816"><strong id="en-us_topic_0060929630__b152896229255">new_tag</strong> field description
|
|
<div class="tablenoborder"><a name="en-us_topic_0060929630__table39454339814"></a><a name="table39454339814"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0060929630__table39454339814" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Fields</caption><thead align="left"><tr id="en-us_topic_0060929630__row129451933281"><th align="left" class="cellrowborder" valign="top" width="17.998200179982003%" id="mcps1.3.3.2.3.2.2.5.1.1"><p id="en-us_topic_0060929630__p109451331881">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.308169183081695%" id="mcps1.3.3.2.3.2.2.5.1.2"><p id="en-us_topic_0060929630__p494514331886">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.81801819818018%" id="mcps1.3.3.2.3.2.2.5.1.3"><p id="en-us_topic_0060929630__p194510331783">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="43.87561243875613%" id="mcps1.3.3.2.3.2.2.5.1.4"><p id="en-us_topic_0060929630__p7945183315816">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0060929630__row19469333816"><td class="cellrowborder" valign="top" width="17.998200179982003%" headers="mcps1.3.3.2.3.2.2.5.1.1 "><p id="en-us_topic_0060929630__p1194610335817">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.308169183081695%" headers="mcps1.3.3.2.3.2.2.5.1.2 "><p id="en-us_topic_0060929630__p0946193311813">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.81801819818018%" headers="mcps1.3.3.2.3.2.2.5.1.3 "><p id="en-us_topic_0060929630__p1194619333814">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.87561243875613%" headers="mcps1.3.3.2.3.2.2.5.1.4 "><p id="en-us_topic_0060929630__p16946733784">Specifies the key.</p>
|
|
<p id="en-us_topic_0060929630__p1794617339818">It can contain up to 36 Unicode characters and cannot be left blank. Only digits, letters, hyphens (-), at signs (@), and underscores (_) are allowed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0060929630__row159461331988"><td class="cellrowborder" valign="top" width="17.998200179982003%" headers="mcps1.3.3.2.3.2.2.5.1.1 "><p id="en-us_topic_0060929630__p1894615334819">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.308169183081695%" headers="mcps1.3.3.2.3.2.2.5.1.2 "><p id="en-us_topic_0060929630__p79460331084">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.81801819818018%" headers="mcps1.3.3.2.3.2.2.5.1.3 "><p id="en-us_topic_0060929630__p1694611339816">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="43.87561243875613%" headers="mcps1.3.3.2.3.2.2.5.1.4 "><p id="en-us_topic_0060929630__p1794617331988">Specifies the value.</p>
|
|
<p id="en-us_topic_0060929630__p29468331184">Each value contains a maximum of 43 Unicode characters and can be an empty string. Only digits, letters, hyphens (-), at signs (@), and underscores (_) are allowed.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="en-us_topic_0060929630__ul15410356182827"><li id="en-us_topic_0060929630__li4475483182827">Example request<pre class="codeblock" id="en-us_topic_0060929630__codeblock15520154616343"><strong id="en-us_topic_0060929630__b156207435211">PUT https://{</strong><em id="en-us_topic_0060929630__i16621174316211">TMS endpoint</em><strong id="en-us_topic_0060929630__b15621164314217">}/v1.0/predefined_tags</strong></pre>
|
|
<pre class="screen" id="en-us_topic_0060929630__screen1135871675010">{
|
|
"new_tag": {
|
|
"key": "ENV1",
|
|
"value": "DEV1"
|
|
},
|
|
"old_tag": {
|
|
"key": "ENV2",
|
|
"value": "DEV2"
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0060929630__section26969841182827"><h4 class="sectiontitle">Example Response</h4><p id="en-us_topic_0060929630__p148073472218"><strong id="en-us_topic_0060929630__b194125246884513">Status code: 200</strong></p>
|
|
<p id="en-us_topic_0060929630__p1748093410226">Successful operation</p>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0060929630__section17789101582315"><h4 class="sectiontitle">Status Codes</h4><p id="en-us_topic_0060929630__p145228330242">See <a href="en-us_topic_0130578970.html">Status Codes</a>.</p>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0060929630__section18604165622519"><h4 class="sectiontitle">Error Codes</h4><p id="en-us_topic_0060929630__p177044331253">See <a href="en-us_topic_0057939857.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0133313258.html">Predefined Tag Operations</a></div>
|
|
</div>
|
|
</div>
|
|
|