• CLI

sdk
  1. Help Center
  2. CLI
  3. Developer Guide
  4. Mapping Between API and SDK
  5. Python
  6. EVS

EVS

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/{tenant_id}/snapshots/{snapshot_id}

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

GET /v2/{tenant_id}/snapshots/detail

create_snapshot(self, **attrs)

POST /v2/{tenant_id}/snapshots

delete_snapshot(self, snapshot, ignore_missing=True)

DELETE /v2/{tenant_id}/snapshots/{snapshot_id}

Type Operations

get_type(self, type)

GET /v2/{tenant_id}/types/{volume_type_id}

types(self)

GET /v2/{tenant_id}/types

Volume Operations

get_volume(self, volume)

GET /v2/{tenant_id}/volumes/{volume_id}

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

GET /v2/{tenant_id}/volumes/detail

create_volume(self, **attrs)

POST /v2/{tenant_id}/volumes

delete_volume(self, volume, ignore_missing=True)

DELETE /v2/{tenant_id}/volumes/{volume_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