AutonomousDatabase

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

Bases: object

An Oracle Autonomous Database.

DB_WORKLOAD_DW = 'DW'

A constant which can be used with the db_workload property of a AutonomousDatabase. This constant has a value of "DW"

DB_WORKLOAD_OLTP = 'OLTP'

A constant which can be used with the db_workload property of a AutonomousDatabase. This constant has a value of "OLTP"

LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'

A constant which can be used with the license_model property of a AutonomousDatabase. This constant has a value of "BRING_YOUR_OWN_LICENSE"

LICENSE_MODEL_LICENSE_INCLUDED = 'LICENSE_INCLUDED'

A constant which can be used with the license_model property of a AutonomousDatabase. This constant has a value of "LICENSE_INCLUDED"

LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'

A constant which can be used with the lifecycle_state property of a AutonomousDatabase. This constant has a value of "AVAILABLE"

LIFECYCLE_STATE_AVAILABLE_NEEDS_ATTENTION = 'AVAILABLE_NEEDS_ATTENTION'

A constant which can be used with the lifecycle_state property of a AutonomousDatabase. This constant has a value of "AVAILABLE_NEEDS_ATTENTION"

LIFECYCLE_STATE_BACKUP_IN_PROGRESS = 'BACKUP_IN_PROGRESS'

A constant which can be used with the lifecycle_state property of a AutonomousDatabase. This constant has a value of "BACKUP_IN_PROGRESS"

LIFECYCLE_STATE_MAINTENANCE_IN_PROGRESS = 'MAINTENANCE_IN_PROGRESS'

A constant which can be used with the lifecycle_state property of a AutonomousDatabase. This constant has a value of "MAINTENANCE_IN_PROGRESS"

LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'

A constant which can be used with the lifecycle_state property of a AutonomousDatabase. This constant has a value of "PROVISIONING"

LIFECYCLE_STATE_RESTORE_FAILED = 'RESTORE_FAILED'

A constant which can be used with the lifecycle_state property of a AutonomousDatabase. This constant has a value of "RESTORE_FAILED"

LIFECYCLE_STATE_RESTORE_IN_PROGRESS = 'RESTORE_IN_PROGRESS'

A constant which can be used with the lifecycle_state property of a AutonomousDatabase. This constant has a value of "RESTORE_IN_PROGRESS"

LIFECYCLE_STATE_SCALE_IN_PROGRESS = 'SCALE_IN_PROGRESS'

A constant which can be used with the lifecycle_state property of a AutonomousDatabase. This constant has a value of "SCALE_IN_PROGRESS"

LIFECYCLE_STATE_STARTING = 'STARTING'

A constant which can be used with the lifecycle_state property of a AutonomousDatabase. This constant has a value of "STARTING"

LIFECYCLE_STATE_STOPPED = 'STOPPED'

A constant which can be used with the lifecycle_state property of a AutonomousDatabase. This constant has a value of "STOPPED"

LIFECYCLE_STATE_STOPPING = 'STOPPING'

A constant which can be used with the lifecycle_state property of a AutonomousDatabase. This constant has a value of "STOPPING"

LIFECYCLE_STATE_TERMINATED = 'TERMINATED'

A constant which can be used with the lifecycle_state property of a AutonomousDatabase. This constant has a value of "TERMINATED"

LIFECYCLE_STATE_TERMINATING = 'TERMINATING'

A constant which can be used with the lifecycle_state property of a AutonomousDatabase. This constant has a value of "TERMINATING"

LIFECYCLE_STATE_UNAVAILABLE = 'UNAVAILABLE'

A constant which can be used with the lifecycle_state property of a AutonomousDatabase. This constant has a value of "UNAVAILABLE"

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a AutonomousDatabase. This constant has a value of "UPDATING"

__init__(**kwargs)

