DisasterRecoveryConfiguration

class oci.database.models.DisasterRecoveryConfiguration(**kwargs)

Bases: object

Configurations of a Disaster Recovery.

Attributes

DISASTER_RECOVERY_TYPE_ADG A constant which can be used with the disaster_recovery_type property of a DisasterRecoveryConfiguration.
DISASTER_RECOVERY_TYPE_BACKUP_BASED A constant which can be used with the disaster_recovery_type property of a DisasterRecoveryConfiguration.
disaster_recovery_type Gets the disaster_recovery_type of this DisasterRecoveryConfiguration.
is_replicate_automatic_backups Gets the is_replicate_automatic_backups of this DisasterRecoveryConfiguration.
is_snapshot_standby Gets the is_snapshot_standby of this DisasterRecoveryConfiguration.
time_snapshot_standby_enabled_till Gets the time_snapshot_standby_enabled_till of this DisasterRecoveryConfiguration.

Methods

__init__(**kwargs) Initializes a new DisasterRecoveryConfiguration object with values from keyword arguments.
DISASTER_RECOVERY_TYPE_ADG = 'ADG'

A constant which can be used with the disaster_recovery_type property of a DisasterRecoveryConfiguration. This constant has a value of “ADG”

DISASTER_RECOVERY_TYPE_BACKUP_BASED = 'BACKUP_BASED'

A constant which can be used with the disaster_recovery_type property of a DisasterRecoveryConfiguration. This constant has a value of “BACKUP_BASED”

__init__(**kwargs)

Initializes a new DisasterRecoveryConfiguration object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • disaster_recovery_type (str) – The value to assign to the disaster_recovery_type property of this DisasterRecoveryConfiguration. Allowed values for this property are: “ADG”, “BACKUP_BASED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • time_snapshot_standby_enabled_till (datetime) – The value to assign to the time_snapshot_standby_enabled_till property of this DisasterRecoveryConfiguration.
  • is_snapshot_standby (bool) – The value to assign to the is_snapshot_standby property of this DisasterRecoveryConfiguration.
  • is_replicate_automatic_backups (bool) – The value to assign to the is_replicate_automatic_backups property of this DisasterRecoveryConfiguration.
disaster_recovery_type

Gets the disaster_recovery_type of this DisasterRecoveryConfiguration. Indicates the disaster recovery (DR) type of the Autonomous Database Serverless instance. Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover. Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover.

Allowed values for this property are: “ADG”, “BACKUP_BASED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The disaster_recovery_type of this DisasterRecoveryConfiguration.
Return type:str
is_replicate_automatic_backups

Gets the is_replicate_automatic_backups of this DisasterRecoveryConfiguration. If true, 7 days worth of backups are replicated across regions for Cross-Region ADB or Backup-Based DR between Primary and Standby. If false, the backups taken on the Primary are not replicated to the Standby database.

Returns:The is_replicate_automatic_backups of this DisasterRecoveryConfiguration.
Return type:bool
is_snapshot_standby

Gets the is_snapshot_standby of this DisasterRecoveryConfiguration. Indicates if user wants to convert to a snapshot standby. For example, true would set a standby database to snapshot standby database. False would set a snapshot standby database back to regular standby database.

Returns:The is_snapshot_standby of this DisasterRecoveryConfiguration.
Return type:bool
time_snapshot_standby_enabled_till

Gets the time_snapshot_standby_enabled_till of this DisasterRecoveryConfiguration. Time and date stored as an RFC 3339 formatted timestamp string. For example, 2022-01-01T12:00:00.000Z would set a limit for the snapshot standby to be converted back to a cross-region standby database.

Returns:The time_snapshot_standby_enabled_till of this DisasterRecoveryConfiguration.
Return type:datetime