otcextensions.sdk.sdrs.v1.protection_group.ProtectionGroup¶
The SDRS Protection group Class¶
The ProtectionGroup
class inherits from
Resource
.
-
class
otcextensions.sdk.sdrs.v1.protection_group.
ProtectionGroup
(_synchronized=False, connection=None, **attrs)¶ SDRS Protection Group 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.
-
created_at
¶ Properties Creation time
-
description
¶ Protection group description
-
disaster_recovery_drill_num
¶ Number of DR drills in a protection group.
-
domain_id
¶ Active-active domain ID
-
domain_name
¶ Active-active domain name
-
dr_type
¶ Disaster recovery type Default: migration
-
health_status
¶ Protection group health status
-
id
¶ Protection group ID
-
job_id
¶ Executed task job ID
-
name
¶ Protection group name
-
priority_station
¶ Production site of protection group
-
progress
¶ Protection group synchronization progress
-
protected_instance_num
¶ Number of protected instances in protection group
-
protection_type
¶ Protection mode
-
replication_model
¶ Reserved protection parameter
-
replication_num
¶ Number of replication pairs in protection group
-
replication_status
¶ Replication group data synchronization status
-
server_type
¶ Type of managed servers
-
source_availability_zone
¶ Production site AZ
-
source_vpc_id
¶ Production site VPC ID
-
status
¶ Protection group status
-
target_availability_zone
¶ Disaster recovery site AZ
-
target_vpc_id
¶ Disaster recovery site VPC ID
-
test_vpc_id
¶ DR drill VPC ID
-
updated_at
¶ Update time
-
enable_protection_group
(session, protection_group)¶ Method to enable protection for protection group
- Parameters
session (
Adapter
) – The session to use for making this request.protection_group (str) – ID of protection group to be enabled
-
disable_protection_group
(session, protection_group)¶ Method to disable protection for protection group
- Parameters
session (
Adapter
) – The session to use for making this request.protection_group (str) – ID of protection group to be disabled
-
perform_failover
(session, protection_group)¶ Method to perform failover from production site to DR site
- Parameters
session (
Adapter
) – The session to use for making this request.protection_group (str) – ID of protection group to perform failover
-
perform_planned_failover
(session, protection_group, priority_station)¶ Method to perform planned failover from production site to DR site
- Parameters
session (
Adapter
) – The session to use for making this request.protection_group (str) – ID of protection group to perform planned failover
priority_station (str) – direction of planned failover Values: source of target