ConvertStandbyDatabaseTypeDetails

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

Bases: object

The convertStandbyDatabaseType request parameters.

Attributes

STANDBY_CONVERSION_TYPE_PHYSICAL A constant which can be used with the standby_conversion_type property of a ConvertStandbyDatabaseTypeDetails.
STANDBY_CONVERSION_TYPE_SNAPSHOT A constant which can be used with the standby_conversion_type property of a ConvertStandbyDatabaseTypeDetails.
database_admin_password [Required] Gets the database_admin_password of this ConvertStandbyDatabaseTypeDetails.
snapshot_duration_in_days Gets the snapshot_duration_in_days of this ConvertStandbyDatabaseTypeDetails.
standby_conversion_type [Required] Gets the standby_conversion_type of this ConvertStandbyDatabaseTypeDetails.

Methods

__init__(**kwargs) Initializes a new ConvertStandbyDatabaseTypeDetails object with values from keyword arguments.
STANDBY_CONVERSION_TYPE_PHYSICAL = 'PHYSICAL'

A constant which can be used with the standby_conversion_type property of a ConvertStandbyDatabaseTypeDetails. This constant has a value of “PHYSICAL”

STANDBY_CONVERSION_TYPE_SNAPSHOT = 'SNAPSHOT'

A constant which can be used with the standby_conversion_type property of a ConvertStandbyDatabaseTypeDetails. This constant has a value of “SNAPSHOT”

__init__(**kwargs)

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

Parameters:
  • database_admin_password (str) – The value to assign to the database_admin_password property of this ConvertStandbyDatabaseTypeDetails.
  • standby_conversion_type (str) – The value to assign to the standby_conversion_type property of this ConvertStandbyDatabaseTypeDetails. Allowed values for this property are: “SNAPSHOT”, “PHYSICAL”
  • snapshot_duration_in_days (int) – The value to assign to the snapshot_duration_in_days property of this ConvertStandbyDatabaseTypeDetails.
database_admin_password

[Required] Gets the database_admin_password of this ConvertStandbyDatabaseTypeDetails. The administrator password of the primary database in this Data Guard association.

The password MUST be the same as the primary admin password.

Returns:The database_admin_password of this ConvertStandbyDatabaseTypeDetails.
Return type:str
snapshot_duration_in_days

Gets the snapshot_duration_in_days of this ConvertStandbyDatabaseTypeDetails. SnapshotDurationInDays is the duration in day(s) after which the Snapshot Standby Database will get converted back to Physical Standby. The minimum value of snapshotDurationInDays is 3 days and maximum value is 14 days. Default value will be 7 days if not provided in the Request.

This field is only applicable if the requested database role is snapshot standby.

Returns:The snapshot_duration_in_days of this ConvertStandbyDatabaseTypeDetails.
Return type:int
standby_conversion_type

[Required] Gets the standby_conversion_type of this ConvertStandbyDatabaseTypeDetails. Defines the conversion type of the standby database. Specify this to convert a physical standby to a snapshot standby and vice versa.

Valid standbyConversionType:
  • SNAPSHOT
  • PHYSICAL

Allowed values for this property are: “SNAPSHOT”, “PHYSICAL”

Returns:The standby_conversion_type of this ConvertStandbyDatabaseTypeDetails.
Return type:str