pyrax
Python Bindings for the Rackspace Cloud
|
This class manages communication with Cloud Database instances. More...
Public Member Functions | |
def | get |
This additional code is necessary to properly return the 'volume' attribute of the instance as a CloudDatabaseVolume object instead of a raw dict. | |
def | create_backup |
Creates a backup of the specified instance, giving it the specified name along with an optional description. | |
def | restore_backup |
Restores a backup to a new database instance. | |
def | list_backups |
Returns a list of all backups by default, or just for a particular instance. |
This class manages communication with Cloud Database instances.
def create_backup | ( | self, | |
instance, | |||
name, | |||
description = None |
|||
) |
Creates a backup of the specified instance, giving it the specified name along with an optional description.
def get | ( | self, | |
item | |||
) |
This additional code is necessary to properly return the 'volume' attribute of the instance as a CloudDatabaseVolume object instead of a raw dict.
Reimplemented from BaseManager.
def list_backups | ( | self, | |
instance = None |
|||
) |
Returns a list of all backups by default, or just for a particular instance.
def restore_backup | ( | self, | |
backup, | |||
name, | |||
flavor, | |||
volume | |||
) |
Restores a backup to a new database instance.
You must supply a backup (either the ID or a CloudDatabaseBackup object), a name for the new instance, as well as a flavor and volume size (in GB) for the instance.