otcextensions.sdk.sdrs.v1.replication_pair.ReplicationPair¶
The SDRS Replication Pair Class¶
The ReplicationPair
class inherits from
Resource
.
-
class
otcextensions.sdk.sdrs.v1.replication_pair.
ReplicationPair
(_synchronized=False, connection=None, **attrs)¶ SDRS Replication pair Resource
The base resource
- Parameters
_synchronized (bool) – This is not intended to be used directly. See
new()
andexisting()
.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.
-
attachment
¶ Properties Attached replication pair info
-
created_at
¶ Creation time
-
delete_target_volume
¶ Option to delete DR site disk
-
description
¶ Replication pair description
-
failure_detail
¶ Replication pair error code
-
fault_level
¶ Replication pair fault level
-
job_id
¶ Job id for created task
-
id
¶ Replication pair ID
-
name
¶ Replication pair name
-
priority_station
¶ Production site AZ of the protection group containing the replication pair
-
progress
¶ Replication pair synchronization progress
-
record_metadata
¶ Replication pair SDR data
-
replication_model
¶ Replication pair mode Default: ‘hypermetro’
-
replication_status
¶ Synchronization status
-
server_group_id
¶ Protection group ID
-
status
¶ Replication pair status
-
updated_at
¶ Update time
-
volume_id
¶ Production site volume ID
-
volume_ids
¶ Production and DR site disk IDs
-
delete
(session, server_group_id=None, delete_target_volume=False, ignore_missing=True)¶ Delete the remote resource based on this instance.
This function overrides default Resource.delete to enable params
- Parameters
session (
Adapter
) – The session to use for making this request.server_group_id (bool) – Specifies the ID of protection group
delete_target_volume (bool) – Specifies whether DR site EVS disk should be deleted after replication pair deletion
ignore_missing (bool) – When set to
False
ResourceNotFound
will be raised when the replication pair does not exist. When set toTrue
, no exception will be set when attempting to delete a nonexistent replication pair
- Returns
This
Replication
instance.
-
expand_replication
(session, replication, new_size)¶ Method to expand replication pair
- Parameters
session (
Adapter
) – The session to use for making this request.replication (str) – ID of replication pair which will be expanded
new_size (int) – Replication pair new size
-
class
otcextensions.sdk.sdrs.v1.replication_pair.
Attachment
(_synchronized=False, connection=None, **attrs)¶ The base resource
- Parameters
_synchronized (bool) – This is not intended to be used directly. See
new()
andexisting()
.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.
-
device
¶ Properties Protected instance attached disk name
-
protected_instance
¶ Protected instance ID
-
class
otcextensions.sdk.sdrs.v1.replication_pair.
Metadata
(_synchronized=False, connection=None, **attrs)¶ The base resource
- Parameters
_synchronized (bool) – This is not intended to be used directly. See
new()
andexisting()
.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.
-
bootable
¶ Properties Specifies whether disk is system
-
multiattach
¶ Specifies whether disk is shared
-
volume_size
¶ Replication pair disk size
-
volume_type
¶ Replication pair disk type