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>
191 lines
16 KiB
HTML
191 lines
16 KiB
HTML
<a name="sfs_02_0035"></a><a name="sfs_02_0035"></a>
|
|
|
|
<h1 class="topictitle1">Shrinking a Shared File System</h1>
|
|
<div id="body8662426"><div class="section" id="sfs_02_0035__s33bdca688810484fbd276da8f2b74e1f"><h4 class="sectiontitle">Function</h4><p id="sfs_02_0035__ae80648132a0e4660a4f0fe9bc8e4cef3">This API is used to shrink the capacity of a shared file system.</p>
|
|
<div class="note" id="sfs_02_0035__n4a412be45f5448ba86f8572bac51ebaf"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="sfs_02_0035__en-us_topic_0076901183_p3563913211">This API is an asynchronous API. If the returned status code is <strong id="sfs_02_0035__b10930359143111">202</strong>, the API request is successfully delivered and received. Later, you can refer to <a href="sfs_02_0024.html">Querying Details About a Shared File System</a> to identify whether the shared file system is shrunk successfully.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="sfs_02_0035__s296c37d90ca2445280a080298971565a"><h4 class="sectiontitle">URI</h4><ul id="sfs_02_0035__en-us_topic_0076901183_ul51982593"><li id="sfs_02_0035__en-us_topic_0076901183_li65190153">POST /v2/{project_id}/shares/{share_id}/action</li><li id="sfs_02_0035__en-us_topic_0076901183_li49840468">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0035__en-us_topic_0076901183_table45911036" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0035__en-us_topic_0076901183_row36188385"><th align="left" class="cellrowborder" valign="top" width="14.799999999999999%" id="mcps1.3.2.2.2.1.1.5.1.1"><p id="sfs_02_0035__p17124101410431">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.73%" id="mcps1.3.2.2.2.1.1.5.1.2"><p id="sfs_02_0035__p1612415146430">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.88%" id="mcps1.3.2.2.2.1.1.5.1.3"><p id="sfs_02_0035__p312416148432">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="52.59%" id="mcps1.3.2.2.2.1.1.5.1.4"><p id="sfs_02_0035__p3124181464318">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_02_0035__en-us_topic_0076901183_row33273344"><td class="cellrowborder" valign="top" width="14.799999999999999%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="sfs_02_0035__en-us_topic_0076901183_p642732921719">share_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.73%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="sfs_02_0035__a9ec20f066b3544f58d94c3e9748815a6">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.88%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="sfs_02_0035__a5f88253ef9744bfcbf324e9e4c9ffa30">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.59%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="sfs_02_0035__a1311aca9574a46989c203ecbc3aadd10">Specifies the ID of the shared file system.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0035__en-us_topic_0076901183_row60643168"><td class="cellrowborder" valign="top" width="14.799999999999999%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="sfs_02_0035__en-us_topic_0076901183_p502797541719">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.73%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="sfs_02_0035__aab705787a2274508a09104ba59cb5901">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.88%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="sfs_02_0035__ac30571b6991542e5934d578a18801382">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.59%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="sfs_02_0035__a06f18709bc764f818dedfef3939d8c11">Specifies the project ID of the operator.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sfs_02_0035__sda74a7c5f3a04e60afb288b1d8944df3"><h4 class="sectiontitle">Request</h4><ul id="sfs_02_0035__en-us_topic_0076901183_ul62103099"><li id="sfs_02_0035__en-us_topic_0076901183_li22056983">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0035__en-us_topic_0076901183_table64295127" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0035__en-us_topic_0076901183_row64026895"><th align="left" class="cellrowborder" valign="top" width="14.71%" id="mcps1.3.3.2.1.1.1.5.1.1"><p id="sfs_02_0035__p1939171172517">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.13%" id="mcps1.3.3.2.1.1.1.5.1.2"><p id="sfs_02_0035__p10391181122515">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.73%" id="mcps1.3.3.2.1.1.1.5.1.3"><p id="sfs_02_0035__p739151172513">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="52.43%" id="mcps1.3.3.2.1.1.1.5.1.4"><p id="sfs_02_0035__p9391121117255">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_02_0035__en-us_topic_0076901183_row39641102"><td class="cellrowborder" valign="top" width="14.71%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="sfs_02_0035__en-us_topic_0076901183_p56812682">os-shrink</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.13%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="sfs_02_0035__a306f65b61c814e3cad969c311ae42bc1">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.73%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="sfs_02_0035__a15e2f47dfa30434ab4553c8c6916b4b7">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.43%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="sfs_02_0035__en-us_topic_0076901183_p44136375">Specifies the <strong id="sfs_02_0035__a0dc9ad946c254e56beae3a1006a25749">os-shrink</strong> object.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li class="litext" id="sfs_02_0035__li143502014289">Description of field <strong id="sfs_02_0035__a0ff9b372b17a476e8e26bc54f6f56558">os-shrink</strong>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0035__en-us_topic_0076901183_table18276642" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0035__en-us_topic_0076901183_row4957353"><th align="left" class="cellrowborder" valign="top" width="14.23%" id="mcps1.3.3.2.2.2.1.5.1.1"><p id="sfs_02_0035__p1996851472518">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.669999999999998%" id="mcps1.3.3.2.2.2.1.5.1.2"><p id="sfs_02_0035__p496871418257">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.55%" id="mcps1.3.3.2.2.2.1.5.1.3"><p id="sfs_02_0035__p12968714102512">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="52.55%" id="mcps1.3.3.2.2.2.1.5.1.4"><p id="sfs_02_0035__p1296819149257">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_02_0035__en-us_topic_0076901183_row8849323"><td class="cellrowborder" valign="top" width="14.23%" headers="mcps1.3.3.2.2.2.1.5.1.1 "><p id="sfs_02_0035__a004f5fed487d42468a2d8a0168fb29cb">new_size</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.669999999999998%" headers="mcps1.3.3.2.2.2.1.5.1.2 "><p id="sfs_02_0035__a56d7fffc1ee64c20a0da617bcc9b01e7">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.55%" headers="mcps1.3.3.2.2.2.1.5.1.3 "><p id="sfs_02_0035__a775819df804f4f70b6e19a2168d6bb29">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.55%" headers="mcps1.3.3.2.2.2.1.5.1.4 "><p id="sfs_02_0035__a7446186d1e584e739f3756fe4839ce93">Specifies the new capacity (GB) of the shared file system.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="sfs_02_0035__en-us_topic_0076901183_ul27711559"><li id="sfs_02_0035__en-us_topic_0076901183_li48077445">Example request<pre class="screen" id="sfs_02_0035__sac0c010b0819470dbf835bb6978f07b7">{
|
|
"os-shrink": {
|
|
"new_size": 1
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sfs_02_0035__sc7abb610536242c4b1c4b3c9bc3a698b"><h4 class="sectiontitle">Response</h4><ul id="sfs_02_0035__en-us_topic_0076901183_ul17630956"><li id="sfs_02_0035__en-us_topic_0076901183_li24460881">Parameter description<p id="sfs_02_0035__ac8e994a8649342a0955694a3b7cecbc9"><a name="sfs_02_0035__en-us_topic_0076901183_li24460881"></a><a name="en-us_topic_0076901183_li24460881"></a>None</p>
|
|
</li></ul>
|
|
<ul id="sfs_02_0035__en-us_topic_0076901183_ul65896052"><li id="sfs_02_0035__en-us_topic_0076901183_li56193562">Example response<p id="sfs_02_0035__a640f1a2c581149f38f32d0fd499024e7"><a name="sfs_02_0035__en-us_topic_0076901183_li56193562"></a><a name="en-us_topic_0076901183_li56193562"></a>None</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="sfs_02_0035__sf0c6d6a79e744278acab17a058623890"><h4 class="sectiontitle">Status Codes</h4><ul id="sfs_02_0035__en-us_topic_0076901183_ul28699807"><li id="sfs_02_0035__en-us_topic_0076901183_li56971675">Normal<p id="sfs_02_0035__en-us_topic_0076901183_p42983031"><a name="sfs_02_0035__en-us_topic_0076901183_li56971675"></a><a name="en-us_topic_0076901183_li56971675"></a>202</p>
|
|
</li><li id="sfs_02_0035__en-us_topic_0076901183_li51302964">Abnormal
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="sfs_02_0035__en-us_topic_0076901183_table59073500" frame="border" border="1" rules="all"><thead align="left"><tr id="sfs_02_0035__en-us_topic_0076901183_row46587076"><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_0035__en-us_topic_0076901183_p15456783">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_0035__en-us_topic_0076901183_p44039915">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="sfs_02_0035__en-us_topic_0076901183_row10463359"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0035__en-us_topic_0076901183_p42225780">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_0035__en-us_topic_0076901183_p64845042">The server failed to process the request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0035__en-us_topic_0076901183_row46734467"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0035__en-us_topic_0076901183_p27395488">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_0035__en-us_topic_0076901183_p4442074">You must enter a username and the password to access the requested page.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0035__en-us_topic_0076901183_row39978669"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0035__en-us_topic_0076901183_p17046748">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_0035__en-us_topic_0076901183_p38609372">Access to the requested page is forbidden.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0035__en-us_topic_0076901183_row11940034"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0035__en-us_topic_0076901183_p27618686">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_0035__en-us_topic_0076901183_p22521054">The requested page was not found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0035__en-us_topic_0076901183_row1362895"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0035__en-us_topic_0076901183_p43285665">405 Method Not Allowed</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_0035__en-us_topic_0076901183_p16477963">You are not allowed to use the method specified in the request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0035__en-us_topic_0076901183_row14083945"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0035__en-us_topic_0076901183_p67057771">406 Not Acceptable</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_0035__en-us_topic_0076901183_p62970394">The response generated by the server could not be accepted by the client.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0035__en-us_topic_0076901183_row29862637"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0035__en-us_topic_0076901183_p2954570">407 Proxy Authentication Required</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_0035__en-us_topic_0076901183_p37993607">You must use the proxy server for authentication. Then the request can be processed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0035__en-us_topic_0076901183_row6398145"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0035__en-us_topic_0076901183_p48487730">408 Request Timeout</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_0035__en-us_topic_0076901183_p35192023">The request timed out.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0035__en-us_topic_0076901183_row48292752"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0035__en-us_topic_0076901183_p19398879">409 Conflict</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_0035__en-us_topic_0076901183_p27805399">The request could not be processed due to a conflict.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0035__en-us_topic_0076901183_row48922001"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0035__en-us_topic_0076901183_p3259160">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_0035__en-us_topic_0076901183_p62665436">Failed to complete the request because of an internal service error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0035__en-us_topic_0076901183_row27118016"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0035__en-us_topic_0076901183_p49075689">501 Not Implemented</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_0035__en-us_topic_0076901183_p15707907">Failed to complete the request because the server does not support the requested function.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0035__en-us_topic_0076901183_row7153442"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0035__en-us_topic_0076901183_p42557928">502 Bad Gateway</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_0035__en-us_topic_0076901183_p24640114">Failed to complete the request because the request is invalid.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0035__en-us_topic_0076901183_row20434436"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0035__en-us_topic_0076901183_p44576624">503 Service Unavailable</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_0035__en-us_topic_0076901183_p53936788">Failed to complete the request because the service is unavailable.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="sfs_02_0035__en-us_topic_0076901183_row15669051"><td class="cellrowborder" valign="top" width="43.43%" headers="mcps1.3.5.2.2.1.1.3.1.1 "><p id="sfs_02_0035__en-us_topic_0076901183_p61233639">504 Gateway Timeout</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_0035__en-us_topic_0076901183_p60977760">A gateway timeout error occurred.</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_0033.html">Expansion and Shrinking</a></div>
|
|
</div>
|
|
</div>
|
|
|