forked from docs/doc-exports
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: weihongmin1 <weihongmin1@huawei.com> Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
49 lines
5.2 KiB
HTML
49 lines
5.2 KiB
HTML
<a name="obs_03_0331"></a><a name="obs_03_0331"></a>
|
|
|
|
<h1 class="topictitle1">Adding Tags to 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 section 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__li11242915363"><span>In the bucket list, click the bucket you want to operate to go to the <strong id="obs_03_0331__obs_03_0307_b5948183711913">Objects</strong> page.</span></li><li id="obs_03_0331__li11440544481"><span>In the navigation pane, choose <strong id="obs_03_0331__b6366111185718">Basic Configurations</strong> > <strong id="obs_03_0331__b16366201115714">Tagging</strong>.</span></li><li id="obs_03_0331__li94421761228"><span>Click <strong id="obs_03_0331__b5796277503">Add Tag</strong>. The <strong id="obs_03_0331__b19866182918508">Add Tag</strong> dialog box is displayed.</span><p><div class="fignone" id="obs_03_0331__fig1221114149441"><span class="figcap"><b>Figure 1 </b>Add Tag</span><br><span><img id="obs_03_0331__image1221120147446" src="en-us_image_0000002169013913.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. The value of the key can be self-defined or predefined by TMS.</p>
|
|
<p id="obs_03_0331__p1239741018398">Tag key constraints:</p>
|
|
<ul id="obs_03_0331__ul791472112397"><li id="obs_03_0331__li8914112133911">If there are multiple tags specified for an object, each tag key must be unique.</li><li id="obs_03_0331__li15153224123915">A tag key must contain 1 to 36 characters and be case sensitive.</li><li id="obs_03_0331__li147351326103919">A tag key can't start or end with a space or contain the following characters: ,/|<>=*\</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__p114261946133917">Tag value constraints:</p>
|
|
<ul id="obs_03_0331__ul1156773134019"><li id="obs_03_0331__li195674311402">A tag value can contain 0 to 43 characters and must be case sensitive.</li><li id="obs_03_0331__li13784659409">A tag value can't contain the following characters: ,/|<>=*\</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> |