forked from docs/doc-exports
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: Wei, Hongmin <weihongmin1@huawei.com> Co-committed-by: Wei, Hongmin <weihongmin1@huawei.com>
159 lines
11 KiB
HTML
159 lines
11 KiB
HTML
<a name="sfs_02_0039"></a><a name="sfs_02_0039"></a>
|
|
|
|
<h1 class="topictitle1">Querying Tag Information About a Shared File System</h1>
|
|
<div id="body1521093540922"><div class="section" id="sfs_02_0039__section10684447163819"><h4 class="sectiontitle">Function</h4><p id="sfs_02_0039__p146416401418">This API is used to query all tag information about the specified shared file system.</p>
|
|
</div>
|
|
<div class="section" id="sfs_02_0039__section1665327514513"><h4 class="sectiontitle">URI</h4><ul id="sfs_02_0039__ul673803814513"><li id="sfs_02_0039__li131181261320">GET /v2/{project_id}/sfs/{share_id}/tags</li><li id="sfs_02_0039__li6064234314513">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0039__table22021759152019" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0039__row16139965152019"><th align="left" class="cellrowborder" valign="top" width="18.56%" id="mcps1.3.2.2.2.1.1.5.1.1"><p id="sfs_02_0039__p17124101410431">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.4%" id="mcps1.3.2.2.2.1.1.5.1.2"><p id="sfs_02_0039__p1612415146430">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.65%" id="mcps1.3.2.2.2.1.1.5.1.3"><p id="sfs_02_0039__p312416148432">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="46.39%" id="mcps1.3.2.2.2.1.1.5.1.4"><p id="sfs_02_0039__p3124181464318">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_02_0039__row55089343152019"><td class="cellrowborder" valign="top" width="18.56%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="sfs_02_0039__p1781134044818">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.4%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="sfs_02_0039__p59952126152019">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.65%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="sfs_02_0039__p24284048152019">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="46.39%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="sfs_02_0039__p20850895152019">Specifies the project ID of the operator.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0039__row3119103219486"><td class="cellrowborder" valign="top" width="18.56%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="sfs_02_0039__p1011933217487">share_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.4%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="sfs_02_0039__p18120163210481">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.65%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="sfs_02_0039__p11120113294813">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="46.39%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="sfs_02_0039__p13120143211489">Specifies the share ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sfs_02_0039__section1041111631610"><h4 class="sectiontitle">Request</h4><ul id="sfs_02_0039__ul10411106151619"><li id="sfs_02_0039__li380452214513">Parameter description<p id="sfs_02_0039__p2376195911116"><a name="sfs_02_0039__li380452214513"></a><a name="li380452214513"></a>None</p>
|
|
</li><li id="sfs_02_0039__li1841346121610">Example request<p id="sfs_02_0039__p0375199111212"><a name="sfs_02_0039__li1841346121610"></a><a name="li1841346121610"></a>None</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sfs_02_0039__section6408307814513"><h4 class="sectiontitle">Response</h4><ul id="sfs_02_0039__ul2334684914513"><li id="sfs_02_0039__li879505414513">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0039__table1836815510524" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0039__row1137265565217"><th align="left" class="cellrowborder" valign="top" width="20.26%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="sfs_02_0039__p1220553717265">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15.18%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="sfs_02_0039__p722173732618">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="64.56%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="sfs_02_0039__p12221183792610">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_02_0039__row8379125520523"><td class="cellrowborder" valign="top" width="20.26%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="sfs_02_0039__p13380755115210">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.18%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="sfs_02_0039__p999215189579">Array of resource_tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="64.56%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="sfs_02_0039__p938455505218">Specifies the list of tags.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0039__row118571741145214"><td class="cellrowborder" valign="top" width="20.26%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="sfs_02_0039__p162874465213">sys_tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.18%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="sfs_02_0039__p128844115218">Array of resource_tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="64.56%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="sfs_02_0039__p172864425217">Only the op_service permission can obtain this field.</p>
|
|
<ol id="sfs_02_0039__ol13281444125215"><li id="sfs_02_0039__li928134475211">Currently, only one resource_tag structure key is used, <strong id="sfs_02_0039__b5237534359">_sys_enterprise_project_id</strong>.</li><li id="sfs_02_0039__li828174412525">Currently, <strong id="sfs_02_0039__b834933063519">key</strong> contains only one value.</li></ol>
|
|
<p id="sfs_02_0039__p42864485214">This field cannot be returned in non-op_service scenarios.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="sfs_02_0039__li1213170132912">Description of field <strong id="sfs_02_0039__b129301825169">resource_tag</strong>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0039__table14385185545214" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0039__row5389135517522"><th align="left" class="cellrowborder" valign="top" width="20.01%" id="mcps1.3.4.2.2.2.1.4.1.1"><p id="sfs_02_0039__p19554127162720">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.33%" id="mcps1.3.4.2.2.2.1.4.1.2"><p id="sfs_02_0039__p175546782715">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.66%" id="mcps1.3.4.2.2.2.1.4.1.3"><p id="sfs_02_0039__p1055418792713">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_02_0039__row10396165515211"><td class="cellrowborder" valign="top" width="20.01%" headers="mcps1.3.4.2.2.2.1.4.1.1 "><p id="sfs_02_0039__p7397185512522">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.33%" headers="mcps1.3.4.2.2.2.1.4.1.2 "><p id="sfs_02_0039__p18399255165215">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.66%" headers="mcps1.3.4.2.2.2.1.4.1.3 "><p id="sfs_02_0039__p14400185515528">Specifies the key of the tag.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0039__row144011055105210"><td class="cellrowborder" valign="top" width="20.01%" headers="mcps1.3.4.2.2.2.1.4.1.1 "><p id="sfs_02_0039__p144021355135210">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.33%" headers="mcps1.3.4.2.2.2.1.4.1.2 "><p id="sfs_02_0039__p16405255185213">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.66%" headers="mcps1.3.4.2.2.2.1.4.1.3 "><p id="sfs_02_0039__p240685517526">Specifies the value of the tag.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="sfs_02_0039__ul3903357014513"><li id="sfs_02_0039__li1575781314513">Example response<pre class="screen" id="sfs_02_0039__screen14223243141818">{
|
|
"tags": [
|
|
{
|
|
"key": "key1",
|
|
"value": "value1"
|
|
},
|
|
{
|
|
"key": "key2",
|
|
"value": ""
|
|
}
|
|
]
|
|
}</pre>
|
|
<p id="sfs_02_0039__p103241639101813"></p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sfs_02_0039__section4959408514513"><h4 class="sectiontitle">Status Codes</h4><ul id="sfs_02_0039__ul5769798014513"><li id="sfs_02_0039__li4951977214513">Normal<p id="sfs_02_0039__p4302476614513"><a name="sfs_02_0039__li4951977214513"></a><a name="li4951977214513"></a>200</p>
|
|
</li><li id="sfs_02_0039__li5167858014513">Abnormal
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0039__table6245403714513" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0039__row1507735814513"><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_0039__p1330652014513">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_0039__p408636314513"><strong id="sfs_02_0039__b84235270615228">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_02_0039__row3477393214513"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0039__p6522508214513">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_0039__p4874025614513">Invalid value.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0039__row3600912414513"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0039__p3105792214513">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_0039__p3266375714513">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0039__row2553835814513"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0039__p5534113514513">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_0039__p5344692014513">Access to the requested page is forbidden.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0039__row1126023214513"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0039__p3966357214513">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_0039__p5863278914513">The requested resource was not found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0039__row1011562214513"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0039__p1405905414513">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_0039__p6504160314513">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_0036.html">Share Tag</a></div>
|
|
</div>
|
|
</div>
|
|
|