The cinder.backup.rpcapi Module

Client side of the volume backup RPC API.

class BackupAPI

Bases: cinder.rpc.RPCAPI

Client side of the volume rpc API.

API version history:

1.0 - Initial version.
1.1 - Changed methods to accept backup objects instead of IDs.
1.2 - A version that got in by mistake (without breaking anything).
1.3 - Dummy version bump to mark start of having cinder-backup service
      decoupled from cinder-volume.

... Mitaka supports messaging 1.3. Any changes to existing methods in
1.x after this point should be done so that they can handle version cap
set to 1.3.

2.0 - Remove 1.x compatibility
BINARY = 'cinder-backup'
RPC_API_VERSION = '2.0'
RPC_DEFAULT_VERSION = '2.0'
TOPIC = 'cinder-backup'
check_support_to_force_delete(ctxt, host)
create_backup(ctxt, backup)
delete_backup(ctxt, backup)
export_record(ctxt, backup)
import_record(ctxt, host, backup, backup_service, backup_url, backup_hosts)
reset_status(ctxt, backup, status)
restore_backup(ctxt, volume_host, backup, volume_id)