EVS
The SDK interfaces based on the Cinder v2 API are as follows. For details about the invoking methods, see the sample codes.
| Interface | Method | API |
|---|---|---|
| Volumes | List(client *gophercloud.ServiceClient, opts ListOptsBuilder) | GET /v2/{project_id}/volumes/detail |
| Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) | POST /v2/{project_id}/volumes | |
| Get(client *gophercloud.ServiceClient, id string) | GET /v2/{project_id}/volumes/{volume_id} | |
| Delete(client *gophercloud.ServiceClient, id string) | DELETE /v2/{project_id}/volumes/{volume_id} | |
| Update(client *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder) | PUT /v2/{project_id}/volumes/{volume_id} |
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.