CreateDatabaseFromDatabase¶
- class oci.database.models.CreateDatabaseFromDatabase(**kwargs)¶
Bases:
CreateDatabaseBaseDetails for creating a database by restoring from a database backup closest to given timestamp. This would work only if given timestamp is within the time range of available automatic backups.
Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.
Attributes:
A constant which can be used with the source property of a CreateDatabaseBase.
A constant which can be used with the source property of a CreateDatabaseBase.
A constant which can be used with the source property of a CreateDatabaseBase.
A constant which can be used with the source property of a CreateDatabaseBase.
A constant which can be used with the source property of a CreateDatabaseBase.
A constant which can be used with the source property of a CreateDatabaseBase.
[Required] Gets the database of this CreateDatabaseFromDatabase.
Gets the db_home_id of this CreateDatabaseBase.
Gets the db_version of this CreateDatabaseBase.
Gets the kms_key_id of this CreateDatabaseBase.
Gets the kms_key_version_id of this CreateDatabaseBase.
[Required] Gets the source of this CreateDatabaseBase.
Methods:
__init__(**kwargs)Initializes a new CreateDatabaseFromDatabase object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- SOURCE_DATABASE = 'DATABASE'¶
A constant which can be used with the source property of a CreateDatabaseBase. This constant has a value of “DATABASE”
- SOURCE_DATAGUARD = 'DATAGUARD'¶
A constant which can be used with the source property of a CreateDatabaseBase. This constant has a value of “DATAGUARD”
- SOURCE_DB_BACKUP = 'DB_BACKUP'¶
A constant which can be used with the source property of a CreateDatabaseBase. This constant has a value of “DB_BACKUP”
- SOURCE_DB_CLONE = 'DB_CLONE'¶
A constant which can be used with the source property of a CreateDatabaseBase. This constant has a value of “DB_CLONE”
- SOURCE_DB_SNAPSHOT = 'DB_SNAPSHOT'¶
A constant which can be used with the source property of a CreateDatabaseBase. This constant has a value of “DB_SNAPSHOT”
- SOURCE_NONE = 'NONE'¶
A constant which can be used with the source property of a CreateDatabaseBase. This constant has a value of “NONE”
- __init__(**kwargs)¶
Initializes a new CreateDatabaseFromDatabase object with values from keyword arguments. The default value of the
sourceattribute of this class isDATABASEand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
db_home_id (str) – The value to assign to the db_home_id property of this CreateDatabaseFromDatabase.
db_version (str) – The value to assign to the db_version property of this CreateDatabaseFromDatabase.
source (str) – The value to assign to the source property of this CreateDatabaseFromDatabase. Allowed values for this property are: “NONE”, “DB_BACKUP”, “DATABASE”, “DATAGUARD”, “DB_SNAPSHOT”, “DB_CLONE”
kms_key_id (str) – The value to assign to the kms_key_id property of this CreateDatabaseFromDatabase.
kms_key_version_id (str) – The value to assign to the kms_key_version_id property of this CreateDatabaseFromDatabase.
database (oci.database.models.CreateDatabaseFromAnotherDatabaseDetails) – The value to assign to the database property of this CreateDatabaseFromDatabase.
- property database¶
[Required] Gets the database of this CreateDatabaseFromDatabase.
- Returns
The database of this CreateDatabaseFromDatabase.
- Return type
oci.database.models.CreateDatabaseFromAnotherDatabaseDetails
- property db_home_id¶
Gets the db_home_id of this CreateDatabaseBase. The OCID of the Database Home.
- Returns
The db_home_id of this CreateDatabaseBase.
- Return type
str
- property db_version¶
Gets the db_version of this CreateDatabaseBase. A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation.
This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, privateEndpointLabel, nsgIds, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier.
- Returns
The db_version of this CreateDatabaseBase.
- Return type
str
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property kms_key_id¶
Gets the kms_key_id of this CreateDatabaseBase. The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- Returns
The kms_key_id of this CreateDatabaseBase.
- Return type
str
- property kms_key_version_id¶
Gets the kms_key_version_id of this CreateDatabaseBase. The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous AI Database Serverless does not use key versions, hence is not applicable for Autonomous AI Database Serverless instances.
- Returns
The kms_key_version_id of this CreateDatabaseBase.
- Return type
str
- property source¶
[Required] Gets the source of this CreateDatabaseBase. The source of the database: Use NONE for creating a new database. Use DB_BACKUP for creating a new database by restoring from a backup. Use DATAGUARD for creating a new STANDBY database for a Data Guard setup.. Use DB_SNAPSHOT for creating a new database by cloning from snapshot. Use DB_CLONE for creating a new database by cloning from another database. The default is NONE.
Allowed values for this property are: “NONE”, “DB_BACKUP”, “DATABASE”, “DATAGUARD”, “DB_SNAPSHOT”, “DB_CLONE”
- Returns
The source of this CreateDatabaseBase.
- Return type
str