文档首页 > > 开发指南> API & SDK 对应关系> Java> EVS

EVS

分享
更新时间: 2019/11/15 GMT+08:00

基于EVS v2 API的SDK接口如下,调用方式请参考示例代码。

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}

链接

基于EVS v2.1 API的SDK接口如下,调用方式请参考示例代码。

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

链接

基于Cinder v2 API的SDK接口如下,调用方式请参考示例代码。

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)

  • GET /v2/{project_id}/volumes/detail?limit={limit_nmuber}
  • GET /v2/{project_id}/volumes/detail?marker={volume_id}

链接

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)

  • GET /v2/{project_id}/os-volume-transfer

    链接

  • GET /v2/{project_id}/os-volume-transfer/detail

    链接

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}

链接

分享:

    相关文档

    相关产品

文档是否有解决您的问题?

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

反馈提交失败,请稍后再试!

*必选

请至少选择或填写一项反馈信息

字符长度不能超过200

提交反馈 取消

如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨

跳转到云社区