EVS
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 EVS v2.1 API are as follows.
Invocation example: 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 |
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 this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.