doc-exports/docs/ecs/api-ref/en-us_topic_0065817686.html
Artem Goncharov 3196b64bfc
move doc sources to other location (#3)
move doc sources to other location

Reviewed-by: OpenTelekomCloud Bot <None>
2022-04-27 16:24:25 +00:00

18 lines
2.8 KiB
HTML

<a name="EN-US_TOPIC_0065817686"></a><a name="EN-US_TOPIC_0065817686"></a>
<h1 class="topictitle1">Tag Types</h1>
<div id="body1499652824860"><div class="p" id="EN-US_TOPIC_0065817686__p1184114219576">Tag functions have been upgraded on the platform. After the upgrade, a tag consists of a key and a value. Keys and values comply with the following rules:<ul id="EN-US_TOPIC_0065817686__en-us_topic_0065817685_ul1797749125717"><li id="EN-US_TOPIC_0065817686__en-us_topic_0065817685_li1579711495575">For the tags created after the upgrade, all characters in <strong id="EN-US_TOPIC_0065817686__b842352706103948">tags</strong> are automatically used as a key, and the value is empty. Tags consist of only digits, letters, hyphens (-), and underscores (_).</li><li id="EN-US_TOPIC_0065817686__en-us_topic_0065817685_li2797249155717">For the tags that have been created before the upgrade:<ul id="EN-US_TOPIC_0065817686__en-us_topic_0065817685_ul692141010582"><li id="EN-US_TOPIC_0065817686__en-us_topic_0065817685_li1157088587">If no period (.) is used in <strong id="EN-US_TOPIC_0065817686__b487034028104013">tags</strong>, all characters in <strong id="EN-US_TOPIC_0065817686__b503940449104019">tags</strong> are used as a key, and the value is empty.</li><li id="EN-US_TOPIC_0065817686__en-us_topic_0065817685_li915748185811">If periods (.) are used in <strong id="EN-US_TOPIC_0065817686__b849396706104041">tags</strong>, the characters before the first period are used as a key and the characters after the first period are used as a value.</li></ul>
</li></ul>
</div>
<p id="EN-US_TOPIC_0065817686__p148413210577">After the tag function upgrade, tag management APIs are classified as the APIs for 1D tags and the APIs for 2D tags.</p>
<ul id="EN-US_TOPIC_0065817686__ul1819032865911"><li id="EN-US_TOPIC_0065817686__en-us_topic_0057972836_li8460311778">A 1D tag contains a string. All APIs for 1D tags are native OpenStack APIs. For details, see this section.</li><li id="EN-US_TOPIC_0065817686__li6190182817598">A 2D tag consists of a key and a value. All APIs for 2D tags are ECS APIs. For details, see <a href="en-us_topic_0108433461.html">Tag Management</a>.</li></ul>
<div class="note" id="EN-US_TOPIC_0065817686__note88065294217"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0065817686__en-us_topic_0065817685_ul1974913465213"><li id="EN-US_TOPIC_0065817686__en-us_topic_0065817685_li774911461219">You are advised to use the APIs of the same type to add, delete, modify, or query tags.</li><li id="EN-US_TOPIC_0065817686__en-us_topic_0065817685_li107491146028">You are advised to use 2D tags.</li></ul>
</div></div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0108433460.html">Tag Management</a></div>
</div>
</div>