doc-exports/docs/sfs/api-ref/sfs_02_0094.html
zhangyue 5d0d5cb580 SFS API DOC
Reviewed-by: Muller, Martin <martin.muller@t-systems.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2023-05-01 07:32:40 +00:00

138 lines
9.4 KiB
HTML

<a name="sfs_02_0094"></a><a name="sfs_02_0094"></a>
<h1 class="topictitle1">Querying Tags of All File Systems of a Tenant</h1>
<div id="body1588044357047"><div class="section" id="sfs_02_0094__section10684447163819"><h4 class="sectiontitle">Function</h4><p id="sfs_02_0094__p76827491048">This API is used to query the tags of all file systems of a tenant.</p>
</div>
<div class="section" id="sfs_02_0094__section1665327514513"><h4 class="sectiontitle">URI</h4><ul id="sfs_02_0094__ul673803814513"><li id="sfs_02_0094__li6064234314513">GET /v1/{project_id}/sfs-turbo/tags</li><li id="sfs_02_0094__li891018114513">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0094__table22021759152019" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0094__row16139965152019"><th align="left" class="cellrowborder" valign="top" width="19%" id="mcps1.3.2.2.2.1.1.5.1.1"><p id="sfs_02_0094__p17124101410431">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13%" id="mcps1.3.2.2.2.1.1.5.1.2"><p id="sfs_02_0094__p1612415146430">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="12%" id="mcps1.3.2.2.2.1.1.5.1.3"><p id="sfs_02_0094__p312416148432">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="56.00000000000001%" id="mcps1.3.2.2.2.1.1.5.1.4"><p id="sfs_02_0094__p3124181464318">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="sfs_02_0094__row55089343152019"><td class="cellrowborder" valign="top" width="19%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="sfs_02_0094__p1781134044818">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="sfs_02_0094__p59952126152019">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="12%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="sfs_02_0094__p24284048152019">String</p>
</td>
<td class="cellrowborder" valign="top" width="56.00000000000001%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="sfs_02_0094__p20850895152019">Specifies the project ID of the operator.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="sfs_02_0094__section5063604914513"><h4 class="sectiontitle">Request</h4><ul id="sfs_02_0094__ul787926514513"><li id="sfs_02_0094__li380452214513">Parameter description<p id="sfs_02_0094__p353993117219"><a name="sfs_02_0094__li380452214513"></a><a name="li380452214513"></a>None</p>
</li><li id="sfs_02_0094__li3973086014513">Example request<p id="sfs_02_0094__p318912386215"><a name="sfs_02_0094__li3973086014513"></a><a name="li3973086014513"></a>None</p>
</li></ul>
</div>
<div class="section" id="sfs_02_0094__section6408307814513"><h4 class="sectiontitle">Response</h4><ul id="sfs_02_0094__ul2334684914513"><li id="sfs_02_0094__li879505414513">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0094__table1836815510524" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0094__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_0094__p4241049113110">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_0094__p424112490311">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_0094__p6241349133120">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="sfs_02_0094__row8379125520523"><td class="cellrowborder" valign="top" width="20.26%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="sfs_02_0094__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_0094__p18383165518521">Array of 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_0094__p938455505218">Specifies the tag list.</p>
<p id="sfs_02_0094__p1433715315161">For details, see <a href="#sfs_02_0094__table14385185545214">Description of field tag</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="sfs_02_0094__li129211714293">Description of the <strong id="sfs_02_0094__b9665848113814">tag</strong> field
<div class="tablenoborder"><a name="sfs_02_0094__table14385185545214"></a><a name="table14385185545214"></a><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0094__table14385185545214" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0094__row5389135517522"><th align="left" class="cellrowborder" valign="top" width="19.801980198019802%" id="mcps1.3.4.2.2.2.1.4.1.1"><p id="sfs_02_0094__p14210552163110">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.841584158415841%" id="mcps1.3.4.2.2.2.1.4.1.2"><p id="sfs_02_0094__p1721045273113">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="64.35643564356435%" id="mcps1.3.4.2.2.2.1.4.1.3"><p id="sfs_02_0094__p1821085218319">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="sfs_02_0094__row10396165515211"><td class="cellrowborder" valign="top" width="19.801980198019802%" headers="mcps1.3.4.2.2.2.1.4.1.1 "><p id="sfs_02_0094__p7397185512522">key</p>
</td>
<td class="cellrowborder" valign="top" width="15.841584158415841%" headers="mcps1.3.4.2.2.2.1.4.1.2 "><p id="sfs_02_0094__p18399255165215">String</p>
</td>
<td class="cellrowborder" valign="top" width="64.35643564356435%" headers="mcps1.3.4.2.2.2.1.4.1.3 "><p id="sfs_02_0094__p14400185515528">Specifies the key of the tag.</p>
</td>
</tr>
<tr id="sfs_02_0094__row144011055105210"><td class="cellrowborder" valign="top" width="19.801980198019802%" headers="mcps1.3.4.2.2.2.1.4.1.1 "><p id="sfs_02_0094__p144021355135210">values</p>
</td>
<td class="cellrowborder" valign="top" width="15.841584158415841%" headers="mcps1.3.4.2.2.2.1.4.1.2 "><p id="sfs_02_0094__p0811516115812">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="64.35643564356435%" headers="mcps1.3.4.2.2.2.1.4.1.3 "><p id="sfs_02_0094__p240685517526">Lists the values of the tag. The value is a list of tag values of all shared file systems of a tenant. Only one of the same tag values is displayed.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
<ul id="sfs_02_0094__ul3903357014513"><li id="sfs_02_0094__li1575781314513">Example response<pre class="screen" id="sfs_02_0094__screen15576135810208">{
"tags" : [ {
"key" : "key1",
"values" : [ "value1", "" ]
}, {
"key" : "key2",
"values" : [ "value1", "value2" ]
} ]
}</pre>
</li></ul>
</div>
<div class="section" id="sfs_02_0094__section4959408514513"><h4 class="sectiontitle">Status Codes</h4><ul id="sfs_02_0094__ul5769798014513"><li id="sfs_02_0094__li4951977214513">Normal<p id="sfs_02_0094__p4302476614513"><a name="sfs_02_0094__li4951977214513"></a><a name="li4951977214513"></a>200</p>
</li><li id="sfs_02_0094__li5167858014513">Abnormal
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0094__table6245403714513" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0094__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_0094__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_0094__p408636314513">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="sfs_02_0094__row3477393214513"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0094__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_0094__p4874025614513">Invalid value.</p>
</td>
</tr>
<tr id="sfs_02_0094__row3600912414513"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0094__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_0094__p3266375714513">Authentication failed.</p>
</td>
</tr>
<tr id="sfs_02_0094__row2553835814513"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0094__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_0094__p5344692014513">Access to the requested page is forbidden.</p>
</td>
</tr>
<tr id="sfs_02_0094__row1126023214513"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0094__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_0094__p5863278914513">The requested resource was not found.</p>
</td>
</tr>
<tr id="sfs_02_0094__row1011562214513"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0094__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_0094__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_0074.html">Tag Management</a></div>
</div>
</div>