forked from laiweijian4/doc-exports
Reviewed-by: Muller, Martin <martin.muller@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
161 lines
11 KiB
HTML
161 lines
11 KiB
HTML
<a name="sfs_02_0077"></a><a name="sfs_02_0077"></a>
|
|
|
|
<h1 class="topictitle1">Querying Tags of a File System</h1>
|
|
<div id="body1572053639618"><div class="section" id="sfs_02_0077__section546483321512"><h4 class="sectiontitle">Function</h4><p id="sfs_02_0077__p172753471513">This API is used to query all tags of an SFS Turbo file system.</p>
|
|
</div>
|
|
<div class="section" id="sfs_02_0077__section1471123316156"><h4 class="sectiontitle">URI</h4><ul id="sfs_02_0077__ul127334131510"><li id="sfs_02_0077__li527153415159">GET /v1/{project_id}/sfs-turbo/{share_id}/tags</li><li id="sfs_02_0077__li22723401515">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0077__table24871233161513" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0077__row827634171515"><th align="left" class="cellrowborder" valign="top" width="18.181818181818183%" id="mcps1.3.2.2.2.1.1.5.1.1"><p id="sfs_02_0077__p15278346155">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.131313131313133%" id="mcps1.3.2.2.2.1.1.5.1.2"><p id="sfs_02_0077__p132793416157">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.181818181818183%" id="mcps1.3.2.2.2.1.1.5.1.3"><p id="sfs_02_0077__p102783441520">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50.505050505050505%" id="mcps1.3.2.2.2.1.1.5.1.4"><p id="sfs_02_0077__p427153419158">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_02_0077__row42713413159"><td class="cellrowborder" valign="top" width="18.181818181818183%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="sfs_02_0077__p1128133417158">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.131313131313133%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="sfs_02_0077__p6289347152">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.181818181818183%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="sfs_02_0077__p1928133441512">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.505050505050505%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="sfs_02_0077__p628193451514">Specifies the project ID of the operator.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0077__row72833441516"><td class="cellrowborder" valign="top" width="18.181818181818183%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="sfs_02_0077__p728234131511">share_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.131313131313133%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="sfs_02_0077__p10281034141520">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.181818181818183%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="sfs_02_0077__p1728123451515">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.505050505050505%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="sfs_02_0077__p2281834191511">Specifies the ID of the shared file system.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sfs_02_0077__section16525233131518"><h4 class="sectiontitle">Request</h4><ul id="sfs_02_0077__ul9280342151"><li id="sfs_02_0077__li1729113412158">Parameter description<p id="sfs_02_0077__p192973471520"><a name="sfs_02_0077__li1729113412158"></a><a name="li1729113412158"></a>None</p>
|
|
</li><li id="sfs_02_0077__li112923412152">Example request<p id="sfs_02_0077__p183123421511"><a name="sfs_02_0077__li112923412152"></a><a name="li112923412152"></a>None</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sfs_02_0077__section9542133191511"><h4 class="sectiontitle">Response</h4><ul id="sfs_02_0077__ul123210342155"><li id="sfs_02_0077__li632163491517">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0077__table19569123319158" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0077__row1371134151518"><th align="left" class="cellrowborder" valign="top" width="20.200000000000003%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="sfs_02_0077__p103711342159">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15.15%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="sfs_02_0077__p9371934161517">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="64.64999999999999%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="sfs_02_0077__p73743419159">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_02_0077__row193723416154"><td class="cellrowborder" valign="top" width="20.200000000000003%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="sfs_02_0077__p837103415159">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.15%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="sfs_02_0077__p1837734171510">List<resource_tag></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="64.64999999999999%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="sfs_02_0077__p1837434121513">Specifies the tag list. For details, see <a href="#sfs_02_0077__table7634153341515">Description of field resource_tag</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0077__row3372349158"><td class="cellrowborder" valign="top" width="20.200000000000003%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="sfs_02_0077__p3377341152">sys_tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.15%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="sfs_02_0077__p143743451514">List<resource_tag></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="64.64999999999999%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="sfs_02_0077__p2371134161517">Only the op_service permission can obtain this field.</p>
|
|
<ol id="sfs_02_0077__ol438934141515"><li id="sfs_02_0077__li2038634151519">Currently, only one resource_tag structure key is used, <strong id="sfs_02_0077__b5237534359">_sys_enterprise_project_id</strong>.</li><li id="sfs_02_0077__li133815345158">Currently, <strong id="sfs_02_0077__b519516387303">key</strong> contains only one value. <strong id="sfs_02_0077__b92111338133020">0</strong> indicates the default enterprise project.</li></ol>
|
|
<p id="sfs_02_0077__p638143411156">This field cannot be returned in non-op_service scenarios.</p>
|
|
<p id="sfs_02_0077__p127555313313">For details, see <a href="#sfs_02_0077__table7634153341515">Description of field resource_tag</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="sfs_02_0077__ul16381534171516"><li id="sfs_02_0077__li103873413151">Description of field <strong id="sfs_02_0077__b204609473110">resource_tag</strong>
|
|
<div class="tablenoborder"><a name="sfs_02_0077__table7634153341515"></a><a name="table7634153341515"></a><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0077__table7634153341515" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0077__row43819340158"><th align="left" class="cellrowborder" valign="top" width="20.202020202020204%" id="mcps1.3.4.3.1.2.1.4.1.1"><p id="sfs_02_0077__p17381334171518">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15.151515151515152%" id="mcps1.3.4.3.1.2.1.4.1.2"><p id="sfs_02_0077__p193863412158">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="64.64646464646465%" id="mcps1.3.4.3.1.2.1.4.1.3"><p id="sfs_02_0077__p153833413152">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_02_0077__row153803451515"><td class="cellrowborder" valign="top" width="20.202020202020204%" headers="mcps1.3.4.3.1.2.1.4.1.1 "><p id="sfs_02_0077__p1938123441516">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.3.1.2.1.4.1.2 "><p id="sfs_02_0077__p113813410155">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="64.64646464646465%" headers="mcps1.3.4.3.1.2.1.4.1.3 "><p id="sfs_02_0077__p1381634151518">Specifies the tag key.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0077__row14389340150"><td class="cellrowborder" valign="top" width="20.202020202020204%" headers="mcps1.3.4.3.1.2.1.4.1.1 "><p id="sfs_02_0077__p23883419156">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.151515151515152%" headers="mcps1.3.4.3.1.2.1.4.1.2 "><p id="sfs_02_0077__p1638113413155">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="64.64646464646465%" headers="mcps1.3.4.3.1.2.1.4.1.3 "><p id="sfs_02_0077__p6381934171513">Specifies the tag value.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<p id="sfs_02_0077__p539113417157"></p>
|
|
<ul id="sfs_02_0077__ul113993491517"><li id="sfs_02_0077__li839534101514">Example response<pre class="screen" id="sfs_02_0077__screen66481936122217">{
|
|
"tags": [
|
|
{
|
|
"key": "key1",
|
|
"value": "value1"
|
|
},
|
|
{
|
|
"key": "key2",
|
|
"value": ""
|
|
}
|
|
]
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sfs_02_0077__section2663533111513"><h4 class="sectiontitle">Status Codes</h4><ul id="sfs_02_0077__ul10391834171518"><li id="sfs_02_0077__li14391734141510">Normal<p id="sfs_02_0077__p83916344157"><a name="sfs_02_0077__li14391734141510"></a><a name="li14391734141510"></a>200</p>
|
|
</li><li id="sfs_02_0077__li539103414156">Abnormal
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0077__table13678933181518" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0077__row113963451511"><th align="left" class="cellrowborder" valign="top" width="43.43%" id="mcps1.3.5.2.2.1.1.3.1.1"><p id="sfs_02_0077__p539193415159">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="56.57%" id="mcps1.3.5.2.2.1.1.3.1.2"><p id="sfs_02_0077__p1039153413159">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_02_0077__row193973419156"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0077__p18391934101520">400 Bad Request</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.57%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="sfs_02_0077__p19396345154">Invalid value.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0077__row17391834141512"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0077__p7391734121518">401 Unauthorized</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.57%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="sfs_02_0077__p163933411516">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0077__row339434191513"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0077__p539193411518">403 Forbidden</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.57%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="sfs_02_0077__p3392347159">Access to the requested page is forbidden.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0077__row239203410156"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0077__p64163414151">404 Not Found</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.57%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="sfs_02_0077__p10411346156">The requested resource was not found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0077__row24120345154"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0077__p441734131517">500 Internal Server Error</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.57%" headers="mcps1.3.5.2.2.1.1.3.1.2 "><p id="sfs_02_0077__p174123471511">The request is not completed because of a service error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="sfs_02_0074.html">Tag Management</a></div>
|
|
</div>
|
|
</div>
|
|
|