Initializes a new AutonomousDatabase 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 AutonomousDatabase.
  • compartment_id (str) -- The value to assign to the compartment_id property of this AutonomousDatabase.
  • lifecycle_state (str) -- The value to assign to the lifecycle_state property of this AutonomousDatabase. Allowed values for this property are: "PROVISIONING", "AVAILABLE", "STOPPING", "STOPPED", "STARTING", "TERMINATING", "TERMINATED", "UNAVAILABLE", "RESTORE_IN_PROGRESS", "RESTORE_FAILED", "BACKUP_IN_PROGRESS", "SCALE_IN_PROGRESS", "AVAILABLE_NEEDS_ATTENTION", "UPDATING", "MAINTENANCE_IN_PROGRESS", '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 AutonomousDatabase.
  • db_name (str) -- The value to assign to the db_name property of this AutonomousDatabase.
  • is_free_tier (bool) -- The value to assign to the is_free_tier property of this AutonomousDatabase.
  • system_tags (dict(str, dict(str, object))) -- The value to assign to the system_tags property of this AutonomousDatabase.
  • time_reclamation_of_free_autonomous_database (datetime) -- The value to assign to the time_reclamation_of_free_autonomous_database property of this AutonomousDatabase.
  • time_deletion_of_free_autonomous_database (datetime) -- The value to assign to the time_deletion_of_free_autonomous_database property of this AutonomousDatabase.
  • cpu_core_count (int) -- The value to assign to the cpu_core_count property of this AutonomousDatabase.
  • data_storage_size_in_tbs (int) -- The value to assign to the data_storage_size_in_tbs property of this AutonomousDatabase.
  • is_dedicated (bool) -- The value to assign to the is_dedicated property of this AutonomousDatabase.
  • autonomous_container_database_id (str) -- The value to assign to the autonomous_container_database_id property of this AutonomousDatabase.
  • time_created (datetime) -- The value to assign to the time_created property of this AutonomousDatabase.
  • display_name (str) -- The value to assign to the display_name property of this AutonomousDatabase.
  • service_console_url (str) -- The value to assign to the service_console_url property of this AutonomousDatabase.
  • connection_strings (AutonomousDatabaseConnectionStrings) -- The value to assign to the connection_strings property of this AutonomousDatabase.
  • connection_urls (AutonomousDatabaseConnectionUrls) -- The value to assign to the connection_urls property of this AutonomousDatabase.
  • license_model (str) -- The value to assign to the license_model property of this AutonomousDatabase. Allowed values for this property are: "LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • used_data_storage_size_in_tbs (int) -- The value to assign to the used_data_storage_size_in_tbs property of this AutonomousDatabase.
  • freeform_tags (dict(str, str)) -- The value to assign to the freeform_tags property of this AutonomousDatabase.
  • defined_tags (dict(str, dict(str, object))) -- The value to assign to the defined_tags property of this AutonomousDatabase.
  • db_version (str) -- The value to assign to the db_version property of this AutonomousDatabase.
  • is_preview (bool) -- The value to assign to the is_preview property of this AutonomousDatabase.
  • db_workload (str) -- The value to assign to the db_workload property of this AutonomousDatabase. Allowed values for this property are: "OLTP", "DW", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • whitelisted_ips (list[str]) -- The value to assign to the whitelisted_ips property of this AutonomousDatabase.
  • is_auto_scaling_enabled (bool) -- The value to assign to the is_auto_scaling_enabled property of this AutonomousDatabase.
autonomous_container_database_id

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

Returns:The autonomous_container_database_id of this AutonomousDatabase.
Return type:str
compartment_id

[Required] Gets the compartment_id of this AutonomousDatabase. The OCID of the compartment.

Returns:The compartment_id of this AutonomousDatabase.
Return type:str
connection_strings

Gets the connection_strings of this AutonomousDatabase. The connection string used to connect to the Autonomous Database. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Database for the password value.

Returns:The connection_strings of this AutonomousDatabase.
Return type:AutonomousDatabaseConnectionStrings
connection_urls

Gets the connection_urls of this AutonomousDatabase.

Returns:The connection_urls of this AutonomousDatabase.
Return type:AutonomousDatabaseConnectionUrls
cpu_core_count

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

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

[Required] Gets the data_storage_size_in_tbs of this AutonomousDatabase. The quantity of data in the database, in terabytes.

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

[Required] Gets the db_name of this AutonomousDatabase. The database name.

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

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

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

