EVS
The SDK interfaces based on the EVS v2 API are as follows. For details about the invoking methods, see the sample codes.
| Interface | Method | API |
|---|---|---|
| VolumeService | String create(CloudVolumes volume) | POST /v2/{project_id}/cloudvolumes |
| String extend(Extend extend,String volumeId) | POST /v2/{project_id}/cloudvolumes/{volume_id}/action | |
| CloudVolumeResponse list() | GET /v2/{project_id}/cloudvolumes/detail | |
| CloudVolumesResponse list(Map<String,Object> filteringParams) | GET /v2/{project_id}/cloudvolumes/detail | |
| VolumeSnapshotService | CloudVolumeSnapshotsResponse list() | GET /v2/{project_id}/cloudsnapshots/detail |
| CloudVolumeSnapshotsResponse list(Map<String,Object> filteringParams) | GET /v2/{project_id}/cloudsnapshots/detail | |
| RollbackResponse rollback(String snapshotId) | POST /v2/{project_id}/cloudsnapshots/{snapshot_id}/rollback | |
| RollbackResponse rollback(String snapshotId, Rollback rollback) | POST /v2/{project_id}/cloudsnapshots/{snapshot_id}/rollback | |
| JobService | Job get(String job_id) | GET /v1/{project_id}/jobs/{job_id} |
The SDK interfaces based on the EVS v2.1 API are as follows. For details about the invoking methods, see the sample codes.
| Interface | Method | API |
|---|---|---|
| VolumeService | AsyncRespEntity create(Volumes volume) | POST /v2.1/{project_id}/cloudvolumes |
| AsyncRespEntity extend(Extend extend,String volumeId) | POST /v2.1/{project_id}/cloudvolumes/{volume_id}/action |
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 |
|---|---|---|
| BlockVolumeService | Volume create(Volume volume) | POST /v2/{project_id}/volumes |
| Volume create(Volume volume, Map<String, Object> schedulerHints) | POST /v2/{project_id}/volumes | |
| Volume update(String volumeId, CinderVolumeUpdate volume) | PUT /v2/{project_id}/volumes/{volume_id} | |
| ActionResponse delete(String volumeId) | DELETE /v2/{project_id}/volumes/{volume_id} | |
| ActionResponse extend(String volumeId, Integer newSize) | POST /v2/{project_id}/volumes/{volume_id}/action | |
| Volume get(String volumeId) | GET /v2/{project_id}/volumes/{volume_id} | |
| List<? extends Volume> list() | GET /v2/{project_id}/volumes/detail | |
| List<? extends Volume> list(Map<String,String> filteringParams) |
| |
| ActionResponse update(String volumeId, String name, String description) | PUT /v2/{project_id}/volumes/{volume_id} | |
| VolumeUploadImage uploadToImage(String volumeId, UploadImageData data) | POST /v2/{project_id}/volumes/{volume_id}/action | |
| ActionResponse readOnlyModeUpdate(String volumeId, boolean readonly) | POST /v2/{project_id}/volumes/{volume_id}/action | |
| List<? extends VolumeType> listVolumeTypes() | GET /v2/{project_id}/types | |
| BlockVolumeSnapshotService | ActionResponse delete(String snapshotId) | DELETE /v2/{project_id}/snapshots/{snapshot_id} |
| VolumeSnapshot create(VolumeSnapshot snapshot) | POST /v2/{project_id}/snapshots | |
| ActionResponse update(String snapshotId, String name, String description) | PUT /v2/{project_id}/snapshots/{snapshot_id} | |
| VolumeSnapshot get(String snapshotId) | GET /v2/{project_id}/snapshots/{snapshot_id} | |
| List<? extends VolumeSnapshot> list() | GET /v2/{project_id}/snapshots | |
| List<? extends VolumeSnapshot> list(Map<String,String> filteringParams) | GET /v2/{project_id}/snapshots?volume_id={volume_id} | |
| CinderZoneService | List<? extends AvailabilityZone> list() | GET /v2/{project_id}/os-availability-zone |
| BlockVolumeTransferService | List<? extends VolumeTransfer> list() | GET /v2/{project_id}/os-volume-transfer/detail |
| List<? extends VolumeTransfer> list(boolean detailed) | ||
| VolumeTransfer get(String transferId) | GET /v2/{project_id}/os-volume-transfer/{transfer_id} | |
| VolumeTransfer create(String volumeId) | POST /v2/{project_id}/os-volume-transfer | |
| VolumeTransfer create(String volumeId, String name) | POST /v2/{project_id}/os-volume-transfer | |
| VolumeTransfer accept(String transferId, String authKey) | POST /v2/{project_id}/os-volume-transfer/{transfer_id}/accept | |
| ActionResponse delete(String transferId) | DELETE /v2/{project_id}/os-volume-transfer/{transfer_id} |
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.