|
pyrax
Python Bindings for the Rackspace Cloud
|
This is the primary class for interacting with Cloud Block Storage. More...
Public Member Functions | |
| def | create |
| Makes sure that the size is passed and is within allowed values. | |
| def | list_types |
| Returns a list of all available volume types. | |
| def | list_snapshots |
| Returns a list of all snapshots. | |
| def | attach_to_instance |
| Attaches the volume to the specified instance at the mountpoint. | |
| def | detach |
| Detaches the volume from whatever device it is attached to. | |
| def | delete_volume |
| Deletes the volume. | |
| def | create_snapshot |
| Creates a snapshot of the volume, with an optional name and description. | |
| def | delete_snapshot |
| Deletes the snapshot. | |
Static Public Attributes | |
| string | name = "Cloud Block Storage" |
This is the primary class for interacting with Cloud Block Storage.
| def attach_to_instance | ( | self, | |
| volume, | |||
| instance, | |||
| mountpoint | |||
| ) |
Attaches the volume to the specified instance at the mountpoint.
| def create | ( | self, | |
name = "", |
|||
size = None, |
|||
volume_type = None, |
|||
description = None, |
|||
metadata = None, |
|||
snapshot_id = None, |
|||
availability_zone = None |
|||
| ) |
Makes sure that the size is passed and is within allowed values.
| def create_snapshot | ( | self, | |
| volume, | |||
name = None, |
|||
description = None, |
|||
force = False |
|||
| ) |
Creates a snapshot of the volume, with an optional name and description.
Normally snapshots will not happen if the volume is attached. To override this default behavior, pass force=True.
| def delete_snapshot | ( | self, | |
| snapshot | |||
| ) |
Deletes the snapshot.
| def delete_volume | ( | self, | |
| volume, | |||
force = False |
|||
| ) |
Deletes the volume.
| def detach | ( | self, | |
| volume | |||
| ) |
Detaches the volume from whatever device it is attached to.
| def list_snapshots | ( | self | ) |
Returns a list of all snapshots.
| def list_types | ( | self | ) |
Returns a list of all available volume types.
string name = "Cloud Block Storage" [static] |
Reimplemented from BaseClient.
1.7.6.1