
# CLI命令参考
#### 云硬盘
| API名称         | 命令                                     | 描述                       | 操作                                                                                                   |
|:---|:---|:---|:---|
| 创建云硬盘         | hcloud EVS CreateVolume                | 创建按需或包周期云硬盘。             | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=CreateVolume)                |
| 扩容云硬盘         | hcloud EVS ResizeVolume                | 对按需或者包周期云硬盘进行扩容。         | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=ResizeVolume)                |
| 查询单个云硬盘详情     | hcloud EVS ShowVolume                  | 查询单个云硬盘的详细信息。支持企业项目授权功能。 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=ShowVolume)                  |
| 更新云硬盘         | hcloud EVS UpdateVolume                | 更新一个云硬盘的名称和描述。           | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=UpdateVolume)                |
| 删除云硬盘         | hcloud EVS DeleteVolume                | 删除一个云硬盘。                 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=DeleteVolume)                |
| 查询所有云硬盘详情     | hcloud EVS ListVolumes                 | 查询所有云硬盘的详细信息。            | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=ListVolumes)                 |
| 查询云硬盘类型列表     | hcloud EVS CinderListVolumeTypes       | 查询云硬盘类型列表。               | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=CinderListVolumeTypes)       |
| 查询所有的可用分区信息   | hcloud EVS CinderListAvailabilityZones | 查询所有的可用分区信息。             | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=CinderListAvailabilityZones) |
| 查询租户的详细配额     | hcloud EVS CinderListQuotas            | 查询租户的详细配额。               | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=CinderListQuotas)            |
| 修改云硬盘QoS      | hcloud EVS ModifyVolumeQoS             | 调整云硬盘的iops或者吞吐量。         | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=ModifyVolumeQoS)             |
| 退订包周期计费模式的云硬盘 | hcloud EVS UnsubscribePostpaidVolume   | 退订包周期计费模式的云硬盘。           | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=UnsubscribePostpaidVolume)   |
| 磁盘类型变更        | hcloud EVS RetypeVolume                | 对按需或者包周期云硬盘进行磁盘类型变更。     | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=RetypeVolume)                |
| 批量扩容云硬盘       | hcloud EVS BatchResizeVolumes          | 对按需或者包周期云硬盘进行批量扩容。       | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=BatchResizeVolumes)          |
   
#### 云硬盘快照
| API名称       | 命令                          | 描述                      | 操作                                                                                        |
|:---|:---|:---|:---|
| 创建云硬盘快照     | hcloud EVS CreateSnapshot   | 创建云硬盘快照。                | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=CreateSnapshot)   |
| 查询单个云硬盘快照详情 | hcloud EVS ShowSnapshot     | 查询单个云硬盘快照信息。支持企业项目授权功能。 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=ShowSnapshot)     |
| 更新云硬盘快照     | hcloud EVS UpdateSnapshot   | 更新云硬盘快照。支持企业项目授权功能。     | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=UpdateSnapshot)   |
| 删除云硬盘快照     | hcloud EVS DeleteSnapshot   | 删除云硬盘快照。                | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=DeleteSnapshot)   |
| 查询云硬盘快照详情列表 | hcloud EVS ListSnapshots    | 查询云硬盘快照详细列表信息。          | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=ListSnapshots)    |
| 回滚快照到云硬盘    | hcloud EVS RollbackSnapshot | 将快照数据回滚到云硬盘。支持企业项目授权功能。 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=RollbackSnapshot) |
   
