UpdateAutonomousDatabaseDetails

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

Bases: object

Details to update an Oracle Autonomous Database.

Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.

Attributes

DB_WORKLOAD_AJD A constant which can be used with the db_workload property of a UpdateAutonomousDatabaseDetails.
DB_WORKLOAD_DW A constant which can be used with the db_workload property of a UpdateAutonomousDatabaseDetails.
DB_WORKLOAD_OLTP A constant which can be used with the db_workload property of a UpdateAutonomousDatabaseDetails.
LICENSE_MODEL_BRING_YOUR_OWN_LICENSE A constant which can be used with the license_model property of a UpdateAutonomousDatabaseDetails.
LICENSE_MODEL_LICENSE_INCLUDED A constant which can be used with the license_model property of a UpdateAutonomousDatabaseDetails.
OPEN_MODE_READ_ONLY A constant which can be used with the open_mode property of a UpdateAutonomousDatabaseDetails.
OPEN_MODE_READ_WRITE A constant which can be used with the open_mode property of a UpdateAutonomousDatabaseDetails.
PERMISSION_LEVEL_RESTRICTED A constant which can be used with the permission_level property of a UpdateAutonomousDatabaseDetails.
PERMISSION_LEVEL_UNRESTRICTED A constant which can be used with the permission_level property of a UpdateAutonomousDatabaseDetails.
REFRESHABLE_MODE_AUTOMATIC A constant which can be used with the refreshable_mode property of a UpdateAutonomousDatabaseDetails.
REFRESHABLE_MODE_MANUAL A constant which can be used with the refreshable_mode property of a UpdateAutonomousDatabaseDetails.
admin_password Gets the admin_password of this UpdateAutonomousDatabaseDetails.
cpu_core_count Gets the cpu_core_count of this UpdateAutonomousDatabaseDetails.
data_storage_size_in_tbs Gets the data_storage_size_in_tbs of this UpdateAutonomousDatabaseDetails.
db_name Gets the db_name of this UpdateAutonomousDatabaseDetails.
db_version Gets the db_version of this UpdateAutonomousDatabaseDetails.
db_workload Gets the db_workload of this UpdateAutonomousDatabaseDetails.
defined_tags Gets the defined_tags of this UpdateAutonomousDatabaseDetails.
display_name Gets the display_name of this UpdateAutonomousDatabaseDetails.
freeform_tags Gets the freeform_tags of this UpdateAutonomousDatabaseDetails.
is_auto_scaling_enabled Gets the is_auto_scaling_enabled of this UpdateAutonomousDatabaseDetails.
is_data_guard_enabled Gets the is_data_guard_enabled of this UpdateAutonomousDatabaseDetails.
is_free_tier Gets the is_free_tier of this UpdateAutonomousDatabaseDetails.
is_refreshable_clone Gets the is_refreshable_clone of this UpdateAutonomousDatabaseDetails.
license_model Gets the license_model of this UpdateAutonomousDatabaseDetails.
nsg_ids Gets the nsg_ids of this UpdateAutonomousDatabaseDetails.
open_mode Gets the open_mode of this UpdateAutonomousDatabaseDetails.
permission_level Gets the permission_level of this UpdateAutonomousDatabaseDetails.
private_endpoint_label Gets the private_endpoint_label of this UpdateAutonomousDatabaseDetails.
refreshable_mode Gets the refreshable_mode of this UpdateAutonomousDatabaseDetails.
subnet_id Gets the subnet_id of this UpdateAutonomousDatabaseDetails.
whitelisted_ips Gets the whitelisted_ips of this UpdateAutonomousDatabaseDetails.

Methods

__init__(**kwargs) Initializes a new UpdateAutonomousDatabaseDetails object with values from keyword arguments.
DB_WORKLOAD_AJD = 'AJD'

A constant which can be used with the db_workload property of a UpdateAutonomousDatabaseDetails. This constant has a value of “AJD”

DB_WORKLOAD_DW = 'DW'

A constant which can be used with the db_workload property of a UpdateAutonomousDatabaseDetails. This constant has a value of “DW”

DB_WORKLOAD_OLTP = 'OLTP'

A constant which can be used with the db_workload property of a UpdateAutonomousDatabaseDetails. 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 UpdateAutonomousDatabaseDetails. 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 UpdateAutonomousDatabaseDetails. This constant has a value of “LICENSE_INCLUDED”

