AutonomousDatabaseDataguardAssociation

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

Bases: object

The properties that define dataguard association between two different Autonomous Databases. Note that Autonomous Databases inherit DataGuard association from parent Autonomous Container Database. No actions can be taken on AutonomousDatabaseDataguardAssociation, usage is strictly informational.

Attributes

LIFECYCLE_STATE_AVAILABLE A constant which can be used with the lifecycle_state property of a AutonomousDatabaseDataguardAssociation.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a AutonomousDatabaseDataguardAssociation.
LIFECYCLE_STATE_PROVISIONING A constant which can be used with the lifecycle_state property of a AutonomousDatabaseDataguardAssociation.
LIFECYCLE_STATE_ROLE_CHANGE_IN_PROGRESS A constant which can be used with the lifecycle_state property of a AutonomousDatabaseDataguardAssociation.
LIFECYCLE_STATE_TERMINATED A constant which can be used with the lifecycle_state property of a AutonomousDatabaseDataguardAssociation.
LIFECYCLE_STATE_TERMINATING A constant which can be used with the lifecycle_state property of a AutonomousDatabaseDataguardAssociation.
PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_AVAILABLE A constant which can be used with the peer_autonomous_database_life_cycle_state property of a AutonomousDatabaseDataguardAssociation.
PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_FAILED A constant which can be used with the peer_autonomous_database_life_cycle_state property of a AutonomousDatabaseDataguardAssociation.
PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_PROVISIONING A constant which can be used with the peer_autonomous_database_life_cycle_state property of a AutonomousDatabaseDataguardAssociation.
PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_ROLE_CHANGE_IN_PROGRESS A constant which can be used with the peer_autonomous_database_life_cycle_state property of a AutonomousDatabaseDataguardAssociation.
PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_TERMINATED A constant which can be used with the peer_autonomous_database_life_cycle_state property of a AutonomousDatabaseDataguardAssociation.
PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_TERMINATING A constant which can be used with the peer_autonomous_database_life_cycle_state property of a AutonomousDatabaseDataguardAssociation.
PEER_ROLE_DISABLED_STANDBY A constant which can be used with the peer_role property of a AutonomousDatabaseDataguardAssociation.
PEER_ROLE_PRIMARY A constant which can be used with the peer_role property of a AutonomousDatabaseDataguardAssociation.
PEER_ROLE_STANDBY A constant which can be used with the peer_role property of a AutonomousDatabaseDataguardAssociation.
PROTECTION_MODE_MAXIMUM_AVAILABILITY A constant which can be used with the protection_mode property of a AutonomousDatabaseDataguardAssociation.
PROTECTION_MODE_MAXIMUM_PERFORMANCE A constant which can be used with the protection_mode property of a AutonomousDatabaseDataguardAssociation.
ROLE_DISABLED_STANDBY A constant which can be used with the role property of a AutonomousDatabaseDataguardAssociation.
ROLE_PRIMARY A constant which can be used with the role property of a AutonomousDatabaseDataguardAssociation.
ROLE_STANDBY A constant which can be used with the role property of a AutonomousDatabaseDataguardAssociation.
apply_lag Gets the apply_lag of this AutonomousDatabaseDataguardAssociation.
apply_rate Gets the apply_rate of this AutonomousDatabaseDataguardAssociation.
autonomous_database_id [Required] Gets the autonomous_database_id of this AutonomousDatabaseDataguardAssociation.
id [Required] Gets the id of this AutonomousDatabaseDataguardAssociation.
lifecycle_details Gets the lifecycle_details of this AutonomousDatabaseDataguardAssociation.
lifecycle_state [Required] Gets the lifecycle_state of this AutonomousDatabaseDataguardAssociation.
peer_autonomous_database_id Gets the peer_autonomous_database_id of this AutonomousDatabaseDataguardAssociation.
peer_autonomous_database_life_cycle_state Gets the peer_autonomous_database_life_cycle_state of this AutonomousDatabaseDataguardAssociation.
peer_role [Required] Gets the peer_role of this AutonomousDatabaseDataguardAssociation.
protection_mode Gets the protection_mode of this AutonomousDatabaseDataguardAssociation.
role [Required] Gets the role of this AutonomousDatabaseDataguardAssociation.
time_created Gets the time_created of this AutonomousDatabaseDataguardAssociation.
time_last_role_changed Gets the time_last_role_changed of this AutonomousDatabaseDataguardAssociation.
time_last_synced Gets the time_last_synced of this AutonomousDatabaseDataguardAssociation.
transport_lag Gets the transport_lag of this AutonomousDatabaseDataguardAssociation.

Methods

__init__(**kwargs) Initializes a new AutonomousDatabaseDataguardAssociation object with values from keyword arguments.
LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'

A constant which can be used with the lifecycle_state property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “AVAILABLE”

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “FAILED”

LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'

A constant which can be used with the lifecycle_state property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “PROVISIONING”

LIFECYCLE_STATE_ROLE_CHANGE_IN_PROGRESS = 'ROLE_CHANGE_IN_PROGRESS'

A constant which can be used with the lifecycle_state property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “ROLE_CHANGE_IN_PROGRESS”

LIFECYCLE_STATE_TERMINATED = 'TERMINATED'

A constant which can be used with the lifecycle_state property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “TERMINATED”

LIFECYCLE_STATE_TERMINATING = 'TERMINATING'

A constant which can be used with the lifecycle_state property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “TERMINATING”

PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_AVAILABLE = 'AVAILABLE'

A constant which can be used with the peer_autonomous_database_life_cycle_state property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “AVAILABLE”

PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the peer_autonomous_database_life_cycle_state property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “FAILED”

PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_PROVISIONING = 'PROVISIONING'

A constant which can be used with the peer_autonomous_database_life_cycle_state property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “PROVISIONING”

PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_ROLE_CHANGE_IN_PROGRESS = 'ROLE_CHANGE_IN_PROGRESS'

A constant which can be used with the peer_autonomous_database_life_cycle_state property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “ROLE_CHANGE_IN_PROGRESS”

PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_TERMINATED = 'TERMINATED'

A constant which can be used with the peer_autonomous_database_life_cycle_state property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “TERMINATED”

PEER_AUTONOMOUS_DATABASE_LIFE_CYCLE_STATE_TERMINATING = 'TERMINATING'

A constant which can be used with the peer_autonomous_database_life_cycle_state property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “TERMINATING”

PEER_ROLE_DISABLED_STANDBY = 'DISABLED_STANDBY'

A constant which can be used with the peer_role property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “DISABLED_STANDBY”

PEER_ROLE_PRIMARY = 'PRIMARY'

A constant which can be used with the peer_role property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “PRIMARY”

PEER_ROLE_STANDBY = 'STANDBY'

A constant which can be used with the peer_role property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “STANDBY”

PROTECTION_MODE_MAXIMUM_AVAILABILITY = 'MAXIMUM_AVAILABILITY'

A constant which can be used with the protection_mode property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “MAXIMUM_AVAILABILITY”

PROTECTION_MODE_MAXIMUM_PERFORMANCE = 'MAXIMUM_PERFORMANCE'

A constant which can be used with the protection_mode property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “MAXIMUM_PERFORMANCE”

ROLE_DISABLED_STANDBY = 'DISABLED_STANDBY'

A constant which can be used with the role property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “DISABLED_STANDBY”

ROLE_PRIMARY = 'PRIMARY'

A constant which can be used with the role property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “PRIMARY”

ROLE_STANDBY = 'STANDBY'

A constant which can be used with the role property of a AutonomousDatabaseDataguardAssociation. This constant has a value of “STANDBY”

__init__(**kwargs)

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

Parameters:
  • id (str) – The value to assign to the id property of this AutonomousDatabaseDataguardAssociation.
  • autonomous_database_id (str) – The value to assign to the autonomous_database_id property of this AutonomousDatabaseDataguardAssociation.
  • role (str) – The value to assign to the role property of this AutonomousDatabaseDataguardAssociation. Allowed values for this property are: “PRIMARY”, “STANDBY”, “DISABLED_STANDBY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this AutonomousDatabaseDataguardAssociation. Allowed values for this property are: “PROVISIONING”, “AVAILABLE”, “ROLE_CHANGE_IN_PROGRESS”, “TERMINATING”, “TERMINATED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • lifecycle_details (str) – The value to assign to the lifecycle_details property of this AutonomousDatabaseDataguardAssociation.
  • peer_role (str) – The value to assign to the peer_role property of this AutonomousDatabaseDataguardAssociation. Allowed values for this property are: “PRIMARY”, “STANDBY”, “DISABLED_STANDBY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • peer_autonomous_database_id (str) – The value to assign to the peer_autonomous_database_id property of this AutonomousDatabaseDataguardAssociation.
  • peer_autonomous_database_life_cycle_state (str) – The value to assign to the peer_autonomous_database_life_cycle_state property of this AutonomousDatabaseDataguardAssociation. Allowed values for this property are: “PROVISIONING”, “AVAILABLE”, “ROLE_CHANGE_IN_PROGRESS”, “TERMINATING”, “TERMINATED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • protection_mode (str) – The value to assign to the protection_mode property of this AutonomousDatabaseDataguardAssociation. Allowed values for this property are: “MAXIMUM_AVAILABILITY”, “MAXIMUM_PERFORMANCE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • apply_lag (str) – The value to assign to the apply_lag property of this AutonomousDatabaseDataguardAssociation.
  • apply_rate (str) – The value to assign to the apply_rate property of this AutonomousDatabaseDataguardAssociation.
  • transport_lag (str) – The value to assign to the transport_lag property of this AutonomousDatabaseDataguardAssociation.
  • time_last_synced (datetime) – The value to assign to the time_last_synced property of this AutonomousDatabaseDataguardAssociation.
  • time_created (datetime) – The value to assign to the time_created property of this AutonomousDatabaseDataguardAssociation.
  • time_last_role_changed (datetime) – The value to assign to the time_last_role_changed property of this AutonomousDatabaseDataguardAssociation.
