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

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.
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.
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_free_tier Gets the is_free_tier of this UpdateAutonomousDatabaseDetails.
license_model Gets the license_model of this UpdateAutonomousDatabaseDetails.
nsg_ids Gets the nsg_ids 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.
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”

__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.
  • nsg_ids (list[str]) – The value to assign to the nsg_ids property of this UpdateAutonomousDatabaseDetails.
  • 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.
  • db_version (str) – The value to assign to the db_version 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
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.

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_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
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]
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 delete all the existing white listed IP’s, use an array with a single empty string entry. 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”]

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