OPEN_MODE_READ_ONLY = 'READ_ONLY'

A constant which can be used with the open_mode property of a UpdateAutonomousDatabaseDetails. This constant has a value of “READ_ONLY”

OPEN_MODE_READ_WRITE = 'READ_WRITE'

A constant which can be used with the open_mode property of a UpdateAutonomousDatabaseDetails. This constant has a value of “READ_WRITE”

PERMISSION_LEVEL_RESTRICTED = 'RESTRICTED'

A constant which can be used with the permission_level property of a UpdateAutonomousDatabaseDetails. This constant has a value of “RESTRICTED”

PERMISSION_LEVEL_UNRESTRICTED = 'UNRESTRICTED'

A constant which can be used with the permission_level property of a UpdateAutonomousDatabaseDetails. This constant has a value of “UNRESTRICTED”

REFRESHABLE_MODE_AUTOMATIC = 'AUTOMATIC'

A constant which can be used with the refreshable_mode property of a UpdateAutonomousDatabaseDetails. This constant has a value of “AUTOMATIC”

REFRESHABLE_MODE_MANUAL = 'MANUAL'

A constant which can be used with the refreshable_mode property of a UpdateAutonomousDatabaseDetails. This constant has a value of “MANUAL”

__init__(**kwargs)

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

Parameters:
  • cpu_core_count (int) – The value to assign to the cpu_core_count property of this UpdateAutonomousDatabaseDetails.
  • data_storage_size_in_tbs (int) – The value to assign to the data_storage_size_in_tbs property of this UpdateAutonomousDatabaseDetails.
  • display_name (str) – The value to assign to the display_name property of this UpdateAutonomousDatabaseDetails.
  • is_free_tier (bool) – The value to assign to the is_free_tier property of this UpdateAutonomousDatabaseDetails.
  • admin_password (str) – The value to assign to the admin_password property of this UpdateAutonomousDatabaseDetails.
  • db_name (str) – The value to assign to the db_name property of this UpdateAutonomousDatabaseDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this UpdateAutonomousDatabaseDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this UpdateAutonomousDatabaseDetails.
  • db_workload (str) – The value to assign to the db_workload property of this UpdateAutonomousDatabaseDetails. Allowed values for this property are: “OLTP”, “DW”, “AJD”
  • license_model (str) – The value to assign to the license_model property of this UpdateAutonomousDatabaseDetails. Allowed values for this property are: “LICENSE_INCLUDED”, “BRING_YOUR_OWN_LICENSE”
  • whitelisted_ips (list[str]) – The value to assign to the whitelisted_ips property of this UpdateAutonomousDatabaseDetails.
  • is_auto_scaling_enabled (bool) – The value to assign to the is_auto_scaling_enabled property of this UpdateAutonomousDatabaseDetails.
  • is_refreshable_clone (bool) – The value to assign to the is_refreshable_clone property of this UpdateAutonomousDatabaseDetails.
  • refreshable_mode (str) – The value to assign to the refreshable_mode property of this UpdateAutonomousDatabaseDetails. Allowed values for this property are: “AUTOMATIC”, “MANUAL”
  • is_data_guard_enabled (bool) – The value to assign to the is_data_guard_enabled property of this UpdateAutonomousDatabaseDetails.
  • db_version (str) – The value to assign to the db_version property of this UpdateAutonomousDatabaseDetails.
  • open_mode (str) – The value to assign to the open_mode property of this UpdateAutonomousDatabaseDetails. Allowed values for this property are: “READ_ONLY”, “READ_WRITE”
  • permission_level (str) – The value to assign to the permission_level property of this UpdateAutonomousDatabaseDetails. Allowed values for this property are: “RESTRICTED”, “UNRESTRICTED”
  • subnet_id (str) – The value to assign to the subnet_id property of this UpdateAutonomousDatabaseDetails.
  • private_endpoint_label (str) – The value to assign to the private_endpoint_label property of this UpdateAutonomousDatabaseDetails.
  • nsg_ids (list[str]) – The value to assign to the nsg_ids property of this UpdateAutonomousDatabaseDetails.
admin_password

Gets the admin_password of this UpdateAutonomousDatabaseDetails. 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. It must be different from the last four passwords and it must not be a password used within the last 24 hours.

Returns:The admin_password of this UpdateAutonomousDatabaseDetails.
Return type:str
cpu_core_count

