doc-exports/docs/ecs/api-ref/en-us_topic_0103071514.html
Zaoxu, Li 4edaa4a4cc ECS API 20231016 version
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com>
Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com>
Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
2024-04-29 11:04:13 +00:00

159 lines
13 KiB
HTML

<a name="EN-US_TOPIC_0103071514"></a><a name="EN-US_TOPIC_0103071514"></a>
<h1 class="topictitle1">Disk Management</h1>
<div id="body1521723005471">
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0103071514__table88951955182420" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0103071514__row2670183317019"><th align="left" class="cellrowborder" valign="top" width="14.860991688162795%" id="mcps1.3.1.1.5.1.1"><p id="EN-US_TOPIC_0103071514__p1959712364512">Permission</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="35.59759243336199%" id="mcps1.3.1.1.5.1.2"><p id="EN-US_TOPIC_0103071514__p8402164419019">API</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="27.14244769274864%" id="mcps1.3.1.1.5.1.3"><p id="EN-US_TOPIC_0103071514__p2040214445018">Action</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="22.398968185726563%" id="mcps1.3.1.1.5.1.4"><p id="EN-US_TOPIC_0103071514__p22519318453">Dependencies</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0103071514__row1893621632116"><td class="cellrowborder" valign="top" width="14.860991688162795%" headers="mcps1.3.1.1.5.1.1 "><p id="EN-US_TOPIC_0103071514__p46472315137"><a href="en-us_topic_0022472988.html">Detaching a disk from an ECS</a></p>
</td>
<td class="cellrowborder" valign="top" width="35.59759243336199%" headers="mcps1.3.1.1.5.1.2 "><p id="EN-US_TOPIC_0103071514__p865419331215">DELETE /v1/{project_id}/cloudservers/{server_id}/detachvolume/{volume_id}</p>
</td>
<td class="cellrowborder" valign="top" width="27.14244769274864%" headers="mcps1.3.1.1.5.1.3 "><p id="EN-US_TOPIC_0103071514__p19414139181712">ecs:cloudServers:detachVolume</p>
</td>
<td class="cellrowborder" valign="top" width="22.398968185726563%" headers="mcps1.3.1.1.5.1.4 "><p id="EN-US_TOPIC_0103071514__p1653821612139">-</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0103071514__row15734520162118"><td class="cellrowborder" valign="top" width="14.860991688162795%" headers="mcps1.3.1.1.5.1.1 "><p id="EN-US_TOPIC_0103071514__p9647193101310"><a href="en-us_topic_0022472987.html">Attaching a disk to an ECS</a></p>
</td>
<td class="cellrowborder" valign="top" width="35.59759243336199%" headers="mcps1.3.1.1.5.1.2 "><p id="EN-US_TOPIC_0103071514__p3654133142110">POST /v1/{project_id}/cloudservers/{server_id}/attachvolume</p>
</td>
<td class="cellrowborder" valign="top" width="27.14244769274864%" headers="mcps1.3.1.1.5.1.3 "><p id="EN-US_TOPIC_0103071514__p14731162881716">ecs:cloudServers:attach</p>
</td>
<td class="cellrowborder" valign="top" width="22.398968185726563%" headers="mcps1.3.1.1.5.1.4 "><p id="EN-US_TOPIC_0103071514__p49761529101710">evs:volumes:use</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0103071514__row19372485254"><td class="cellrowborder" valign="top" width="14.860991688162795%" headers="mcps1.3.1.1.5.1.1 "><p id="EN-US_TOPIC_0103071514__p36473361311"><a href="en-us_topic_0122107473.html">Querying details about disks attached to an ECS</a></p>
</td>
<td class="cellrowborder" valign="top" width="35.59759243336199%" headers="mcps1.3.1.1.5.1.2 "><p id="EN-US_TOPIC_0103071514__p173726811250">GET /v1/{project_id}/cloudservers/{server_id}/block_device</p>
</td>
<td class="cellrowborder" valign="top" width="27.14244769274864%" headers="mcps1.3.1.1.5.1.3 "><p id="EN-US_TOPIC_0103071514__p12581340194410">ecs:cloudServers:listServerBlockDevices</p>
</td>
<td class="cellrowborder" valign="top" width="22.398968185726563%" headers="mcps1.3.1.1.5.1.4 "><p id="EN-US_TOPIC_0103071514__p253831614134">-</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0103071514__row18432110194915"><td class="cellrowborder" valign="top" width="14.860991688162795%" headers="mcps1.3.1.1.5.1.1 "><p id="EN-US_TOPIC_0103071514__p206470318138"><a href="en-us_topic_0031167350.html">Attaching a disk to an ECS (native OpenStack API)</a></p>
</td>
<td class="cellrowborder" valign="top" width="35.59759243336199%" headers="mcps1.3.1.1.5.1.2 "><p id="EN-US_TOPIC_0103071514__p14854133274912">POST /v2/{project_id}/servers/{server_id}/os-volume_attachments</p>
<p id="EN-US_TOPIC_0103071514__p14236125619354">POST /v2.1/{project_id}/servers/{server_id}/os-volume_attachments</p>
</td>
<td class="cellrowborder" valign="top" width="27.14244769274864%" headers="mcps1.3.1.1.5.1.3 "><p id="EN-US_TOPIC_0103071514__p1299043519196">ecs:serverVolumeAttachments:create</p>
</td>
<td class="cellrowborder" valign="top" width="22.398968185726563%" headers="mcps1.3.1.1.5.1.4 "><p id="EN-US_TOPIC_0103071514__p18841162455510">ecs:servers:get</p>
<p id="EN-US_TOPIC_0103071514__p1354219511550">ecs:flavors:get</p>
<p id="EN-US_TOPIC_0103071514__p58973374195">ecs:serverVolumes:use</p>
<p id="EN-US_TOPIC_0103071514__p135414379191">evs:volumes:list</p>
<p id="EN-US_TOPIC_0103071514__p1289115385198">evs:volumes:get</p>
<p id="EN-US_TOPIC_0103071514__p18620139101919">evs:volumes:update</p>
<p id="EN-US_TOPIC_0103071514__p10356144013199">evs:volumes:attach</p>
<p id="EN-US_TOPIC_0103071514__p132091041171915">evs:volumes:manage</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0103071514__row74321703496"><td class="cellrowborder" valign="top" width="14.860991688162795%" headers="mcps1.3.1.1.5.1.1 "><p id="EN-US_TOPIC_0103071514__p146473331315"><a href="en-us_topic_0065817707.html">Detaching a disk from an ECS (native OpenStack API)</a></p>
</td>
<td class="cellrowborder" valign="top" width="35.59759243336199%" headers="mcps1.3.1.1.5.1.2 "><p id="EN-US_TOPIC_0103071514__p1785543254911">DELETE /v2/{project_id}/servers/{server_id}/os-volume_attachments/{volume_id}</p>
<p id="EN-US_TOPIC_0103071514__p1297435133610">DELETE /v2.1/{project_id}/servers/{server_id}/os-volume_attachments/{volume_id}</p>
</td>
<td class="cellrowborder" valign="top" width="27.14244769274864%" headers="mcps1.3.1.1.5.1.3 "><p id="EN-US_TOPIC_0103071514__p11938125012193">ecs:serverVolumeAttachments:delete</p>
</td>
<td class="cellrowborder" valign="top" width="22.398968185726563%" headers="mcps1.3.1.1.5.1.4 "><p id="EN-US_TOPIC_0103071514__p13143953151911">ecs:serverVolumes:use</p>
<p id="EN-US_TOPIC_0103071514__p14984953171919">evs:volumes:list</p>
<p id="EN-US_TOPIC_0103071514__p136541654161918">evs:volumes:get</p>
<p id="EN-US_TOPIC_0103071514__p2031445541913">evs:volumes:update</p>
<p id="EN-US_TOPIC_0103071514__p523205641916">evs:volumes:detach</p>
<p id="EN-US_TOPIC_0103071514__p1419516578191">evs:volumes:manage</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0103071514__row74328064918"><td class="cellrowborder" valign="top" width="14.860991688162795%" headers="mcps1.3.1.1.5.1.1 "><p id="EN-US_TOPIC_0103071514__p14647738134"><a href="en-us_topic_0020212671.html">Querying the disks attached to an ECS (native OpenStack API)</a></p>
</td>
<td class="cellrowborder" valign="top" width="35.59759243336199%" headers="mcps1.3.1.1.5.1.2 "><p id="EN-US_TOPIC_0103071514__p68561032144910">GET /v2/{project_id}/servers/{server_id}/os-volume_attachments</p>
<p id="EN-US_TOPIC_0103071514__p260410182367">GET /v2.1/{project_id}/servers/{server_id}/os-volume_attachments</p>
</td>
<td class="cellrowborder" valign="top" width="27.14244769274864%" headers="mcps1.3.1.1.5.1.3 "><p id="EN-US_TOPIC_0103071514__p1268258205">ecs:serverVolumeAttachments:list</p>
</td>
<td class="cellrowborder" valign="top" width="22.398968185726563%" headers="mcps1.3.1.1.5.1.4 "><p id="EN-US_TOPIC_0103071514__p102003618205">ecs:serverVolumes:use</p>
<p id="EN-US_TOPIC_0103071514__p2241137152020">ecs:servers:get</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0103071514__row1434619574918"><td class="cellrowborder" valign="top" width="14.860991688162795%" headers="mcps1.3.1.1.5.1.1 "><p id="EN-US_TOPIC_0103071514__p1364733121315"><a href="en-us_topic_0020212672.html">Querying a disk attached to an ECS (native OpenStack API)</a></p>
</td>
<td class="cellrowborder" valign="top" width="35.59759243336199%" headers="mcps1.3.1.1.5.1.2 "><p id="EN-US_TOPIC_0103071514__p138567323496">GET /v2/{project_id}/servers/{server_id}/os-volume_attachments/{volume_id}</p>
<p id="EN-US_TOPIC_0103071514__p15134624103611">GET /v2.1/{project_id}/servers/{server_id}/os-volume_attachments/{volume_id}</p>
</td>
<td class="cellrowborder" valign="top" width="27.14244769274864%" headers="mcps1.3.1.1.5.1.3 "><p id="EN-US_TOPIC_0103071514__p192649146206">ecs:serverVolumeAttachments:get</p>
</td>
<td class="cellrowborder" valign="top" width="22.398968185726563%" headers="mcps1.3.1.1.5.1.4 "><p id="EN-US_TOPIC_0103071514__p19538181619134">ecs:serverVolumes:use</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0103071514__row1976111120493"><td class="cellrowborder" valign="top" width="14.860991688162795%" headers="mcps1.3.1.1.5.1.1 "><p id="EN-US_TOPIC_0103071514__p1264718321317"><a href="en-us_topic_0065817708.html">Creating a disk (native OpenStack API)</a></p>
</td>
<td class="cellrowborder" valign="top" width="35.59759243336199%" headers="mcps1.3.1.1.5.1.2 "><p id="EN-US_TOPIC_0103071514__p148571432194918">POST /v2/{project_id}/os-volumes</p>
<p id="EN-US_TOPIC_0103071514__p6189165412361">POST /v2.1/{project_id}/os-volumes</p>
</td>
<td class="cellrowborder" valign="top" width="27.14244769274864%" headers="mcps1.3.1.1.5.1.3 "><p id="EN-US_TOPIC_0103071514__p1551641914204">ecs:serverVolumes:use</p>
</td>
<td class="cellrowborder" valign="top" width="22.398968185726563%" headers="mcps1.3.1.1.5.1.4 "><p id="EN-US_TOPIC_0103071514__p115381816191310">evs:volumes:create</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0103071514__row14762113499"><td class="cellrowborder" valign="top" width="14.860991688162795%" headers="mcps1.3.1.1.5.1.1 "><p id="EN-US_TOPIC_0103071514__p764713181313"><a href="en-us_topic_0065817712.html">Deleting a disk (native OpenStack API)</a></p>
</td>
<td class="cellrowborder" valign="top" width="35.59759243336199%" headers="mcps1.3.1.1.5.1.2 "><p id="EN-US_TOPIC_0103071514__p168571532144916">DELETE /v2/{project_id}/os-volumes/{volume_id}</p>
<p id="EN-US_TOPIC_0103071514__p20452165923617">DELETE /v2.1/{project_id}/os-volumes/{volume_id}</p>
</td>
<td class="cellrowborder" valign="top" width="27.14244769274864%" headers="mcps1.3.1.1.5.1.3 "><p id="EN-US_TOPIC_0103071514__p366219489208">ecs:serverVolumes:use</p>
</td>
<td class="cellrowborder" valign="top" width="22.398968185726563%" headers="mcps1.3.1.1.5.1.4 "><p id="EN-US_TOPIC_0103071514__p035864616203">evs:volumes:get</p>
<p id="EN-US_TOPIC_0103071514__p7446747192011">evs:volumes:delete</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0103071514__row97710116497"><td class="cellrowborder" valign="top" width="14.860991688162795%" headers="mcps1.3.1.1.5.1.1 "><p id="EN-US_TOPIC_0103071514__p1364712318132"><a href="en-us_topic_0065817711.html">Querying information about a disk (native OpenStack API)</a></p>
</td>
<td class="cellrowborder" valign="top" width="35.59759243336199%" headers="mcps1.3.1.1.5.1.2 "><p id="EN-US_TOPIC_0103071514__p198589328499">GET /v2/{project_id}/os-volumes/{volume_id}</p>
<p id="EN-US_TOPIC_0103071514__p179594113716">GET /v2.1/{project_id}/os-volumes/{volume_id}</p>
</td>
<td class="cellrowborder" valign="top" width="27.14244769274864%" headers="mcps1.3.1.1.5.1.3 "><p id="EN-US_TOPIC_0103071514__p19632105372017">ecs:serverVolumes:use</p>
</td>
<td class="cellrowborder" valign="top" width="22.398968185726563%" headers="mcps1.3.1.1.5.1.4 "><p id="EN-US_TOPIC_0103071514__p253816169132">evs:volumes:get</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0103071514__row37741114911"><td class="cellrowborder" valign="top" width="14.860991688162795%" headers="mcps1.3.1.1.5.1.1 "><p id="EN-US_TOPIC_0103071514__p664733161310"><a href="en-us_topic_0065817709.html">Querying brief information about disks (native OpenStack API)</a></p>
</td>
<td class="cellrowborder" valign="top" width="35.59759243336199%" headers="mcps1.3.1.1.5.1.2 "><p id="EN-US_TOPIC_0103071514__p947117562504">GET /v2/{project_id}/os-volumes</p>
<p id="EN-US_TOPIC_0103071514__p984217813370">GET /v2.1/{project_id}/os-volumes</p>
</td>
<td class="cellrowborder" valign="top" width="27.14244769274864%" headers="mcps1.3.1.1.5.1.3 "><p id="EN-US_TOPIC_0103071514__p1830611162111">ecs:serverVolumes:use</p>
</td>
<td class="cellrowborder" valign="top" width="22.398968185726563%" headers="mcps1.3.1.1.5.1.4 "><p id="EN-US_TOPIC_0103071514__p10421359192014">evs:volumes:get</p>
<p id="EN-US_TOPIC_0103071514__p378714590208">evs:volumes:list</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0103071514__row43471056491"><td class="cellrowborder" valign="top" width="14.860991688162795%" headers="mcps1.3.1.1.5.1.1 "><p id="EN-US_TOPIC_0103071514__p13647123121319"><a href="en-us_topic_0065817710.html">Querying detailed information about disks (native OpenStack API)</a></p>
</td>
<td class="cellrowborder" valign="top" width="35.59759243336199%" headers="mcps1.3.1.1.5.1.2 "><p id="EN-US_TOPIC_0103071514__p164711856145011">GET /v2/{project_id}/os-volumes/detail</p>
<p id="EN-US_TOPIC_0103071514__p1125381323710">GET /v2.1/{project_id}/os-volumes/detail</p>
</td>
<td class="cellrowborder" valign="top" width="27.14244769274864%" headers="mcps1.3.1.1.5.1.3 "><p id="EN-US_TOPIC_0103071514__p6367889213">ecs:serverVolumes:use</p>
</td>
<td class="cellrowborder" valign="top" width="22.398968185726563%" headers="mcps1.3.1.1.5.1.4 "><p id="EN-US_TOPIC_0103071514__p112015612116">evs:volumes:get</p>
<p id="EN-US_TOPIC_0103071514__p6162207172119">evs:volumes:list</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="EN-US_TOPIC_0103071514__p8060118"></p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0103071509.html">Permissions and Supported Actions</a></div>
</div>
</div>