Disk Action¶
This topic describes only the authorization information of EVS v2 APIs. For the v3 APIs that provide the same functions as their v2 APIs, their authorization information is the same as that of the v2 APIs.
For example, the v2 API for creating disks is POST /v2/{project_id}/cloudvolumes, and the v3 API for creating disks is POST /v3/{project_id}/cloudvolumes. The authorization information of both APIs is the same.
In the following tables, Y indicates that the item is supported, and x indicates that the item is not supported.
Permission | API | Action | IAM Project (Project) |
---|---|---|---|
Expand the capacity of an EVS disk (OpenStack Cinder API). | POST /v2/{project_id}/volumes/{volume_id}/action action="os-extend" | evs:volumes:extend evs:volumes:get | Y |
Export the EVS disk data as an image (OpenStack Cinder API). | POST /v2/{project_id}/volumes/{volume_id}/action action="os-volume_upload_image" | evs:volumes:uploadImage | Y |
Attach an EVS disk (OpenStack Cinder API). | POST /v2/{project_id}/volumes/{volume_id}/action action="os-attach" | evs:volumes:attach evs:volumes:get | Y |
Detach an EVS disk (OpenStack Cinder API). | POST /v2/{project_id}/volumes/{volume_id}/action action="os-detach" | evs:volumes:detach evs:volumes:get | Y |
Reserve an EVS disk (OpenStack Cinder API). | POST /v2/{project_id}/volumes/{volume_id}/action action="os-reserve" | evs:volumes:attach | Y |
Cancel reservation of an EVS disk (OpenStack Cinder API). | POST /v2/{project_id}/volumes/{volume_id}/action action="os-unreserve" | evs:volumes:attach | Y |
Set the bootable flag for an EVS disk (OpenStack Cinder API). | POST /v2/{project_id}/volumes/{volume_id}/action action="os-set_bootable" | evs:volumes:update | Y |
Set the read-only attribute for an EVS disk (OpenStack Cinder API). | POST /v2/{project_id}/volumes/{volume_id}/action action="os-update_readonly_flag" | evs:volumes:update | Y |