doc-exports/docs/obs/umn/obs_03_0331.html
zhangyue b55201d729 OBS UMN DOC
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2024-03-18 15:39:30 +00:00

50 lines
5.4 KiB
HTML

<a name="obs_03_0331"></a><a name="obs_03_0331"></a>
<h1 class="topictitle1">Configuring Tags for a Bucket</h1>
<div id="body1499776428443"><p id="obs_03_0331__p780819559164">When creating a bucket, you can add tags to it. For details, see <a href="obs_03_0306.html">Creating a Bucket</a>. You can also add tags to a bucket after it has been created. This topic describes how to add tags to an existing bucket.</p>
<div class="section" id="obs_03_0331__section5638611211102"><h4 class="sectiontitle">Procedure</h4><ol id="obs_03_0331__ol42691016111013"><li id="obs_03_0331__li99821455306"><span>In the bucket list, click the bucket you want to operate. The <strong id="obs_03_0331__obs_03_0307_b144421021120">Overview</strong> page is displayed.</span></li><li id="obs_03_0331__li18830181855820"><span>In the <strong id="obs_03_0331__b7433162819271">Basic Configurations</strong> area, click <strong id="obs_03_0331__b1187714595270">Tags</strong>.</span><p><p id="obs_03_0331__p471425117139">Alternatively, you can choose <strong id="obs_03_0331__b8131456124915">Basic Configurations</strong> &gt; <strong id="obs_03_0331__b126861859114918">Tagging</strong> in the navigation pane.</p>
</p></li><li id="obs_03_0331__li5670563410824"><span>Click <strong id="obs_03_0331__b2596940195011">Add Tag</strong>. The <strong id="obs_03_0331__b179171944165013">Add Tag</strong> dialog box is displayed. See <a href="#obs_03_0331__fig8687910182820">Figure 1</a> for details.</span><p><div class="fignone" id="obs_03_0331__fig8687910182820"><a name="obs_03_0331__fig8687910182820"></a><a name="fig8687910182820"></a><span class="figcap"><b>Figure 1 </b>Add Tag</span><br><span><img id="obs_03_0331__image198014315551" src="en-us_image_0129545688.png" title="Click to enlarge" class="imgResize"></span></div>
</p></li><li id="obs_03_0331__li06427403212"><span>Set the key and value based on <a href="#obs_03_0331__table13674114016216">Table 1</a>.</span><p>
<div class="tablenoborder"><a name="obs_03_0331__table13674114016216"></a><a name="table13674114016216"></a><table cellpadding="4" cellspacing="0" summary="" id="obs_03_0331__table13674114016216" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="obs_03_0331__row1467464018219"><th align="left" class="cellrowborder" valign="top" width="18.8%" id="mcps1.3.2.2.4.2.1.2.3.1.1"><p id="obs_03_0331__p767415404217">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="81.2%" id="mcps1.3.2.2.4.2.1.2.3.1.2"><p id="obs_03_0331__p66747409211">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="obs_03_0331__row1674164010218"><td class="cellrowborder" valign="top" width="18.8%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="obs_03_0331__p10674140192117">Key</p>
</td>
<td class="cellrowborder" valign="top" width="81.2%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><p id="obs_03_0331__p116741240172118">Specifies the key of the tag. Each tag of a bucket has a unique key. The value of the key can be self-defined or predefined by TMS.</p>
<p id="obs_03_0331__p18689840142116">A tag key must comply with the following naming rules:</p>
<ul id="obs_03_0331__ul1868918402218"><li id="obs_03_0331__li19689540152114">Must contain 1 to 36 characters.</li><li id="obs_03_0331__li6689134062117">Only digits, letters, underscores (_), hyphens (-) are allowed.</li></ul>
</td>
</tr>
<tr id="obs_03_0331__row1668974010210"><td class="cellrowborder" valign="top" width="18.8%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="obs_03_0331__p18689114092118">Value</p>
</td>
<td class="cellrowborder" valign="top" width="81.2%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><p id="obs_03_0331__p9689194011211">Specifies the value of the tag. Tags of a bucket can have repetitive or blank values.</p>
<p id="obs_03_0331__p14689104032115">The tag value must comply with the following naming rules:</p>
<ul id="obs_03_0331__ul96891340162118"><li id="obs_03_0331__li11689124012116">Must contain 0 to 43 characters.</li><li id="obs_03_0331__li2689640112116">Only digits, letters, underscores (_), hyphens (-) are allowed.</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</p></li><li id="obs_03_0331__li25598290111416"><span>Click <strong id="obs_03_0331__b2089532326163715">OK</strong>.</span><p><p id="obs_03_0331__p62559894112355">It takes approximately 3 minutes for the tag to take effect.</p>
</p></li></ol>
</div>
<div class="section" id="obs_03_0331__section917818283464"><h4 class="sectiontitle">Related Operations</h4><p id="obs_03_0331__p14127183944614">In the tag list, click <strong id="obs_03_0331__b442513919118">Edit</strong> to change the tag value or click <strong id="obs_03_0331__b842352706162421">Delete</strong> to remove the tag.</p>
<p id="obs_03_0331__p19577200102917">Searching for buckets by tag is not supported by OBS. However, you can use Tag Management Service (TMS) to search for buckets by tag. For details, see <a href="https://docs.otc.t-systems.com/usermanual/tms/en-us_topic_0056266264.html" target="_blank" rel="noopener noreferrer">Searching for Cloud Resources</a>. <strong id="obs_03_0331__obs_03_0039_b1046018271146">Resource Type</strong> should be set to <strong id="obs_03_0331__obs_03_0039_b109761323141410">OBS-Bucket</strong>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_03_0330.html">Tags</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>