apply_lag

Gets the apply_lag of this AutonomousDatabaseDataguardAssociation. The lag time between updates to the primary database and application of the redo data on the standby database, as computed by the reporting database.

Example: 9 seconds

Returns:The apply_lag of this AutonomousDatabaseDataguardAssociation.
Return type:str
apply_rate

Gets the apply_rate of this AutonomousDatabaseDataguardAssociation. The rate at which redo logs are synced between the associated databases.

Example: 180 Mb per second

Returns:The apply_rate of this AutonomousDatabaseDataguardAssociation.
Return type:str
autonomous_database_id

[Required] Gets the autonomous_database_id of this AutonomousDatabaseDataguardAssociation. The OCID of the Autonomous Database that has a relationship with the peer Autonomous Database.

Returns:The autonomous_database_id of this AutonomousDatabaseDataguardAssociation.
Return type:str
id

[Required] Gets the id of this AutonomousDatabaseDataguardAssociation. The OCID of the Autonomous Dataguard created for Autonomous Container Database where given Autonomous Database resides in.

Returns:The id of this AutonomousDatabaseDataguardAssociation.
Return type:str
lifecycle_details

Gets the lifecycle_details of this AutonomousDatabaseDataguardAssociation. Additional information about the current lifecycleState, if available.

Returns:The lifecycle_details of this AutonomousDatabaseDataguardAssociation.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this AutonomousDatabaseDataguardAssociation. The current state of the Autonomous Data Guard.

Allowed values for this property are: “PROVISIONING”, “AVAILABLE”, “ROLE_CHANGE_IN_PROGRESS”, “TERMINATING”, “TERMINATED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this AutonomousDatabaseDataguardAssociation.
Return type:str
peer_autonomous_database_id

Gets the peer_autonomous_database_id of this AutonomousDatabaseDataguardAssociation. The OCID of the peer Autonomous Database.

Returns:The peer_autonomous_database_id of this AutonomousDatabaseDataguardAssociation.
Return type:str
peer_autonomous_database_life_cycle_state

Gets the peer_autonomous_database_life_cycle_state of this AutonomousDatabaseDataguardAssociation. The current state of the Autonomous Data Guard.

Allowed values for this property are: “PROVISIONING”, “AVAILABLE”, “ROLE_CHANGE_IN_PROGRESS”, “TERMINATING”, “TERMINATED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The peer_autonomous_database_life_cycle_state of this AutonomousDatabaseDataguardAssociation.
Return type:str
peer_role

[Required] Gets the peer_role of this AutonomousDatabaseDataguardAssociation. The role of the Autonomous Data Guard-enabled Autonomous Container Database.

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

Returns:The peer_role of this AutonomousDatabaseDataguardAssociation.
Return type:str
protection_mode

Gets the protection_mode of this AutonomousDatabaseDataguardAssociation. The protection mode of this Data Guard association. For more information, see Oracle Data Guard Protection Modes in the Oracle Data Guard documentation.

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

Returns:The protection_mode of this AutonomousDatabaseDataguardAssociation.
Return type:str
role

[Required] Gets the role of this AutonomousDatabaseDataguardAssociation. The role of the Autonomous Data Guard-enabled Autonomous Container Database.

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

Returns:The role of this AutonomousDatabaseDataguardAssociation.
Return type:str
time_created

Gets the time_created of this AutonomousDatabaseDataguardAssociation. The date and time the Data Guard association was created.

Returns:The time_created of this AutonomousDatabaseDataguardAssociation.
Return type:datetime
time_last_role_changed

Gets the time_last_role_changed of this AutonomousDatabaseDataguardAssociation. The date and time when the last role change action happened.

Returns:The time_last_role_changed of this AutonomousDatabaseDataguardAssociation.
Return type:datetime
time_last_synced

Gets the time_last_synced of this AutonomousDatabaseDataguardAssociation. The date and time of the last update to the apply lag, apply rate, and transport lag values.

Returns:The time_last_synced of this AutonomousDatabaseDataguardAssociation.
Return type:datetime
transport_lag

Gets the transport_lag of this AutonomousDatabaseDataguardAssociation. The approximate number of seconds of redo data not yet available on the standby Autonomous Container Database, as computed by the reporting database.

Example: 7 seconds

Returns:The transport_lag of this AutonomousDatabaseDataguardAssociation.
Return type:str