Gets the db_workload of this AutonomousDatabase. The Autonomous Database workload type. OLTP indicates an Autonomous Transaction Processing database and DW indicates an Autonomous Data Warehouse database.

Allowed values for this property are: "OLTP", "DW", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

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

Gets the defined_tags of this AutonomousDatabase. 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 AutonomousDatabase.
Return type:dict(str, dict(str, object))
display_name

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

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

Gets the freeform_tags of this AutonomousDatabase. 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 AutonomousDatabase.
Return type:dict(str, str)
id

[Required] Gets the id of this AutonomousDatabase. The OCID of the Autonomous Database.

Returns:The id of this AutonomousDatabase.
Return type:str
is_auto_scaling_enabled

Gets the is_auto_scaling_enabled of this AutonomousDatabase. Indicates if auto scaling is enabled for the Autonomous Database CPU core count. Note that auto scaling is available for serverless deployments only.

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

Gets the is_dedicated of this AutonomousDatabase. True if the database uses the dedicated deployment option.

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

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

Returns:The is_free_tier of this AutonomousDatabase.
Return type:bool
is_preview

Gets the is_preview of this AutonomousDatabase. Indicates if the Autonomous Database version is a preview version.

Returns:The is_preview of this AutonomousDatabase.
Return type:bool
license_model

Gets the license_model of this AutonomousDatabase. The Oracle license model that applies to the Oracle Autonomous Database. The default for Autonomous Database using the shared deployment] is BRING_YOUR_OWN_LICENSE. Note that when provisioning an Autonomous Database using the [dedicated deployment option, this attribute must be null because the attribute is already set on Autonomous Exadata Infrastructure level.

Allowed values for this property are: "LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The license_model of this AutonomousDatabase.
Return type:str
lifecycle_details

Gets the lifecycle_details of this AutonomousDatabase. Information about the current lifecycle state.

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

[Required] Gets the lifecycle_state of this AutonomousDatabase. The current state of the database.

Allowed values for this property are: "PROVISIONING", "AVAILABLE", "STOPPING", "STOPPED", "STARTING", "TERMINATING", "TERMINATED", "UNAVAILABLE", "RESTORE_IN_PROGRESS", "RESTORE_FAILED", "BACKUP_IN_PROGRESS", "SCALE_IN_PROGRESS", "AVAILABLE_NEEDS_ATTENTION", "UPDATING", "MAINTENANCE_IN_PROGRESS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The lifecycle_state of this AutonomousDatabase.
Return type:str
service_console_url

Gets the service_console_url of this AutonomousDatabase. The URL of the Service Console for the Autonomous Database.

Returns:The service_console_url of this AutonomousDatabase.
Return type:str
system_tags

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

Returns:The system_tags of this AutonomousDatabase.
Return type:dict(str, dict(str, object))
time_created

Gets the time_created of this AutonomousDatabase. The date and time the database was created.

Returns:The time_created of this AutonomousDatabase.
Return type:datetime
time_deletion_of_free_autonomous_database

Gets the time_deletion_of_free_autonomous_database of this AutonomousDatabase. The date and time the Always Free database will be automatically deleted because of inactivity. If the database is in the STOPPED state and without activity until this time, it will be deleted.

Returns:The time_deletion_of_free_autonomous_database of this AutonomousDatabase.
Return type:datetime
time_reclamation_of_free_autonomous_database

Gets the time_reclamation_of_free_autonomous_database of this AutonomousDatabase. The date and time the Always Free database will be stopped because of inactivity. If this time is reached without any database activity, the database will automatically be put into the STOPPED state.

Returns:The time_reclamation_of_free_autonomous_database of this AutonomousDatabase.
Return type:datetime
used_data_storage_size_in_tbs

Gets the used_data_storage_size_in_tbs of this AutonomousDatabase. The amount of storage that has been used, in terabytes.

Returns:The used_data_storage_size_in_tbs of this AutonomousDatabase.
Return type:int
whitelisted_ips

Gets the whitelisted_ips of this AutonomousDatabase. The client IP access control list (ACL). This feature is available for serverless deployments 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.

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