云硬盘
本章节仅列出了云硬盘v2接口的授权信息。对于v3接口,如果提供的功能与v2接口一样,则授权信息也一致。
例如:创建云硬盘时,v2接口为POST /v2/{project_id}/cloudvolumes,对应的v3接口为POST /v3/{project_id}/cloudvolumes,两个接口支持的授权信息一致。
授权项列表中,“√”表示支持,“×”表示暂不支持。
权限 |
对应API接口 |
授权项(Action) |
IAM项目 (Project) |
企业项目 (Enterprise Project) |
---|---|---|---|---|
创建云硬盘 |
POST /v2/{project_id}/cloudvolumes |
evs:volumes:create |
√ |
√ |
创建云硬盘(Cinder) |
POST /v2/{project_id}/volumes |
√ |
× |
|
创建云硬盘(按需或包周期) |
POST /v2.1/{project_id}/cloudvolumes |
evs:volumes:create evs:volumes:get |
√ |
√ |
扩容云硬盘 |
POST /v2/{project_id}/cloudvolumes/{volume_id}/action |
evs:volumes:extend |
√ |
√ |
扩容云硬盘(按需或包周期) |
POST /v2.1/{project_id}/cloudvolumes/{volume_id}/action |
evs:volumes:extend |
√ |
√ |
查询云硬盘列表 |
GET /v2/{project_id}/cloudvolumes |
evs:volumes:list |
√ |
× |
查询云硬盘列表(Cinder) |
GET /v2/{project_id}/volumes |
evs:volumes:list |
√ |
× |
查询所有云硬盘详情 |
GET /v2/{project_id}/cloudvolumes/detail |
evs:volumes:list |
√ |
√ |
查询所有云硬盘详情 |
GET /v2/{project_id}/os-vendor-volumes/detail |
evs:volumes:list |
√ |
× |
查询所有云硬盘详情(Cinder) |
GET /v2/{project_id}/volumes/detail |
evs:volumes:list |
√ |
× |
查询单个云硬盘详情 |
GET /v2/{project_id}/os-vendor-volumes/{volume_id} |
evs:volumes:get |
√ |
× |
查询单个云硬盘详情(Cinder ) |
GET /v2/{project_id}/volumes/{volume_id} |
evs:volumes:get |
√ |
× |
查询单个云硬盘详情 |
GET /v2/{project_id}/cloudvolumes/{volume_id} |
evs:volumes:get |
√ |
√ |
删除云硬盘 |
DELETE /v2/{project_id}/cloudvolumes/{volume_id} |
evs:volumes:delete |
√ |
√ |
删除云硬盘(Cinder ) |
DELETE /v2/{project_id}/volumes/{volume_id} |
evs:volumes:delete evs:volumes:get |
√ |
× |
更新云硬盘 |
PUT /v2/{project_id}/cloudvolumes/{volume_id} |
evs:volumes:update |
√ |
√ |
更新云硬盘(Cinder ) |
PUT /v2/{project_id}/volumes/{volume_id} |
evs:volumes:update evs:volumes:get |
√ |
× |
更新云硬盘的单个元数据(Cinder) |
PUT /v2/{project_id}/volumes/{volume_id}/metadata/{key} |
evs:volumes:update evs:volumes:get |
√ |
× |
更新云硬盘的元数据(Cinder) |
PUT /v2/{project_id}/volumes/{volume_id}/metadata |
evs:volumes:update evs:volumes:get |
√ |
× |
查询云硬盘的单个元数据(Cinder) |
GET /v2/{project_id}/volumes/{volume_id}/metadata/{key} |
evs:volumes:get |
√ |
× |
删除云硬盘的单个元数据(Cinder) |
DELETE /v2/{project_id}/volumes/{volume_id}/metadata/{key} |
evs:volumes:delete evs:volumes:get |
√ |
× |
查询云硬盘的元数据(Cinder) |
GET /v2/{project_id}/volumes/{volume_id}/metadata |
evs:volumes:get |
√ |
× |
添加云硬盘的元数据(Cinder) |
POST /v2/{project_id}/volumes/{volume_id}/metadata |
evs:volumes:update evs:volumes:get |
√ |
× |
查询云硬盘类型列表(Cinder) |
GET /v2/{project_id}/types |
evs:types:get |
√ |
× |
查询单个云硬盘类型的详细信息(Cinder) |
GET /v2/{project_id}/types/{type_id} |
evs:types:get |
√ |
× |
查询租户的详细配额(Cinder) |
GET /v2/{project_id}/os-quota-sets/{project_id} |
evs:quotas:get |
√ |
× |
查询扩展接口(Cinder) |
GET /v2/{project_id}/extensions |
无 |
√ |
× |
查询所有的可用分区信息(Cinder) |
GET /v2/{project_id}/os-availability-zone |
无 |
√ |
× |
云硬盘按需转包周期 |
POST /v2/{project_id}/cloudvolumes/change-charge-mode |
evs:volumes:changeChargeMode |
√ |
√ |
查询回收站策略 |
GET /v3/{project_id}/recycle-bin-volumes/policy |
evs:recycle_policy:get |
√ |
√ |
从回收站还原云硬盘 |
POST /v3/{project_id}/recycle-bin-volumes/{volume_id}/revert |
evs:volumes:revert |
√ |
√ |
变更云硬盘类型 |
POST /v2/{project_id}/volumes/{volume_id}/retype |
evs:volumes:retype |
√ |
√ |
更新回收站策略 |
PUT /v3/{project_id}/recycle-bin-volumes/policy |
evs:recycle_policy:update |
√ |
√ |
授权项(Action)为无,表示无需授权。