Gets the cpu_core_count of this UpdateAutonomousDatabaseDetails. The number of CPU cores to be made available to the database.

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

Gets the data_storage_size_in_tbs of this UpdateAutonomousDatabaseDetails. The size, in terabytes, of the data volume that will be attached to the database.

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

Gets the db_name of this UpdateAutonomousDatabaseDetails. New name for this Autonomous Database. For databases using dedicated Exadata infrastructure, the name must begin with an alphabetic character, and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. For databases using shared Exadata infrastructure, 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 UpdateAutonomousDatabaseDetails.
Return type:str
db_version

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

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

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

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

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

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

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

Gets the display_name of this UpdateAutonomousDatabaseDetails. The user-friendly name for the Autonomous Database. The name does not have to be unique. Can only be updated for Autonomous Databases using dedicated Exadata infrastructure.

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

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

Gets the is_auto_scaling_enabled of this UpdateAutonomousDatabaseDetails. Indicates whether to enable or disable auto scaling for the Autonomous Database OCPU core count. Setting to true enables auto scaling. Setting to false disables auto scaling. The default value is true. Auto scaling is available for databases on shared Exadata infrastructure only.

Returns:The is_auto_scaling_enabled of this UpdateAutonomousDatabaseDetails.
Return type:bool
is_data_guard_enabled

Gets the is_data_guard_enabled of this UpdateAutonomousDatabaseDetails. Indicates whether the Autonomous Database has Data Guard enabled.

Returns:The is_data_guard_enabled of this UpdateAutonomousDatabaseDetails.
Return type:bool
is_free_tier

Gets the is_free_tier of this UpdateAutonomousDatabaseDetails. 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 UpdateAutonomousDatabaseDetails.
Return type:bool
is_refreshable_clone

Gets the is_refreshable_clone of this UpdateAutonomousDatabaseDetails. Indicates whether the Autonomous Database is a refreshable clone.

Returns:The is_refreshable_clone of this UpdateAutonomousDatabaseDetails.
Return type:bool
license_model

Gets the license_model of this UpdateAutonomousDatabaseDetails. 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 UpdateAutonomousDatabaseDetails.
Return type:str
nsg_ids

Gets the nsg_ids of this UpdateAutonomousDatabaseDetails. 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 UpdateAutonomousDatabaseDetails.
Return type:list[str]
open_mode

Gets the open_mode of this UpdateAutonomousDatabaseDetails. The DATABASE OPEN mode. You can open the database in READ_ONLY or READ_WRITE mode.

Allowed values for this property are: “READ_ONLY”, “READ_WRITE”

Returns:The open_mode of this UpdateAutonomousDatabaseDetails.
Return type:str
permission_level

Gets the permission_level of this UpdateAutonomousDatabaseDetails. The Autonomous Database permission level. Restricted mode allows access only to admin users.

Allowed values for this property are: “RESTRICTED”, “UNRESTRICTED”

Returns:The permission_level of this UpdateAutonomousDatabaseDetails.
Return type:str
private_endpoint_label

Gets the private_endpoint_label of this UpdateAutonomousDatabaseDetails. The private endpoint label for the resource. Setting this to an empty string, after the private endpoint database gets created, will change the same private endpoint database to the public endpoint database.

Returns:The private_endpoint_label of this UpdateAutonomousDatabaseDetails.
Return type:str
refreshable_mode

Gets the refreshable_mode of this UpdateAutonomousDatabaseDetails. The refresh mode of the clone. AUTOMATIC indicates that the clone is automatically being refreshed with data from the source Autonomous Database.

Allowed values for this property are: “AUTOMATIC”, “MANUAL”

Returns:The refreshable_mode of this UpdateAutonomousDatabaseDetails.
Return type:str
subnet_id

Gets the subnet_id of this UpdateAutonomousDatabaseDetails. 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 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 UpdateAutonomousDatabaseDetails.
Return type:str
whitelisted_ips

Gets the whitelisted_ips of this UpdateAutonomousDatabaseDetails. 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. For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. Example: [“1.1.1.1”,”1.1.1.0/24”,”ocid1.vcn.oc1.sea.<unique_id>”,”ocid1.vcn.oc1.sea.<unique_id1>;1.1.1.1”,”ocid1.vcn.oc1.sea.<unique_id2>;1.1.0.0/16”]

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