#### 云硬盘标签
| API名称           | 命令                               | 描述                   | 操作                                                                                             |
|:---|:---|:---|:---|
| 为指定云硬盘批量添加标签    | hcloud EVS BatchCreateVolumeTags | 为指定云硬盘批量添加标签。        | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=BatchCreateVolumeTags) |
| 为指定云硬盘批量删除标签    | hcloud EVS BatchDeleteVolumeTags | 为指定云硬盘批量删除标签。        | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=BatchDeleteVolumeTags) |
| 获取云硬盘资源的所有标签    | hcloud EVS ListVolumeTags        | 获取某个租户的所有云硬盘资源的标签信息。 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=ListVolumeTags)        |
| 查询云硬盘标签         | hcloud EVS ShowVolumeTags        | 查询指定云硬盘的标签信息。        | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=ShowVolumeTags)        |
| 通过标签查询云硬盘资源实例详情 | hcloud EVS ListVolumesByTags     | 通过标签查询云硬盘资源实例详情。     | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=ListVolumesByTags)     |
   
#### 云硬盘过户
| API名称         | 命令                                    | 描述                                       | 操作                                                                                                  |
|:---|:---|:---|:---|
| 查询单个云硬盘过户记录详情 | hcloud EVS CinderShowVolumeTransfer   | 查询单个云硬盘的过户记录详情，比如过户记录创建时间、ID以及名称等信息。     | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=CinderShowVolumeTransfer)   |
| 删除云硬盘过户       | hcloud EVS CinderDeleteVolumeTransfer | 当云硬盘过户未被接受时，您可以删除云硬盘过户记录，接受后则无法执行删除操作。   | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=CinderDeleteVolumeTransfer) |
| 查询云硬盘过户记录列表概要 | hcloud EVS CinderListVolumeTransfers  | 查询当前租户下所有云硬盘的过户记录列表。                     | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=CinderListVolumeTransfers)  |
| 创建云硬盘过户       | hcloud EVS CinderCreateVolumeTransfer | 指定云硬盘来创建云硬盘过户记录，创建成功后，会返回过户记录ID以及身份认证密钥。 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=CinderCreateVolumeTransfer) |
| 接受云硬盘过户       | hcloud EVS CinderAcceptVolumeTransfer | 通过云硬盘过户记录ID以及身份认证密钥来接受云硬盘过户。             | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=CinderAcceptVolumeTransfer) |
   
#### API版本信息查询
| API名称        | 命令                      | 描述           | 操作                                                                                    |
|:---|:---|:---|:---|
| 查询API接口的版本信息 | hcloud EVS ShowVersion  | 查询接口的指定版本信息。 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=ShowVersion)  |
| 查询接口版本信息列表   | hcloud EVS ListVersions | 查询接口版本信息列表。  | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=ListVersions) |
   
#### 其他
| API名称    | 命令                 | 描述          | 操作                                                                               |
|:---|:---|:---|:---|
| 查询job的状态 | hcloud EVS ShowJob | 查询Job的执行状态。 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=ShowJob) |
   
#### 回收站管理
| API名称         | 命令                               | 描述                | 操作                                                                                             |
|:---|:---|:---|:---|
| 查询回收站中所有云硬盘详情 | hcloud EVS ListVolumesInRecycle  | 查询回收站中所有云硬盘的详细信息。 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=ListVolumesInRecycle)  |
| 查询回收站中单个云硬盘详情 | hcloud EVS ShowVolumeInRecycle   | 查询回收站中单个云硬盘的详细信息。 | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=ShowVolumeInRecycle)   |
| 删除回收站中单个云硬盘   | hcloud EVS DeleteVolumeInRecycle | 删除回收站中单个云硬盘。      | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=DeleteVolumeInRecycle) |
| 还原回收站中单个云硬盘   | hcloud EVS RevertVolumeInRecycle | 还原回收站中单个云硬盘。      | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=RevertVolumeInRecycle) |
| 查询回收站策略       | hcloud EVS ShowRecyclePolicy     | 查询回收站策略。          | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=ShowRecyclePolicy)     |
| 更新回收站策略       | hcloud EVS UpdateRecyclePolicy   | 更新回收站策略。          | [去调试](https://console.huaweicloud.com/apiexplorer/#/openapi/EVS/cli?api=UpdateRecyclePolicy)   |
   
