CreateAutonomousDatabaseDetails

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

Bases: oci.database.models.create_autonomous_database_base.CreateAutonomousDatabaseBase

Details to create an Oracle Autonomous Database.

Attributes

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_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.
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_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.
source Gets the source of this CreateAutonomousDatabaseBase.
whitelisted_ips Gets the whitelisted_ips of this CreateAutonomousDatabaseBase.

Methods

__init__(**kwargs) Initializes a new CreateAutonomousDatabaseDetails 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.
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_DATABASE = 'DATABASE'
SOURCE_NONE = 'NONE'
__init__(**kwargs)

Initializes a new CreateAutonomousDatabaseDetails object with values from keyword arguments. The default value of the source attribute of this class is NONE 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 CreateAutonomousDatabaseDetails.
  • db_name (str) – The value to assign to the db_name property of this CreateAutonomousDatabaseDetails.
  • cpu_core_count (int) – The value to assign to the cpu_core_count property of this CreateAutonomousDatabaseDetails.
  • db_workload (str) – The value to assign to the db_workload property of this CreateAutonomousDatabaseDetails. 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 CreateAutonomousDatabaseDetails.
  • is_free_tier (bool) – The value to assign to the is_free_tier property of this CreateAutonomousDatabaseDetails.
  • admin_password (str) – The value to assign to the admin_password property of this CreateAutonomousDatabaseDetails.
  • display_name (str) – The value to assign to the display_name property of this CreateAutonomousDatabaseDetails.
  • license_model (str) – The value to assign to the license_model property of this CreateAutonomousDatabaseDetails. 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 CreateAutonomousDatabaseDetails.
  • is_auto_scaling_enabled (bool) – The value to assign to the is_auto_scaling_enabled property of this CreateAutonomousDatabaseDetails.
  • is_dedicated (bool) – The value to assign to the is_dedicated property of this CreateAutonomousDatabaseDetails.
  • autonomous_container_database_id (str) – The value to assign to the autonomous_container_database_id property of this CreateAutonomousDatabaseDetails.
  • whitelisted_ips (list[str]) – The value to assign to the whitelisted_ips property of this CreateAutonomousDatabaseDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateAutonomousDatabaseDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateAutonomousDatabaseDetails.
  • source (str) – The value to assign to the source property of this CreateAutonomousDatabaseDetails. Allowed values for this property are: “NONE”, “DATABASE”
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
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_workload

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

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 serverless deployments 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 uses the dedicated deployment option.

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 serverless deployments.

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 using the dedicated deployment option, this attribute must be null because the attribute is already set at the Autonomous Exadata Infrastructure level. When using the serverless deployment option, 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
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.

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

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

Gets the whitelisted_ips of this CreateAutonomousDatabaseBase. 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 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]