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

EVS

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

基于EVS v2 API的SDK接口如下,调用方式举例:conn.evs.create_volume()

Interface

Method

API

Volume Operations

create_volume(**data)

POST /v2/{project_id}/cloudvolumes

链接

update_volume(volume_id, **data)

PUT /v2/{project_id}/cloudvolumes/{volume_id}

链接

get_volume(volume_id)

GET /v2/{project_id}/cloudvolumes/{volume_id}

链接

resize_volume(self, volume_id, **data)

POST /v2/{project_id}/cloudvolumes/{volume_id}/action

链接

volumes(self, **query)

GET /v2/{project_id}/cloudvolumes/detail

链接

Job Operations

get_job(self, job_id)

GET /v1/{project_id}/jobs/{job_id}

链接

基于EVS v2.1 API的SDK接口如下,调用方式举例:conn.evs.create_volume_ext()

Interface

Method

API

Volume Operations

create_volume_ext(self, **attrs)

POST /v2.1/{project_id}/cloudvolumes

链接

resize_volume_ext(self, volume_id, **data)

POST /v2.1/{project_id}/cloudvolumes/{volume_id}/action

链接

基于Cinder v2 API的SDK接口如下,调用方式举例:conn.block_store.create_volume()

Interface

Method

API

Snapshot Operations

get_snapshot(self, snapshot)

GET /v2/{project_id}/snapshots/{snapshot_id}

链接

snapshots(self, details=True, **query)

GET /v2/{project_id}/snapshots/detail

链接

create_snapshot(self, **attrs)

POST /v2/{project_id}/snapshots

链接

delete_snapshot(self, snapshot, ignore_missing=True)

DELETE /v2/{project_id}/snapshots/{snapshot_id}

链接

Type Operations

get_type(self, type)

GET /v2/{project_id}/types/{volume_type_id}

链接

types(self)

GET /v2/{project_id}/types

链接

Volume Operations

get_volume(self, volume)

GET /v2/{project_id}/volumes/{volume_id}

链接

volumes(self, details=True, **query)

GET /v2/{project_id}/volumes/detail

链接

create_volume(self, **attrs)

POST /v2/{project_id}/volumes

链接

delete_volume(self, volume, ignore_missing=True, cascade=False)

DELETE /v2/{project_id}/volumes/{volume_id}

链接

分享:

    相关文档

    相关产品

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

提交成功!

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

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

*必选

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

字符长度不能超过200

提交反馈 取消

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

跳转到云社区