The cinder.backup.api Module

Handles all requests relating to the volume backups service.

class API(db_driver=None)

Bases: cinder.db.base.Base

API for interacting with the volume backup manager.

create(context, name, description, volume_id, container, availability_zone=None)

Make the RPC call to create a volume backup.

delete(context, backup_id)

Make the RPC call to delete a volume backup.

export_record(context, backup_id)

Make the RPC call to export a volume backup.

Call backup manager to execute backup export.

Parameters:
  • context – running context
  • backup_id – backup id to export
Returns:

dictionary – a description of how to import the backup

Returns:

contains ‘backup_url’ and ‘backup_service’

Raises:

InvalidBackup

get(context, backup_id)
get_all(context, search_opts=None)
import_record(context, backup_service, backup_url)

Make the RPC call to import a volume backup.

Parameters:
  • context – running context
  • backup_service – backup service name
  • backup_url – backup description to be used by the backup driver
Raises:

InvalidBackup

Raises:

ServiceNotFound

restore(context, backup_id, volume_id=None)

Make the RPC call to restore a volume backup.

check_policy(context, action)

Previous topic

The cinder.api.xmlutil Module

Next topic

The cinder.backup.driver Module

This Page