otcextensions.sdk.cbr.v3.restore

The CBR Restore Class

The Restore class inherits from Resource.

class otcextensions.sdk.cbr.v3.restore.Restore(_synchronized=False, connection=None, **attrs)

CBR Backup Resource

The base resource

Parameters:
  • _synchronized (bool) – This is not intended to be used directly. See new() and existing().

  • connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of self._connection in Resource code should protect itself with a check for None.

resource_key: ty.Optional[str] = 'restore'

Singular form of key for resource.

resources_key: ty.Optional[str] = ''

Plural form of key for resource.

base_path: str = '/backups/%(backup_id)s/restore'

The base part of the URI for this resource.

allow_create = True

Allow create operation for this resource.

allow_list = False

Allow list operation for this resource.

allow_fetch = False

Allow get operation for this resource.

allow_delete = False

Allow delete operation for this resource.

allow_commit = False

Allow update operation for this resource.

backup_id

Properties URI backup reference

mappings

Restores mapping relationship. Mandatory for VM restoreation and optional for disk restoration

power_on

Whether the server is powered on after restoration. Default: True

resource_id

ID of the resource to be restored

server_id

ID of the target VM to be restored. Mandatory for VM restoration.

volume_id

ID of the target disk to be restored This parameter is mandatory for disk restoration

class otcextensions.sdk.cbr.v3.restore.Mapping(_synchronized=False, connection=None, **attrs)

The base resource

Parameters:
  • _synchronized (bool) – This is not intended to be used directly. See new() and existing().

  • connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of self._connection in Resource code should protect itself with a check for None.

backup_id

Properties Disk backup ID

volume_id

ID of the to which data is restored