forked from docs/doc-exports
Reviewed-by: Miskanin, Jan <jan.miskanin@t-systems.com> Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
337 lines
26 KiB
HTML
337 lines
26 KiB
HTML
<a name="EN-US_TOPIC_0000001663156945"></a><a name="EN-US_TOPIC_0000001663156945"></a>
|
|
|
|
<h1 class="topictitle1">Creating a Permission Rule</h1>
|
|
<div id="body0000001663156945"><div class="section" id="EN-US_TOPIC_0000001663156945__section207mcpsimp"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001663156945__p209mcpsimp">This API is used to create a permission rule.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001663156945__section214mcpsimp"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000001663156945__p216mcpsimp">POST /v1/{project_id}/sfs-turbo/shares/{share_id}/fs/perm-rules</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001663156945__table217mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001663156945__row225mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="EN-US_TOPIC_0000001663156945__p227mcpsimp">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="EN-US_TOPIC_0000001663156945__p229mcpsimp">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="EN-US_TOPIC_0000001663156945__p231mcpsimp">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="EN-US_TOPIC_0000001663156945__p233mcpsimp">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001663156945__row235mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001663156945__p237mcpsimp">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001663156945__p239mcpsimp">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001663156945__p241mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001663156945__p243mcpsimp">Project ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001663156945__row244mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001663156945__p246mcpsimp">share_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001663156945__p248mcpsimp">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001663156945__p250mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001663156945__p252mcpsimp">File system ID</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001663156945__section253mcpsimp"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001663156945__table255mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001663156945__row263mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="EN-US_TOPIC_0000001663156945__p265mcpsimp">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="EN-US_TOPIC_0000001663156945__p267mcpsimp">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="EN-US_TOPIC_0000001663156945__p269mcpsimp">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="EN-US_TOPIC_0000001663156945__p271mcpsimp">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001663156945__row273mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001663156945__p275mcpsimp">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001663156945__p277mcpsimp">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001663156945__p279mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001663156945__p281mcpsimp">Account token</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001663156945__row282mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001663156945__p284mcpsimp">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001663156945__p286mcpsimp">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001663156945__p288mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001663156945__p290mcpsimp">MIME type</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001663156945__table291mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameter</caption><thead align="left"><tr id="EN-US_TOPIC_0000001663156945__row299mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="EN-US_TOPIC_0000001663156945__p301mcpsimp">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="EN-US_TOPIC_0000001663156945__p303mcpsimp">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="EN-US_TOPIC_0000001663156945__p305mcpsimp">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="EN-US_TOPIC_0000001663156945__p307mcpsimp">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001663156945__row309mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001663156945__p311mcpsimp">rules</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001663156945__p313mcpsimp">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001663156945__p315mcpsimp">Array of <a href="#EN-US_TOPIC_0000001663156945___d0e19420">Table 4</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001663156945__p318mcpsimp">Permission rule details. A maximum of five rules can be created at a time.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001663156945___d0e19420"></a><a name="_d0e19420"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001663156945___d0e19420" frame="border" border="1" rules="all"><caption><b>Table 4 </b>OnePermRuleRequestInfo</caption><thead align="left"><tr id="EN-US_TOPIC_0000001663156945__row326mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="EN-US_TOPIC_0000001663156945__p328mcpsimp">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="EN-US_TOPIC_0000001663156945__p330mcpsimp">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="EN-US_TOPIC_0000001663156945__p332mcpsimp">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="EN-US_TOPIC_0000001663156945__p334mcpsimp">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001663156945__row345mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="EN-US_TOPIC_0000001663156945__p347mcpsimp">rw_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="EN-US_TOPIC_0000001663156945__p349mcpsimp">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="EN-US_TOPIC_0000001663156945__p351mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="EN-US_TOPIC_0000001663156945__p353mcpsimp">Read/write permission of the object to be authorized. The value can be <strong id="EN-US_TOPIC_0000001663156945__b528012754111">rw</strong> (read and write permission), <strong id="EN-US_TOPIC_0000001663156945__b1385989194115">ro</strong> (read only permission), or <strong id="EN-US_TOPIC_0000001663156945__b1979919482357">none</strong> (no access permission). The default value is <strong id="EN-US_TOPIC_0000001663156945__b8368154319346">rw</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001663156945__row354mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="EN-US_TOPIC_0000001663156945__p356mcpsimp">user_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="EN-US_TOPIC_0000001663156945__p358mcpsimp">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="EN-US_TOPIC_0000001663156945__p360mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="EN-US_TOPIC_0000001663156945__p362mcpsimp">File system access permission granted to the user of the object to be authorized. The value can be <strong id="EN-US_TOPIC_0000001663156945__b14585162918512">no_root_squash</strong>, <strong id="EN-US_TOPIC_0000001663156945__b194223219510">root_squash</strong>, or <strong id="EN-US_TOPIC_0000001663156945__b62581351559">all_squash</strong>. Value <strong id="EN-US_TOPIC_0000001663156945__b17840104712510">no_root_squash</strong> allows the root user on the client to access the file system as <strong id="EN-US_TOPIC_0000001663156945__b384211418496">root</strong>. Value <strong id="EN-US_TOPIC_0000001663156945__b16998150092">root_squash</strong> allows the root user on the client to access the file system as <strong id="EN-US_TOPIC_0000001663156945__b861182174919">nfsnobody</strong>. Value <strong id="EN-US_TOPIC_0000001663156945__b84291759899">all_squash</strong> allows any user on the client to access the file system as <strong id="EN-US_TOPIC_0000001663156945__b18901142619497">nfsnobody</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001663156945__row1737815586416"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="EN-US_TOPIC_0000001663156945__p692mcpsimp">ip_cidr</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="EN-US_TOPIC_0000001663156945__p694mcpsimp">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="EN-US_TOPIC_0000001663156945__p696mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="EN-US_TOPIC_0000001663156945__p15379195864110">IP address or IP address range of the object to be authorized</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001663156945__section363mcpsimp"><h4 class="sectiontitle">Response Parameters</h4><p id="EN-US_TOPIC_0000001663156945__p365mcpsimp"><strong id="EN-US_TOPIC_0000001663156945__b10851831104913">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001663156945__table367mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameter</caption><thead align="left"><tr id="EN-US_TOPIC_0000001663156945__row374mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="EN-US_TOPIC_0000001663156945__p376mcpsimp">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="EN-US_TOPIC_0000001663156945__p378mcpsimp">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="EN-US_TOPIC_0000001663156945__p380mcpsimp">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001663156945__row382mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001663156945__p384mcpsimp">rules</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001663156945__p386mcpsimp">Array of <a href="#EN-US_TOPIC_0000001663156945___d0e19520">Table 6</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001663156945__p389mcpsimp">Permission rule details</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001663156945___d0e19520"></a><a name="_d0e19520"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001663156945___d0e19520" frame="border" border="1" rules="all"><caption><b>Table 6 </b>OnePermRuleResponseInfo</caption><thead align="left"><tr id="EN-US_TOPIC_0000001663156945__row396mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.1"><p id="EN-US_TOPIC_0000001663156945__p398mcpsimp">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.2"><p id="EN-US_TOPIC_0000001663156945__p400mcpsimp">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.4.2.4.1.3"><p id="EN-US_TOPIC_0000001663156945__p402mcpsimp">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001663156945__row404mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001663156945__p406mcpsimp">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001663156945__p408mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001663156945__p410mcpsimp">Permission rule ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001663156945__row411mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001663156945__p413mcpsimp">ip_cidr</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001663156945__p415mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001663156945__p417mcpsimp">IP address or IP address range of the authorized object</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001663156945__row418mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001663156945__p420mcpsimp">rw_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001663156945__p422mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001663156945__p424mcpsimp">Read/write permission of the authorized object. The value can be <strong id="EN-US_TOPIC_0000001663156945__b01881052467">rw</strong> (read and write permission), <strong id="EN-US_TOPIC_0000001663156945__b218918522610">ro</strong> (read only permission), or <strong id="EN-US_TOPIC_0000001663156945__b12373444143616">none</strong> (no access permission). The default value is <strong id="EN-US_TOPIC_0000001663156945__b1918965217611">rw</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001663156945__row425mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001663156945__p427mcpsimp">user_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001663156945__p429mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001663156945__p431mcpsimp">File system access permission granted to the user of the authorized object. The value can be <strong id="EN-US_TOPIC_0000001663156945__b5397740713">no_root_squash</strong>, <strong id="EN-US_TOPIC_0000001663156945__b83981941176">root_squash</strong>, or <strong id="EN-US_TOPIC_0000001663156945__b4398841972">all_squash</strong>. Value <strong id="EN-US_TOPIC_0000001663156945__b35121130161511">no_root_squash</strong> allows the root user on the client to access the file system as <strong id="EN-US_TOPIC_0000001663156945__b11513183091516">root</strong>. Value <strong id="EN-US_TOPIC_0000001663156945__b78491832181511">root_squash</strong> allows the root user on the client to access the file system as <strong id="EN-US_TOPIC_0000001663156945__b1084916325157">nfsnobody</strong>. Value <strong id="EN-US_TOPIC_0000001663156945__b940123514154">all_squash</strong> allows any user on the client to access the file system as <strong id="EN-US_TOPIC_0000001663156945__b2402335171511">nfsnobody</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001663156945__p432mcpsimp"><strong id="EN-US_TOPIC_0000001663156945__b07692021875">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001663156945__table434mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001663156945__row441mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.4.1.1"><p id="EN-US_TOPIC_0000001663156945__p443mcpsimp">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.4.1.2"><p id="EN-US_TOPIC_0000001663156945__p445mcpsimp">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.6.2.4.1.3"><p id="EN-US_TOPIC_0000001663156945__p447mcpsimp">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001663156945__row449mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000001663156945__p451mcpsimp">errCode</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000001663156945__p453mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000001663156945__p455mcpsimp">Error code</p>
|
|
<p id="EN-US_TOPIC_0000001663156945__p456mcpsimp">Minimum length: 8 characters</p>
|
|
<p id="EN-US_TOPIC_0000001663156945__p458mcpsimp">Maximum length: 36 characters</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001663156945__row460mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="EN-US_TOPIC_0000001663156945__p462mcpsimp">errMsg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="EN-US_TOPIC_0000001663156945__p464mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.6.2.4.1.3 "><p id="EN-US_TOPIC_0000001663156945__p466mcpsimp">Error message</p>
|
|
<p id="EN-US_TOPIC_0000001663156945__p467mcpsimp">Minimum length: 2 characters</p>
|
|
<p id="EN-US_TOPIC_0000001663156945__p469mcpsimp">Maximum length: 512 characters</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001663156945__p471mcpsimp"><strong id="EN-US_TOPIC_0000001663156945__b1752414120116">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001663156945__table473mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001663156945__row480mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.8.2.4.1.1"><p id="EN-US_TOPIC_0000001663156945__p482mcpsimp">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.8.2.4.1.2"><p id="EN-US_TOPIC_0000001663156945__p484mcpsimp">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.8.2.4.1.3"><p id="EN-US_TOPIC_0000001663156945__p486mcpsimp">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001663156945__row488mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001663156945__p490mcpsimp">errCode</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001663156945__p492mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001663156945__p494mcpsimp">Error code</p>
|
|
<p id="EN-US_TOPIC_0000001663156945__p495mcpsimp">Minimum length: 8 characters</p>
|
|
<p id="EN-US_TOPIC_0000001663156945__p497mcpsimp">Maximum length: 36 characters</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001663156945__row499mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001663156945__p501mcpsimp">errMsg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001663156945__p503mcpsimp">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001663156945__p505mcpsimp">Error message</p>
|
|
<p id="EN-US_TOPIC_0000001663156945__p506mcpsimp">Minimum length: 2 characters</p>
|
|
<p id="EN-US_TOPIC_0000001663156945__p508mcpsimp">Maximum length: 512 characters</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001663156945__section510mcpsimp"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="EN-US_TOPIC_0000001663156945__screen512mcpsimp">{
|
|
"rules" : [ {
|
|
"ip_cidr" : "192.168.0.0/16",
|
|
"rw_type" : "rw",
|
|
"user_type" : "no_root_squash"
|
|
}, {
|
|
"ip_cidr" : "192.32.0.0/16",
|
|
"rw_type" : "rw",
|
|
"user_type" : "no_root_squash"
|
|
} ]
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001663156945__section513mcpsimp"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="EN-US_TOPIC_0000001663156945__screen1575697450">{
|
|
"rules": [
|
|
{
|
|
"id": "2be0cc3d-cf1e-49d5-bce3-83e91e32ff42",
|
|
"ip_cidr": "*",
|
|
"rw_type": "rw",
|
|
"user_type": "no_root_squash"
|
|
},
|
|
{
|
|
"id": "d56a5130-6744-4a64-866b-9dc259f5a64c",
|
|
"ip_cidr": "192.32.0.0/16",
|
|
"rw_type": "ro",
|
|
"user_type": "no_root_squash"
|
|
}
|
|
],
|
|
"count": 2
|
|
}</pre>
|
|
<p id="EN-US_TOPIC_0000001663156945__p515mcpsimp"><strong id="EN-US_TOPIC_0000001663156945__b20443715131216">Status code: 200</strong></p>
|
|
<p id="EN-US_TOPIC_0000001663156945__p517mcpsimp">Successful creation</p>
|
|
<p id="EN-US_TOPIC_0000001663156945__p518mcpsimp"><strong id="EN-US_TOPIC_0000001663156945__b39571047151312">Status code: 400</strong></p>
|
|
<p id="EN-US_TOPIC_0000001663156945__p520mcpsimp">Error response</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001663156945__screen521mcpsimp">{
|
|
"errCode" : "SFS.TURBO.0001",
|
|
"errMsg" : "Rules not allowed empty"
|
|
}</pre>
|
|
<p id="EN-US_TOPIC_0000001663156945__p522mcpsimp"><strong id="EN-US_TOPIC_0000001663156945__b374257151311">Status code: 500</strong></p>
|
|
<p id="EN-US_TOPIC_0000001663156945__p524mcpsimp">Error response</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001663156945__screen525mcpsimp">{
|
|
"errCode" : "SFS.TURBO.0005",
|
|
"errMsg" : "Internal server error"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001663156945__section526mcpsimp"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001663156945__table528mcpsimp" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001663156945__row533mcpsimp"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="EN-US_TOPIC_0000001663156945__p535mcpsimp">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="EN-US_TOPIC_0000001663156945__p537mcpsimp">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001663156945__row539mcpsimp"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001663156945__p541mcpsimp">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001663156945__p543mcpsimp">Successful creation</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001663156945__row544mcpsimp"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001663156945__p546mcpsimp">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001663156945__p548mcpsimp">Error response</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001663156945__row549mcpsimp"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001663156945__p551mcpsimp">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001663156945__p553mcpsimp">Error response</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000001663116961.html">Permissions Management</a></div>
|
|
</div>
|
|
</div>
|
|
|