Help Center > > Developer Guide> Mapping Between API and SDK> Python> EVS

EVS

Updated at: Oct 09, 2019 GMT+08:00

The SDK interfaces based on the EVS v2 API are as follows. Invocation example: 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}

The SDK interfaces based on the Cinder v2 API are as follows.

Invocation example: 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}

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel