CreateAutonomousDatabaseFromBackupTimestampDetails

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

Bases: oci.database.models.create_autonomous_database_base.CreateAutonomousDatabaseBase

Details to create a point-in-time clone of an Oracle Autonomous Database by specifying a timestamp. Point-in-time clones use backups as the source of the data for the clone.

Attributes

CLONE_TYPE_FULL A constant which can be used with the clone_type property of a CreateAutonomousDatabaseFromBackupTimestampDetails.
CLONE_TYPE_METADATA A constant which can be used with the clone_type property of a CreateAutonomousDatabaseFromBackupTimestampDetails.
DB_WORKLOAD_DW str(object=’‘) -> str
DB_WORKLOAD_OLTP str(object=’‘) -> str
LICENSE_MODEL_BRING_YOUR_OWN_LICENSE str(object=’‘) -> str
LICENSE_MODEL_LICENSE_INCLUDED str(object=’‘) -> str
SOURCE_BACKUP_FROM_ID str(object=’‘) -> str
SOURCE_BACKUP_FROM_TIMESTAMP str(object=’‘) -> str
SOURCE_DATABASE str(object=’‘) -> str
SOURCE_NONE str(object=’‘) -> str
admin_password [Required] Gets the admin_password of this CreateAutonomousDatabaseBase.
autonomous_container_database_id Gets the autonomous_container_database_id of this CreateAutonomousDatabaseBase.
autonomous_database_id [Required] Gets the autonomous_database_id of this CreateAutonomousDatabaseFromBackupTimestampDetails.
clone_type [Required] Gets the clone_type of this CreateAutonomousDatabaseFromBackupTimestampDetails.
compartment_id [Required] Gets the compartment_id of this CreateAutonomousDatabaseBase.
cpu_core_count [Required] Gets the cpu_core_count of this CreateAutonomousDatabaseBase.
data_storage_size_in_tbs [Required] Gets the data_storage_size_in_tbs of this CreateAutonomousDatabaseBase.
db_name [Required] Gets the db_name of this CreateAutonomousDatabaseBase.
db_version Gets the db_version of this CreateAutonomousDatabaseBase.
db_workload Gets the db_workload of this CreateAutonomousDatabaseBase.
defined_tags Gets the defined_tags of this CreateAutonomousDatabaseBase.
display_name Gets the display_name of this CreateAutonomousDatabaseBase.
freeform_tags Gets the freeform_tags of this CreateAutonomousDatabaseBase.
is_auto_scaling_enabled Gets the is_auto_scaling_enabled of this CreateAutonomousDatabaseBase.
is_dedicated Gets the is_dedicated of this CreateAutonomousDatabaseBase.
is_free_tier Gets the is_free_tier of this CreateAutonomousDatabaseBase.
is_preview_version_with_service_terms_accepted Gets the is_preview_version_with_service_terms_accepted of this CreateAutonomousDatabaseBase.
license_model Gets the license_model of this CreateAutonomousDatabaseBase.
nsg_ids Gets the nsg_ids of this CreateAutonomousDatabaseBase.
private_endpoint_label Gets the private_endpoint_label of this CreateAutonomousDatabaseBase.
source Gets the source of this CreateAutonomousDatabaseBase.
subnet_id Gets the subnet_id of this CreateAutonomousDatabaseBase.
timestamp [Required] Gets the timestamp of this CreateAutonomousDatabaseFromBackupTimestampDetails.
whitelisted_ips Gets the whitelisted_ips of this CreateAutonomousDatabaseBase.

Methods

__init__(**kwargs) Initializes a new CreateAutonomousDatabaseFromBackupTimestampDetails 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.
CLONE_TYPE_FULL = 'FULL'

A constant which can be used with the clone_type property of a CreateAutonomousDatabaseFromBackupTimestampDetails. This constant has a value of “FULL”

CLONE_TYPE_METADATA = 'METADATA'

A constant which can be used with the clone_type property of a CreateAutonomousDatabaseFromBackupTimestampDetails. This constant has a value of “METADATA”

DB_WORKLOAD_DW = 'DW'
DB_WORKLOAD_OLTP = 'OLTP'
LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'
LICENSE_MODEL_LICENSE_INCLUDED = 'LICENSE_INCLUDED'
SOURCE_BACKUP_FROM_ID = 'BACKUP_FROM_ID'
SOURCE_BACKUP_FROM_TIMESTAMP = 'BACKUP_FROM_TIMESTAMP'
SOURCE_DATABASE = 'DATABASE'
SOURCE_NONE = 'NONE'
__init__(**kwargs)

Initializes a new CreateAutonomousDatabaseFromBackupTimestampDetails object with values from keyword arguments. The default value of the source attribute of this class is BACKUP_FROM_TIMESTAMP and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • compartment_id (str) – The value to assign to the compartment_id property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • db_name (str) – The value to assign to the db_name property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • cpu_core_count (int) – The value to assign to the cpu_core_count property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • db_workload (str) – The value to assign to the db_workload property of this CreateAutonomousDatabaseFromBackupTimestampDetails. Allowed values for this property are: “OLTP”, “DW”
  • data_storage_size_in_tbs (int) – The value to assign to the data_storage_size_in_tbs property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • is_free_tier (bool) – The value to assign to the is_free_tier property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • admin_password (str) – The value to assign to the admin_password property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • display_name (str) – The value to assign to the display_name property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • license_model (str) – The value to assign to the license_model property of this CreateAutonomousDatabaseFromBackupTimestampDetails. Allowed values for this property are: “LICENSE_INCLUDED”, “BRING_YOUR_OWN_LICENSE”
  • is_preview_version_with_service_terms_accepted (bool) – The value to assign to the is_preview_version_with_service_terms_accepted property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • is_auto_scaling_enabled (bool) – The value to assign to the is_auto_scaling_enabled property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • is_dedicated (bool) – The value to assign to the is_dedicated property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • autonomous_container_database_id (str) – The value to assign to the autonomous_container_database_id property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • whitelisted_ips (list[str]) – The value to assign to the whitelisted_ips property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • subnet_id (str) – The value to assign to the subnet_id property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • nsg_ids (list[str]) – The value to assign to the nsg_ids property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • private_endpoint_label (str) – The value to assign to the private_endpoint_label property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • db_version (str) – The value to assign to the db_version property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • source (str) – The value to assign to the source property of this CreateAutonomousDatabaseFromBackupTimestampDetails. Allowed values for this property are: “NONE”, “DATABASE”, “BACKUP_FROM_ID”, “BACKUP_FROM_TIMESTAMP”
  • autonomous_database_id (str) – The value to assign to the autonomous_database_id property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • timestamp (datetime) – The value to assign to the timestamp property of this CreateAutonomousDatabaseFromBackupTimestampDetails.
  • clone_type (str) – The value to assign to the clone_type property of this CreateAutonomousDatabaseFromBackupTimestampDetails. Allowed values for this property are: “FULL”, “METADATA”
admin_password

[Required] Gets the admin_password of this CreateAutonomousDatabaseBase. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (“) or the username “admin”, regardless of casing.

Returns:The admin_password of this CreateAutonomousDatabaseBase.
Return type:str
autonomous_container_database_id

Gets the autonomous_container_database_id of this CreateAutonomousDatabaseBase. The Autonomous Container Database OCID.

Returns:The autonomous_container_database_id of this CreateAutonomousDatabaseBase.
Return type:str
autonomous_database_id

[Required] Gets the autonomous_database_id of this CreateAutonomousDatabaseFromBackupTimestampDetails. The OCID of the source Autonomous Database that you will clone to create a new Autonomous Database.

Returns:The autonomous_database_id of this CreateAutonomousDatabaseFromBackupTimestampDetails.
Return type:str
clone_type

[Required] Gets the clone_type of this CreateAutonomousDatabaseFromBackupTimestampDetails. The Autonomous Database clone type.

Allowed values for this property are: “FULL”, “METADATA”

Returns:The clone_type of this CreateAutonomousDatabaseFromBackupTimestampDetails.
Return type:str
compartment_id

[Required] Gets the compartment_id of this CreateAutonomousDatabaseBase. The OCID of the compartment of the Autonomous Database.

Returns:The compartment_id of this CreateAutonomousDatabaseBase.
Return type:str
cpu_core_count

[Required] Gets the cpu_core_count of this CreateAutonomousDatabaseBase. The number of OCPU cores to be made available to the database.

Returns:The cpu_core_count of this CreateAutonomousDatabaseBase.
Return type:int
data_storage_size_in_tbs

[Required] Gets the data_storage_size_in_tbs of this CreateAutonomousDatabaseBase. The size, in terabytes, of the data volume that will be created and attached to the database. This storage can later be scaled up if needed.

Returns:The data_storage_size_in_tbs of this CreateAutonomousDatabaseBase.
Return type:int
db_name

[Required] Gets the db_name of this CreateAutonomousDatabaseBase. The database name. The name must begin with an alphabetic character and can contain a maximum of 14 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy.

Returns:The db_name of this CreateAutonomousDatabaseBase.
Return type:str
db_version

Gets the db_version of this CreateAutonomousDatabaseBase. A valid Oracle Database version for Autonomous Database.

Returns:The db_version of this CreateAutonomousDatabaseBase.
Return type:str
db_workload

Gets the db_workload of this CreateAutonomousDatabaseBase. The Autonomous Database workload type. The following values are valid:

  • OLTP - indicates an Autonomous Transaction Processing database
  • DW - indicates an Autonomous Data Warehouse database

Allowed values for this property are: “OLTP”, “DW”

Returns:The db_workload of this CreateAutonomousDatabaseBase.
Return type:str
defined_tags

Gets the defined_tags of this CreateAutonomousDatabaseBase. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Returns:The defined_tags of this CreateAutonomousDatabaseBase.
Return type:dict(str, dict(str, object))
display_name

Gets the display_name of this CreateAutonomousDatabaseBase. The user-friendly name for the Autonomous Database. The name does not have to be unique.

Returns:The display_name of this CreateAutonomousDatabaseBase.
Return type:str
freeform_tags

Gets the freeform_tags of this CreateAutonomousDatabaseBase. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

Example: {“Department”: “Finance”}

Returns:The freeform_tags of this CreateAutonomousDatabaseBase.
Return type:dict(str, 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.

is_auto_scaling_enabled

Gets the is_auto_scaling_enabled of this CreateAutonomousDatabaseBase. Indicates if auto scaling is enabled for the Autonomous Database OCPU core count. The default value is FALSE. Note that auto scaling is available for databases on shared Exadata infrastructure only.

Returns:The is_auto_scaling_enabled of this CreateAutonomousDatabaseBase.
Return type:bool
is_dedicated

Gets the is_dedicated of this CreateAutonomousDatabaseBase. True if the database is on dedicated Exadata infrastructure.

Returns:The is_dedicated of this CreateAutonomousDatabaseBase.
Return type:bool
is_free_tier

Gets the is_free_tier of this CreateAutonomousDatabaseBase. Indicates if this is an Always Free resource. The default value is false. Note that Always Free Autonomous Databases have 1 CPU and 20GB of memory. For Always Free databases, memory and CPU cannot be scaled.

Returns:The is_free_tier of this CreateAutonomousDatabaseBase.
Return type:bool
is_preview_version_with_service_terms_accepted

Gets the is_preview_version_with_service_terms_accepted of this CreateAutonomousDatabaseBase. If set to TRUE, indicates that an Autonomous Database preview version is being provisioned, and that the preview version’s terms of service have been accepted. Note that preview version software is only available for databases on shared Exadata infrastructure.

Returns:The is_preview_version_with_service_terms_accepted of this CreateAutonomousDatabaseBase.
Return type:bool
license_model

Gets the license_model of this CreateAutonomousDatabaseBase. The Oracle license model that applies to the Oracle Autonomous Database. Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure, this attribute must be null because the attribute is already set at the Autonomous Exadata Infrastructure level. When using shared Exadata infrastructure, if a value is not specified, the system will supply the value of BRING_YOUR_OWN_LICENSE.

Allowed values for this property are: “LICENSE_INCLUDED”, “BRING_YOUR_OWN_LICENSE”

Returns:The license_model of this CreateAutonomousDatabaseBase.
Return type:str
nsg_ids

Gets the nsg_ids of this CreateAutonomousDatabaseBase. A list of the OCIDs of the network security groups (NSGs) that this resource belongs to. Setting this to an empty array after the list is created removes the resource from all NSGs. For more information about NSGs, see Security Rules. NsgIds restrictions: - Autonomous Databases with private access require at least 1 Network Security Group (NSG). The nsgIds array cannot be empty.

Returns:The nsg_ids of this CreateAutonomousDatabaseBase.
Return type:list[str]
private_endpoint_label

Gets the private_endpoint_label of this CreateAutonomousDatabaseBase. The private endpoint label for the resource.

Returns:The private_endpoint_label of this CreateAutonomousDatabaseBase.
Return type:str
source

Gets the source of this CreateAutonomousDatabaseBase. The source of the database: Use NONE for creating a new Autonomous Database. Use DATABASE for creating a new Autonomous Database by cloning an existing Autonomous Database.

For Autonomous Databases on shared Exadata infrastructure, the following cloning options are available: Use BACKUP_FROM_ID for creating a new Autonomous Database from a specified backup. Use BACKUP_FROM_TIMESTAMP for creating a point-in-time Autonomous Database clone using backups. For more information, see Cloning an Autonomous Database.

Allowed values for this property are: “NONE”, “DATABASE”, “BACKUP_FROM_ID”, “BACKUP_FROM_TIMESTAMP”

Returns:The source of this CreateAutonomousDatabaseBase.
Return type:str
subnet_id

Gets the subnet_id of this CreateAutonomousDatabaseBase. The OCID of the subnet the resource is associated with.

Subnet Restrictions: - For bare metal DB systems and for single node virtual machine DB systems, do not use a subnet that overlaps with 192.168.16.16/28. - For Exadata and virtual machine 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.128.0/20. - For Autonomous Database, setting this will disable public secure access to the database.

These subnets are used by the Oracle Clusterware private interconnect on the database instance. Specifying an overlapping subnet will cause the private interconnect to malfunction. This restriction applies to both the client subnet and the backup subnet.

Returns:The subnet_id of this CreateAutonomousDatabaseBase.
Return type:str
timestamp

[Required] Gets the timestamp of this CreateAutonomousDatabaseFromBackupTimestampDetails. The timestamp specified for the point-in-time clone of the source Autonomous Database. The timestamp must be in the past.

Returns:The timestamp of this CreateAutonomousDatabaseFromBackupTimestampDetails.
Return type:datetime
whitelisted_ips

Gets the whitelisted_ips of this CreateAutonomousDatabaseBase. The client IP access control list (ACL). This feature is available for databases on shared Exadata infrastructure only. Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. This is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. To add the whitelist VCN specific subnet or IP, use a semicoln ‘;’ as a deliminator to add the VCN specific subnets or IPs. Example: [“1.1.1.1”,”1.1.1.0/24”,”ocid1.vcn.oc1.sea.aaaaaaaard2hfx2nn3e5xeo6j6o62jga44xjizkw”,”ocid1.vcn.oc1.sea.aaaaaaaard2hfx2nn3e5xeo6j6o62jga44xjizkw;1.1.1.1”,”ocid1.vcn.oc1.sea.aaaaaaaard2hfx2nn3e5xeo6j6o62jga44xjizkw;1.1.0.0/16”]

Returns:The whitelisted_ips of this CreateAutonomousDatabaseBase.
Return type:list[str]