oracle.oci.oci_database_autonomous_database (2.38.0) — module

Manage an AutonomousDatabase resource in Oracle Cloud Infrastructure

| "added in version" 2.9.0 of oracle.oci"

Authors: Oracle (@oracle)

preview | supported by community

Install collection

Install with ansible-galaxy collection install oracle.oci:==2.38.0


Add to requirements.yml

  collections:
    - name: oracle.oci
      version: 2.38.0

Description

This module allows the user to create, update and delete an AutonomousDatabase resource in Oracle Cloud Infrastructure

For I(state=present), creates a new Autonomous Database.

This resource has the following action operations in the M(oracle.oci.oci_database_autonomous_database_actions) module: autonomous_database_manual_refresh, change_compartment, configure_autonomous_database_vault_key, deregister_autonomous_database_data_safe, disable_autonomous_database_operations_insights, enable_autonomous_database_operations_insights, fail_over, generate_autonomous_database_wallet, register_autonomous_database_data_safe, restart, restore, rotate_autonomous_database_encryption_key, start, stop, switchover.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create autonomous_database with source = DATABASE
  oci_database_autonomous_database:
    # required
    compartment_id: "ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx"
    db_name: db_name_example
    source: DATABASE
    source_id: "ocid1.source.oc1..xxxxxxEXAMPLExxxxxx"
    clone_type: FULL

    # optional
    cpu_core_count: 56
    ocpu_count: 3.4
    db_workload: OLTP
    data_storage_size_in_tbs: 56
    data_storage_size_in_gbs: 56
    is_free_tier: true
    kms_key_id: "ocid1.kmskey.oc1..xxxxxxEXAMPLExxxxxx"
    vault_id: "ocid1.vault.oc1..xxxxxxEXAMPLExxxxxx"
    admin_password: example-password
    display_name: display_name_example
    license_model: LICENSE_INCLUDED
    is_preview_version_with_service_terms_accepted: true
    is_auto_scaling_enabled: true
    is_dedicated: true
    autonomous_container_database_id: "ocid1.autonomouscontainerdatabase.oc1..xxxxxxEXAMPLExxxxxx"
    is_access_control_enabled: true
    whitelisted_ips: [ "whitelisted_ips_example" ]
    are_primary_whitelisted_ips_used: true
    standby_whitelisted_ips: [ "standby_whitelisted_ips_example" ]
    is_data_guard_enabled: true
    subnet_id: "ocid1.subnet.oc1..xxxxxxEXAMPLExxxxxx"
    nsg_ids: [ "nsg_ids_example" ]
    private_endpoint_label: private_endpoint_label_example
    freeform_tags: {'Department': 'Finance'}
    defined_tags: {'Operations': {'CostCenter': 'US'}}
    db_version: db_version_example
    customer_contacts:
    - # optional
      email: email_example
    is_mtls_connection_required: true
    autonomous_maintenance_schedule_type: EARLY
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create autonomous_database with source = CLONE_TO_REFRESHABLE
  oci_database_autonomous_database:
    # required
    compartment_id: "ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx"
    db_name: db_name_example
    source: CLONE_TO_REFRESHABLE
    source_id: "ocid1.source.oc1..xxxxxxEXAMPLExxxxxx"

    # optional
    cpu_core_count: 56
    ocpu_count: 3.4
    db_workload: OLTP
    data_storage_size_in_tbs: 56
    data_storage_size_in_gbs: 56
    is_free_tier: true
    kms_key_id: "ocid1.kmskey.oc1..xxxxxxEXAMPLExxxxxx"
    vault_id: "ocid1.vault.oc1..xxxxxxEXAMPLExxxxxx"
    admin_password: example-password
    display_name: display_name_example
    license_model: LICENSE_INCLUDED
    is_preview_version_with_service_terms_accepted: true
    is_auto_scaling_enabled: true
    is_dedicated: true
    autonomous_container_database_id: "ocid1.autonomouscontainerdatabase.oc1..xxxxxxEXAMPLExxxxxx"
    is_access_control_enabled: true
    whitelisted_ips: [ "whitelisted_ips_example" ]
    are_primary_whitelisted_ips_used: true
    standby_whitelisted_ips: [ "standby_whitelisted_ips_example" ]
    is_data_guard_enabled: true
    subnet_id: "ocid1.subnet.oc1..xxxxxxEXAMPLExxxxxx"
    nsg_ids: [ "nsg_ids_example" ]
    private_endpoint_label: private_endpoint_label_example
    freeform_tags: {'Department': 'Finance'}
    defined_tags: {'Operations': {'CostCenter': 'US'}}
    db_version: db_version_example
    customer_contacts:
    - # optional
      email: email_example
    is_mtls_connection_required: true
    autonomous_maintenance_schedule_type: EARLY
    refreshable_mode: AUTOMATIC
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create autonomous_database with source = BACKUP_FROM_ID
  oci_database_autonomous_database:
    # required
    compartment_id: "ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx"
    db_name: db_name_example
    source: BACKUP_FROM_ID
    clone_type: FULL
    autonomous_database_backup_id: "ocid1.autonomousdatabasebackup.oc1..xxxxxxEXAMPLExxxxxx"

    # optional
    cpu_core_count: 56
    ocpu_count: 3.4
    db_workload: OLTP
    data_storage_size_in_tbs: 56
    data_storage_size_in_gbs: 56
    is_free_tier: true
    kms_key_id: "ocid1.kmskey.oc1..xxxxxxEXAMPLExxxxxx"
    vault_id: "ocid1.vault.oc1..xxxxxxEXAMPLExxxxxx"
    admin_password: example-password
    display_name: display_name_example
    license_model: LICENSE_INCLUDED
    is_preview_version_with_service_terms_accepted: true
    is_auto_scaling_enabled: true
    is_dedicated: true
    autonomous_container_database_id: "ocid1.autonomouscontainerdatabase.oc1..xxxxxxEXAMPLExxxxxx"
    is_access_control_enabled: true
    whitelisted_ips: [ "whitelisted_ips_example" ]
    are_primary_whitelisted_ips_used: true
    standby_whitelisted_ips: [ "standby_whitelisted_ips_example" ]
    is_data_guard_enabled: true
    subnet_id: "ocid1.subnet.oc1..xxxxxxEXAMPLExxxxxx"
    nsg_ids: [ "nsg_ids_example" ]
    private_endpoint_label: private_endpoint_label_example
    freeform_tags: {'Department': 'Finance'}
    defined_tags: {'Operations': {'CostCenter': 'US'}}
    db_version: db_version_example
    customer_contacts:
    - # optional
      email: email_example
    is_mtls_connection_required: true
    autonomous_maintenance_schedule_type: EARLY
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create autonomous_database with source = BACKUP_FROM_TIMESTAMP
  oci_database_autonomous_database:
    # required
    compartment_id: "ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx"
    db_name: db_name_example
    source: BACKUP_FROM_TIMESTAMP
    clone_type: FULL
    autonomous_database_id: "ocid1.autonomousdatabase.oc1..xxxxxxEXAMPLExxxxxx"
    timestamp: timestamp_example

    # optional
    cpu_core_count: 56
    ocpu_count: 3.4
    db_workload: OLTP
    data_storage_size_in_tbs: 56
    data_storage_size_in_gbs: 56
    is_free_tier: true
    kms_key_id: "ocid1.kmskey.oc1..xxxxxxEXAMPLExxxxxx"
    vault_id: "ocid1.vault.oc1..xxxxxxEXAMPLExxxxxx"
    admin_password: example-password
    display_name: display_name_example
    license_model: LICENSE_INCLUDED
    is_preview_version_with_service_terms_accepted: true
    is_auto_scaling_enabled: true
    is_dedicated: true
    autonomous_container_database_id: "ocid1.autonomouscontainerdatabase.oc1..xxxxxxEXAMPLExxxxxx"
    is_access_control_enabled: true
    whitelisted_ips: [ "whitelisted_ips_example" ]
    are_primary_whitelisted_ips_used: true
    standby_whitelisted_ips: [ "standby_whitelisted_ips_example" ]
    is_data_guard_enabled: true
    subnet_id: "ocid1.subnet.oc1..xxxxxxEXAMPLExxxxxx"
    nsg_ids: [ "nsg_ids_example" ]
    private_endpoint_label: private_endpoint_label_example
    freeform_tags: {'Department': 'Finance'}
    defined_tags: {'Operations': {'CostCenter': 'US'}}
    db_version: db_version_example
    customer_contacts:
    - # optional
      email: email_example
    is_mtls_connection_required: true
    autonomous_maintenance_schedule_type: EARLY
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create autonomous_database with source = CROSS_REGION_DATAGUARD
  oci_database_autonomous_database:
    # required
    compartment_id: "ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx"
    db_name: db_name_example
    source: CROSS_REGION_DATAGUARD
    source_id: "ocid1.source.oc1..xxxxxxEXAMPLExxxxxx"

    # optional
    cpu_core_count: 56
    ocpu_count: 3.4
    db_workload: OLTP
    data_storage_size_in_tbs: 56
    data_storage_size_in_gbs: 56
    is_free_tier: true
    kms_key_id: "ocid1.kmskey.oc1..xxxxxxEXAMPLExxxxxx"
    vault_id: "ocid1.vault.oc1..xxxxxxEXAMPLExxxxxx"
    admin_password: example-password
    display_name: display_name_example
    license_model: LICENSE_INCLUDED
    is_preview_version_with_service_terms_accepted: true
    is_auto_scaling_enabled: true
    is_dedicated: true
    autonomous_container_database_id: "ocid1.autonomouscontainerdatabase.oc1..xxxxxxEXAMPLExxxxxx"
    is_access_control_enabled: true
    whitelisted_ips: [ "whitelisted_ips_example" ]
    are_primary_whitelisted_ips_used: true
    standby_whitelisted_ips: [ "standby_whitelisted_ips_example" ]
    is_data_guard_enabled: true
    subnet_id: "ocid1.subnet.oc1..xxxxxxEXAMPLExxxxxx"
    nsg_ids: [ "nsg_ids_example" ]
    private_endpoint_label: private_endpoint_label_example
    freeform_tags: {'Department': 'Finance'}
    defined_tags: {'Operations': {'CostCenter': 'US'}}
    db_version: db_version_example
    customer_contacts:
    - # optional
      email: email_example
    is_mtls_connection_required: true
    autonomous_maintenance_schedule_type: EARLY
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create autonomous_database with source = NONE
  oci_database_autonomous_database:
    # required
    compartment_id: "ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx"
    db_name: db_name_example

    # optional
    cpu_core_count: 56
    ocpu_count: 3.4
    db_workload: OLTP
    data_storage_size_in_tbs: 56
    data_storage_size_in_gbs: 56
    is_free_tier: true
    kms_key_id: "ocid1.kmskey.oc1..xxxxxxEXAMPLExxxxxx"
    vault_id: "ocid1.vault.oc1..xxxxxxEXAMPLExxxxxx"
    admin_password: example-password
    display_name: display_name_example
    license_model: LICENSE_INCLUDED
    is_preview_version_with_service_terms_accepted: true
    is_auto_scaling_enabled: true
    is_dedicated: true
    autonomous_container_database_id: "ocid1.autonomouscontainerdatabase.oc1..xxxxxxEXAMPLExxxxxx"
    is_access_control_enabled: true
    whitelisted_ips: [ "whitelisted_ips_example" ]
    are_primary_whitelisted_ips_used: true
    standby_whitelisted_ips: [ "standby_whitelisted_ips_example" ]
    is_data_guard_enabled: true
    subnet_id: "ocid1.subnet.oc1..xxxxxxEXAMPLExxxxxx"
    nsg_ids: [ "nsg_ids_example" ]
    private_endpoint_label: private_endpoint_label_example
    freeform_tags: {'Department': 'Finance'}
    defined_tags: {'Operations': {'CostCenter': 'US'}}
    db_version: db_version_example
    source: NONE
    customer_contacts:
    - # optional
      email: email_example
    is_mtls_connection_required: true
    autonomous_maintenance_schedule_type: EARLY
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Update autonomous_database
  oci_database_autonomous_database:
    # required
    autonomous_database_id: "ocid1.autonomousdatabase.oc1..xxxxxxEXAMPLExxxxxx"

    # optional
    db_name: db_name_example
    cpu_core_count: 56
    ocpu_count: 3.4
    db_workload: OLTP
    data_storage_size_in_tbs: 56
    data_storage_size_in_gbs: 56
    is_free_tier: true
    admin_password: example-password
    display_name: display_name_example
    license_model: LICENSE_INCLUDED
    is_auto_scaling_enabled: true
    is_access_control_enabled: true
    whitelisted_ips: [ "whitelisted_ips_example" ]
    are_primary_whitelisted_ips_used: true
    standby_whitelisted_ips: [ "standby_whitelisted_ips_example" ]
    is_data_guard_enabled: true
    subnet_id: "ocid1.subnet.oc1..xxxxxxEXAMPLExxxxxx"
    nsg_ids: [ "nsg_ids_example" ]
    private_endpoint_label: private_endpoint_label_example
    freeform_tags: {'Department': 'Finance'}
    defined_tags: {'Operations': {'CostCenter': 'US'}}
    db_version: db_version_example
    customer_contacts:
    - # optional
      email: email_example
    is_mtls_connection_required: true
    refreshable_mode: AUTOMATIC
    is_refreshable_clone: true
    peer_db_id: "ocid1.peerdb.oc1..xxxxxxEXAMPLExxxxxx"
    open_mode: READ_ONLY
    permission_level: RESTRICTED
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Update autonomous_database using name (when environment variable OCI_USE_NAME_AS_IDENTIFIER is set)
  oci_database_autonomous_database:
    # required
    compartment_id: "ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx"
    display_name: display_name_example

    # optional
    db_name: db_name_example
    cpu_core_count: 56
    ocpu_count: 3.4
    db_workload: OLTP
    data_storage_size_in_tbs: 56
    data_storage_size_in_gbs: 56
    is_free_tier: true
    admin_password: example-password
    license_model: LICENSE_INCLUDED
    is_auto_scaling_enabled: true
    is_access_control_enabled: true
    whitelisted_ips: [ "whitelisted_ips_example" ]
    are_primary_whitelisted_ips_used: true
    standby_whitelisted_ips: [ "standby_whitelisted_ips_example" ]
    is_data_guard_enabled: true
    subnet_id: "ocid1.subnet.oc1..xxxxxxEXAMPLExxxxxx"
    nsg_ids: [ "nsg_ids_example" ]
    private_endpoint_label: private_endpoint_label_example
    freeform_tags: {'Department': 'Finance'}
    defined_tags: {'Operations': {'CostCenter': 'US'}}
    db_version: db_version_example
    customer_contacts:
    - # optional
      email: email_example
    is_mtls_connection_required: true
    refreshable_mode: AUTOMATIC
    is_refreshable_clone: true
    peer_db_id: "ocid1.peerdb.oc1..xxxxxxEXAMPLExxxxxx"
    open_mode: READ_ONLY
    permission_level: RESTRICTED
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete autonomous_database
  oci_database_autonomous_database:
    # required
    autonomous_database_id: "ocid1.autonomousdatabase.oc1..xxxxxxEXAMPLExxxxxx"
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete autonomous_database using name (when environment variable OCI_USE_NAME_AS_IDENTIFIER is set)
  oci_database_autonomous_database:
    # required
    compartment_id: "ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx"
    display_name: display_name_example
    state: absent

Inputs

    
wait:
    default: true
    description: Whether to wait for create or delete operation to complete.
    type: bool

state:
    choices:
    - present
    - absent
    default: present
    description:
    - The state of the AutonomousDatabase.
    - Use I(state=present) to create or update an AutonomousDatabase.
    - Use I(state=absent) to delete an AutonomousDatabase.
    required: false
    type: str

key_by:
    description: The list of attributes of this resource which should be used to uniquely
      identify an instance of the resource. By default, all the attributes of a resource
      are used to uniquely identify a resource.
    elements: str
    type: list

region:
    description:
    - The Oracle Cloud Infrastructure region to use for all OCI API requests. If not set,
      then the value of the OCI_REGION variable, if any, is used. This option is required
      if the region is not specified through a configuration file (See C(config_file_location)).
      Please refer to U(https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm)
      for more information on OCI regions.
    type: str

source:
    choices:
    - DATABASE
    - CLONE_TO_REFRESHABLE
    - BACKUP_FROM_ID
    - BACKUP_FROM_TIMESTAMP
    - CROSS_REGION_DATAGUARD
    - NONE
    default: NONE
    description:
    - '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 L(shared Exadata infrastructure,https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI),
      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 L(Cloning an Autonomous Database,https://docs.cloud.oracle.com/Content/Database/Tasks/adbcloning.htm).'
    type: str

db_name:
    description:
    - 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.
    - Required for create using I(state=present).
    - This parameter is updatable.
    type: str

nsg_ids:
    description:
    - A list of the L(OCIDs,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
      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 L(Security Rules,https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm).
      **NsgIds restrictions:** - Autonomous Databases with private access require at least
      1 Network Security Group (NSG). The nsgIds array cannot be empty.
    - This parameter is updatable.
    elements: str
    type: list

tenancy:
    description:
    - OCID of your tenancy. If not set, then the value of the OCI_TENANCY variable, if
      any, is used. This option is required if the tenancy OCID is not specified through
      a configuration file (See C(config_file_location)). To get the tenancy OCID, please
      refer U(https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm)
    type: str

api_user:
    description:
    - The OCID of the user, on whose behalf, OCI APIs are invoked. If not set, then the
      value of the OCI_USER_ID environment variable, if any, is used. This option is required
      if the user is not specified through a configuration file (See C(config_file_location)).
      To get the user's OCID, please refer U(https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm).
    type: str

vault_id:
    description:
    - The L(OCID,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
      of the Oracle Cloud Infrastructure L(vault,https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts).
    type: str

auth_type:
    choices:
    - api_key
    - instance_principal
    - instance_obo_user
    - resource_principal
    default: api_key
    description:
    - The type of authentication to use for making API requests. By default C(auth_type="api_key")
      based authentication is performed and the API key (see I(api_user_key_file)) in
      your config file will be used. If this 'auth_type' module option is not specified,
      the value of the OCI_ANSIBLE_AUTH_TYPE, if any, is used. Use C(auth_type="instance_principal")
      to use instance principal based authentication when running ansible playbooks within
      an OCI compute instance.
    type: str

open_mode:
    choices:
    - READ_ONLY
    - READ_WRITE
    description:
    - The `DATABASE OPEN` mode. You can open the database in `READ_ONLY` or `READ_WRITE`
      mode.
    - This parameter is updatable.
    type: str

source_id:
    description:
    - The L(OCID,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
      of the source Autonomous Database that you will clone to create a new Autonomous
      Database.
    - Required when source is one of ['DATABASE', 'CLONE_TO_REFRESHABLE', 'CROSS_REGION_DATAGUARD']
    type: str

subnet_id:
    description:
    - The L(OCID,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
      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.
    - This parameter is updatable.
    type: str

timestamp:
    description:
    - The timestamp specified for the point-in-time clone of the source Autonomous Database.
      The timestamp must be in the past.
    - Required when source is 'BACKUP_FROM_TIMESTAMP'
    type: str

clone_type:
    choices:
    - FULL
    - METADATA
    description:
    - The Autonomous Database clone type.
    - Required when source is one of ['BACKUP_FROM_TIMESTAMP', 'DATABASE', 'BACKUP_FROM_ID']
    type: str

db_version:
    description:
    - A valid Oracle Database version for Autonomous Database.
    - This parameter is updatable.
    type: str

kms_key_id:
    description:
    - The OCID of the key container that is used as the master encryption key in database
      transparent data encryption (TDE) operations.
    type: str

ocpu_count:
    description:
    - The number of OCPU cores to be made available to the database.
    - 'The following points apply: - For Autonomous Databases on dedicated Exadata infrastructure,
      to provision less than 1 core, enter a fractional value in an increment of 0.1.
      For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that
      fractional OCPU values are not supported for Autonomous Databasese on shared Exadata
      infrastructure.) - To provision 1 or more cores, you must enter an integer between
      1 and the maximum number of cores available for the infrastructure shape. For example,
      you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to Autonomous
      Databases on both shared and dedicated Exadata infrastructure.'
    - For Autonomous Databases on dedicated Exadata infrastructure, the maximum number
      of cores is determined by the infrastructure shape. See L(Characteristics of Infrastructure
      Shapes,https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-
      GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details.
    - '**Note:** This parameter cannot be used with the `cpuCoreCount` parameter.'
    - This parameter is updatable.
    type: float

peer_db_id:
    description:
    - The L(OCID,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
      of the Autonomous Data Guard standby database located in a different (remote) region
      from the source primary Autonomous Database.
    - This parameter is updatable.
    type: str

db_workload:
    choices:
    - OLTP
    - DW
    - AJD
    - APEX
    description:
    - '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
      - APEX - indicates an Autonomous Database with the Oracle APEX Application Development
      workload type.'
    - This parameter is updatable.
    type: str

defined_tags:
    description:
    - Defined tags for this resource. Each key is predefined and scoped to a namespace.
      For more information, see L(Resource Tags,https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    - This parameter is updatable.
    type: dict

display_name:
    aliases:
    - name
    description:
    - The user-friendly name for the Autonomous Database. The name does not have to be
      unique.
    - Required for create, update, delete when environment variable C(OCI_USE_NAME_AS_IDENTIFIER)
      is set.
    - This parameter is updatable when C(OCI_USE_NAME_AS_IDENTIFIER) is not set.
    type: str

force_create:
    default: false
    description: Whether to attempt non-idempotent creation of a resource. By default,
      create resource is an idempotent operation, and doesn't create the resource if it
      already exists. Setting this option to true, forcefully creates a copy of the resource,
      even if it already exists.This option is mutually exclusive with I(key_by).
    type: bool

is_dedicated:
    description:
    - True if the database is on L(dedicated Exadata infrastructure,https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm).
    type: bool

is_free_tier:
    description:
    - 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.
    - This parameter is updatable.
    type: bool

wait_timeout:
    description: Time, in seconds, to wait when I(wait=yes). Defaults to 1200 for most
      of the services but some services might have a longer wait timeout.
    type: int

freeform_tags:
    description:
    - 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 L(Resource Tags,https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
    - 'Example: `{"Department": "Finance"}`'
    - This parameter is updatable.
    type: dict

license_model:
    choices:
    - LICENSE_INCLUDED
    - BRING_YOUR_OWN_LICENSE
    description:
    - The Oracle license model that applies to the Oracle Autonomous Database. Bring your
      own license (BYOL) allows you to apply your current on- premises Oracle software
      licenses to equivalent, highly automated Oracle PaaS and IaaS services in the cloud.
      License Included allows you to subscribe to new Oracle Database software licenses
      and the Database service. Note that when provisioning an Autonomous Database on
      L(dedicated Exadata infrastructure,https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm),
      this attribute must be null because the attribute is already set at the Autonomous
      Exadata Infrastructure level. When using L(shared Exadata infrastructure,https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI),
      if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`.
    - This parameter is updatable.
    type: str

admin_password:
    description:
    - 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.
    - This parameter is updatable.
    type: str

compartment_id:
    description:
    - The L(OCID,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
      of the compartment of the Autonomous Database.
    - Required for create using I(state=present).
    - Required for update when environment variable C(OCI_USE_NAME_AS_IDENTIFIER) is set.
    - Required for delete when environment variable C(OCI_USE_NAME_AS_IDENTIFIER) is set.
    type: str

cpu_core_count:
    description:
    - The number of OCPU cores to be made available to the database. For Autonomous Databases
      on dedicated Exadata infrastructure, the maximum number of cores is determined by
      the infrastructure shape. See L(Characteristics of Infrastructure Shapes,https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1)
      for shape details.
    - '**Note:** This parameter cannot be used with the `ocpuCount` parameter.'
    - This parameter is updatable.
    type: int

whitelisted_ips:
    description:
    - The client IP access control list (ACL). This feature is available for autonomous
      databases on L(shared Exadata infrastructure,https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI)
      and on Exadata Cloud@Customer. Only clients connecting from an IP address included
      in the ACL may access the Autonomous Database instance.
    - 'For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain
      Routing) notations for a subnet or VCN OCID. Use a semicolon (;) as a deliminator
      between the VCN-specific subnets or IPs. 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.<u
      nique_id2>;1.1.0.0/16"]` For Exadata Cloud@Customer, this is an array of IP addresses
      or CIDR (Classless Inter-Domain Routing) notations. Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]`'
    - For an update operation, if you want to delete all the IPs in the ACL, use an array
      with a single empty string entry.
    - This parameter is updatable.
    elements: str
    type: list

permission_level:
    choices:
    - RESTRICTED
    - UNRESTRICTED
    description:
    - The Autonomous Database permission level. Restricted mode allows access only to
      admin users.
    - This parameter is updatable.
    type: str

refreshable_mode:
    choices:
    - AUTOMATIC
    - MANUAL
    description:
    - The refresh mode of the clone. AUTOMATIC indicates that the clone is automatically
      being refreshed with data from the source Autonomous Database.
    - This parameter is updatable.
    - Applicable when source is 'CLONE_TO_REFRESHABLE'
    type: str

api_user_key_file:
    description:
    - Full path and filename of the private key (in PEM format). If not set, then the
      value of the OCI_USER_KEY_FILE variable, if any, is used. This option is required
      if the private key is not specified through a configuration file (See C(config_file_location)).
      If the key is encrypted with a pass-phrase, the C(api_user_key_pass_phrase) option
      must also be provided.
    type: str

customer_contacts:
    description:
    - Customer Contacts.
    - This parameter is updatable.
    elements: dict
    suboptions:
      email:
        description:
        - The email address used by Oracle to send notifications regarding databases and
          infrastructure.
        - Applicable when source is 'DATABASE'
        type: str
    type: list

config_profile_name:
    description:
    - The profile to load from the config file referenced by C(config_file_location).
      If not set, then the value of the OCI_CONFIG_PROFILE environment variable, if any,
      is used. Otherwise, defaults to the "DEFAULT" profile in C(config_file_location).
    type: str

api_user_fingerprint:
    description:
    - Fingerprint for the key pair being used. If not set, then the value of the OCI_USER_FINGERPRINT
      environment variable, if any, is used. This option is required if the key fingerprint
      is not specified through a configuration file (See C(config_file_location)). To
      get the key pair's fingerprint value please refer U(https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm).
    type: str

config_file_location:
    description:
    - Path to configuration file. If not set then the value of the OCI_CONFIG_FILE environment
      variable, if any, is used. Otherwise, defaults to ~/.oci/config.
    type: str

is_refreshable_clone:
    description:
    - Indicates whether the Autonomous Database is a refreshable clone.
    - This parameter is updatable.
    type: bool

is_data_guard_enabled:
    description:
    - Indicates whether the Autonomous Database has Data Guard enabled.
    - This parameter is updatable.
    type: bool

autonomous_database_id:
    aliases:
    - id
    description:
    - The L(OCID,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
      of the source Autonomous Database that you will clone to create a new Autonomous
      Database.
    - Required for update using I(state=present) when environment variable C(OCI_USE_NAME_AS_IDENTIFIER)
      is not set.
    - Required for delete using I(state=absent) when environment variable C(OCI_USE_NAME_AS_IDENTIFIER)
      is not set.
    - Required when source is 'BACKUP_FROM_TIMESTAMP'
    type: str

private_endpoint_label:
    description:
    - 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.
    - This parameter is updatable.
    type: str

is_auto_scaling_enabled:
    description:
    - Indicates if auto scaling is enabled for the Autonomous Database OCPU core count.
      The default value is `FALSE`.
    - This parameter is updatable.
    type: bool

standby_whitelisted_ips:
    description:
    - The client IP access control list (ACL). This feature is available for autonomous
      databases on L(shared Exadata infrastructure,https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI)
      and on Exadata Cloud@Customer. Only clients connecting from an IP address included
      in the ACL may access the Autonomous Database instance.
    - 'For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain
      Routing) notations for a subnet or VCN OCID. Use a semicolon (;) as a deliminator
      between the VCN-specific subnets or IPs. 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.<u
      nique_id2>;1.1.0.0/16"]` For Exadata Cloud@Customer, this is an array of IP addresses
      or CIDR (Classless Inter-Domain Routing) notations. Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]`'
    - For an update operation, if you want to delete all the IPs in the ACL, use an array
      with a single empty string entry.
    - This parameter is updatable.
    elements: str
    type: list

api_user_key_pass_phrase:
    description:
    - Passphrase used by the key referenced in C(api_user_key_file), if it is encrypted.
      If not set, then the value of the OCI_USER_KEY_PASS_PHRASE variable, if any, is
      used. This option is required if the key passphrase is not specified through a configuration
      file (See C(config_file_location)).
    type: str

data_storage_size_in_gbs:
    description:
    - The size, in gigabytes, of the data volume that will be created and attached to
      the database. This storage can later be scaled up if needed. The maximum storage
      value is determined by the infrastructure shape. See L(Characteristics of Infrastructure
      Shapes,https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1)
      for shape details.
    - '**Notes** - This parameter is only supported for dedicated Exadata infrastructure.
      - This parameter cannot be used with the `dataStorageSizeInTBs` parameter.'
    - This parameter is updatable.
    type: int

data_storage_size_in_tbs:
    description:
    - 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. For Autonomous Databases
      on dedicated Exadata infrastructure, the maximum storage value is determined by
      the infrastructure shape. See L(Characteristics of Infrastructure Shapes,https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-
      GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details.
    - '**Note:** This parameter cannot be used with the `dataStorageSizeInGBs` parameter.'
    - This parameter is updatable.
    type: int

is_access_control_enabled:
    description:
    - Indicates if the database-level access control is enabled. If disabled, database
      access is defined by the network security rules. If enabled, database access is
      restricted to the IP addresses defined by the rules specified with the `whitelistedIps`
      property. While specifying `whitelistedIps` rules is optional, if database-level
      access control is enabled and no rules are specified, the database will become inaccessible.
      The rules can be added later using the `UpdateAutonomousDatabase` API operation
      or edit option in console. When creating a database clone, the desired access control
      setting should be specified. By default, database-level access control will be disabled
      for the clone.
    - This property is applicable only to Autonomous Databases on the Exadata Cloud@Customer
      platform.
    - This parameter is updatable.
    type: bool

is_mtls_connection_required:
    description:
    - Indicates whether the Autonomous Database requires mTLS connections.
    - This parameter is updatable.
    type: bool

autonomous_database_backup_id:
    description:
    - The L(OCID,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
      of the source Autonomous Database Backup that you will clone to create a new Autonomous
      Database.
    - Required when source is 'BACKUP_FROM_ID'
    type: str

source_autonomous_database_id:
    description:
    - The L(OCID,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
      of the source Autonomous Database that you will clone to create a new Autonomous
      Database. Required when source is 'BACKUP_FROM_TIMESTAMP'
    type: str

are_primary_whitelisted_ips_used:
    description:
    - This field will be null if the Autonomous Database is not Data Guard enabled or
      Access Control is disabled. It's value would be `TRUE` if Autonomous Database is
      Data Guard enabled and Access Control is enabled and if the Autonomous Database
      uses primary IP access control list (ACL) for standby. It's value would be `FALSE`
      if Autonomous Database is Data Guard enabled and Access Control is enabled and if
      the Autonomous Database uses different IP access control list (ACL) for standby
      compared to primary.
    - This parameter is updatable.
    type: bool

autonomous_container_database_id:
    description:
    - The Autonomous Container Database L(OCID,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
    type: str

autonomous_maintenance_schedule_type:
    choices:
    - EARLY
    - REGULAR
    description:
    - The maintenance schedule type of the Autonomous Database on shared Exadata infrastructure.
      The EARLY maintenance schedule of this Autonomous Database follows a schedule that
      applies patches prior to the REGULAR schedule.The REGULAR maintenance schedule of
      this Autonomous Database follows the normal cycle.
    type: str

is_preview_version_with_service_terms_accepted:
    description:
    - 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 L(shared Exadata
      infrastructure,https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI).
    type: bool

Outputs

autonomous_database:
  contains:
    apex_details:
      contains:
        apex_version:
          description:
          - The Oracle APEX Application Development version.
          returned: on success
          sample: apex_version_example
          type: str
        ords_version:
          description:
          - The Oracle REST Data Services (ORDS) version.
          returned: on success
          sample: ords_version_example
          type: str
      description:
      - Information about Oracle APEX Application Development.
      returned: on success
      type: complex
    are_primary_whitelisted_ips_used:
      description:
      - This field will be null if the Autonomous Database is not Data Guard enabled
        or Access Control is disabled. It's value would be `TRUE` if Autonomous Database
        is Data Guard enabled and Access Control is enabled and if the Autonomous
        Database uses primary IP access control list (ACL) for standby. It's value
        would be `FALSE` if Autonomous Database is Data Guard enabled and Access Control
        is enabled and if the Autonomous Database uses different IP access control
        list (ACL) for standby compared to primary.
      returned: on success
      sample: true
      type: bool
    autonomous_container_database_id:
      description:
      - The Autonomous Container Database L(OCID,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
      returned: on success
      sample: ocid1.autonomouscontainerdatabase.oc1..xxxxxxEXAMPLExxxxxx
      type: str
    autonomous_maintenance_schedule_type:
      description:
      - The maintenance schedule type of the Autonomous Database on shared Exadata
        infrastructure. The EARLY maintenance schedule of this Autonomous Database
        follows a schedule that applies patches prior to the REGULAR schedule.The
        REGULAR maintenance schedule of this Autonomous Database follows the normal
        cycle.
      returned: on success
      sample: EARLY
      type: str
    available_upgrade_versions:
      description:
      - List of Oracle Database versions available for a database upgrade. If there
        are no version upgrades available, this list is empty.
      returned: on success
      sample: []
      type: list
    backup_config:
      contains:
        manual_backup_bucket_name:
          description:
          - Name of L(Object Storage,https://docs.cloud.oracle.com/Content/Object/Concepts/objectstorageoverview.htm)
            bucket to use for storing manual backups.
          returned: on success
          sample: manual_backup_bucket_name_example
          type: str
        manual_backup_type:
          description:
          - The manual backup destination type.
          returned: on success
          sample: NONE
          type: str
      description:
      - ''
      returned: on success
      type: complex
    compartment_id:
      description:
      - The L(OCID,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
        of the compartment.
      returned: on success
      sample: ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx
      type: str
    connection_strings:
      contains:
        all_connection_strings:
          description:
          - Returns all connection strings that can be used to connect to the Autonomous
            Database. For more information, please see L(Predefined Database Service
            Names for Autonomous Transaction Processing,https://docs.oracle.com/en/cloud/paas/atp-cloud/atpug/connect-predefined.html#GUID-9747539B-FD46-44F1-8FF8-F5AC650F15BE)
          returned: on success
          sample: {}
          type: dict
        dedicated:
          description:
          - The database service provides the least level of resources to each SQL
            statement, but supports the most number of concurrent SQL statements.
          returned: on success
          sample: dedicated_example
          type: str
        high:
          description:
          - The High database service provides the highest level of resources to each
            SQL statement resulting in the highest performance, but supports the fewest
            number of concurrent SQL statements.
          returned: on success
          sample: high_example
          type: str
        low:
          description:
          - The Low database service provides the least level of resources to each
            SQL statement, but supports the most number of concurrent SQL statements.
          returned: on success
          sample: low_example
          type: str
        medium:
          description:
          - The Medium database service provides a lower level of resources to each
            SQL statement potentially resulting a lower level of performance, but
            supports more concurrent SQL statements.
          returned: on success
          sample: medium_example
          type: str
        profiles:
          contains:
            consumer_group:
              description:
              - Consumer group used by the connection.
              returned: on success
              sample: HIGH
              type: str
            display_name:
              description:
              - A user-friendly name for the connection.
              returned: on success
              sample: display_name_example
              type: str
            host_format:
              description:
              - Host format used in connection string.
              returned: on success
              sample: FQDN
              type: str
            protocol:
              description:
              - Protocol used by the connection.
              returned: on success
              sample: TCP
              type: str
            session_mode:
              description:
              - Specifies whether the listener performs a direct hand-off of the session,
                or redirects the session. In RAC deployments where SCAN is used, sessions
                are redirected to a Node VIP. Use `DIRECT` for direct hand-offs. Use
                `REDIRECT` to redirect the session.
              returned: on success
              sample: DIRECT
              type: str
            syntax_format:
              description:
              - Specifies whether the connection string is using the long (`LONG`),
                Easy Connect (`EZCONNECT`), or Easy Connect Plus (`EZCONNECTPLUS`)
                format. Autonomous Databases on shared Exadata infrastructure always
                use the long format.
              returned: on success
              sample: LONG
              type: str
            tls_authentication:
              description:
              - Specifies whether the TLS handshake is using one-way (`SERVER`) or
                mutual (`MUTUAL`) authentication.
              returned: on success
              sample: SERVER
              type: str
            value:
              description:
              - Connection string value.
              returned: on success
              sample: value_example
              type: str
          description:
          - A list of connection string profiles to allow clients to group, filter
            and select connection string values based on structured metadata.
          returned: on success
          type: complex
      description:
      - 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.
      returned: on success
      type: complex
    connection_urls:
      contains:
        apex_url:
          description:
          - Oracle Application Express (APEX) URL.
          returned: on success
          sample: apex_url_example
          type: str
        graph_studio_url:
          description:
          - The URL of the Graph Studio for the Autonomous Database.
          returned: on success
          sample: graph_studio_url_example
          type: str
        machine_learning_user_management_url:
          description:
          - Oracle Machine Learning user management URL.
          returned: on success
          sample: machine_learning_user_management_url_example
          type: str
        sql_dev_web_url:
          description:
          - Oracle SQL Developer Web URL.
          returned: on success
          sample: sql_dev_web_url_example
          type: str
      description:
      - ''
      returned: on success
      type: complex
    cpu_core_count:
      description:
      - The number of OCPU cores to be made available to the database. For Autonomous
        Databases on dedicated Exadata infrastructure, the maximum number of cores
        is determined by the infrastructure shape. See L(Characteristics of Infrastructure
        Shapes,https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1)
        for shape details.
      - '**Note:** This parameter cannot be used with the `ocpuCount` parameter.'
      returned: on success
      sample: 56
      type: int
    customer_contacts:
      contains:
        email:
          description:
          - The email address used by Oracle to send notifications regarding databases
            and infrastructure.
          returned: on success
          sample: email_example
          type: str
      description:
      - Customer Contacts.
      returned: on success
      type: complex
    data_safe_status:
      description:
      - Status of the Data Safe registration for this Autonomous Database.
      returned: on success
      sample: REGISTERING
      type: str
    data_storage_size_in_gbs:
      description:
      - The quantity of data in the database, in gigabytes.
      returned: on success
      sample: 56
      type: int
    data_storage_size_in_tbs:
      description:
      - The quantity of data in the database, in terabytes.
      returned: on success
      sample: 56
      type: int
    dataguard_region_type:
      description:
      - The Autonomous Data Guard region type of the Autonomous Database. For Autonomous
        Databases on shared Exadata infrastructure, Data Guard associations have designated
        primary and standby regions, and these region types do not change when the
        database changes roles. The standby regions in Data Guard associations can
        be the same region designated as the primary region, or they can be remote
        regions. Certain database administrative operations may be available only
        in the primary region of the Data Guard association, and cannot be performed
        when the database using the "primary" role is operating in a remote Data Guard
        standby region.```
      returned: on success
      sample: PRIMARY_DG_REGION
      type: str
    db_name:
      description:
      - The database name.
      returned: on success
      sample: db_name_example
      type: str
    db_version:
      description:
      - A valid Oracle Database version for Autonomous Database.
      returned: on success
      sample: db_version_example
      type: str
    db_workload:
      description:
      - '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 - APEX - indicates an Autonomous Database with the Oracle APEX Application
        Development workload type.'
      returned: on success
      sample: OLTP
      type: str
    defined_tags:
      description:
      - Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see L(Resource Tags,https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
      returned: on success
      sample:
        Operations:
          CostCenter: US
      type: dict
    display_name:
      description:
      - The user-friendly name for the Autonomous Database. The name does not have
        to be unique.
      returned: on success
      sample: display_name_example
      type: str
    failed_data_recovery_in_seconds:
      description:
      - Indicates the number of seconds of data loss for a Data Guard failover.
      returned: on success
      sample: 56
      type: int
    freeform_tags:
      description:
      - 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 L(Resource
        Tags,https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
      - 'Example: `{"Department": "Finance"}`'
      returned: on success
      sample:
        Department: Finance
      type: dict
    id:
      description:
      - The L(OCID,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
        of the Autonomous Database.
      returned: on success
      sample: ocid1.resource.oc1..xxxxxxEXAMPLExxxxxx
      type: str
    infrastructure_type:
      description:
      - The infrastructure type this resource belongs to.
      returned: on success
      sample: CLOUD
      type: str
    is_access_control_enabled:
      description:
      - Indicates if the database-level access control is enabled. If disabled, database
        access is defined by the network security rules. If enabled, database access
        is restricted to the IP addresses defined by the rules specified with the
        `whitelistedIps` property. While specifying `whitelistedIps` rules is optional,
        if database-level access control is enabled and no rules are specified, the
        database will become inaccessible. The rules can be added later using the
        `UpdateAutonomousDatabase` API operation or edit option in console. When creating
        a database clone, the desired access control setting should be specified.
        By default, database-level access control will be disabled for the clone.
      - This property is applicable only to Autonomous Databases on the Exadata Cloud@Customer
        platform.
      returned: on success
      sample: true
      type: bool
    is_auto_scaling_enabled:
      description:
      - Indicates if auto scaling is enabled for the Autonomous Database CPU core
        count.
      returned: on success
      sample: true
      type: bool
    is_data_guard_enabled:
      description:
      - Indicates whether the Autonomous Database has Data Guard enabled.
      returned: on success
      sample: true
      type: bool
    is_dedicated:
      description:
      - True if the database uses L(dedicated Exadata infrastructure,https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm).
      returned: on success
      sample: true
      type: bool
    is_free_tier:
      description:
      - 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.
      returned: on success
      sample: true
      type: bool
    is_mtls_connection_required:
      description:
      - Indicates whether the Autonomous Database requires mTLS connections.
      returned: on success
      sample: true
      type: bool
    is_preview:
      description:
      - Indicates if the Autonomous Database version is a preview version.
      returned: on success
      sample: true
      type: bool
    is_refreshable_clone:
      description:
      - Indicates whether the Autonomous Database is a refreshable clone.
      returned: on success
      sample: true
      type: bool
    key_history_entry:
      contains:
        id:
          description:
          - The id of the Autonomous Database L(Vault,https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts)
            service key management history entry.
          returned: on success
          sample: ocid1.resource.oc1..xxxxxxEXAMPLExxxxxx
          type: str
        time_activated:
          description:
          - The date and time the kms key activated.
          returned: on success
          sample: '2013-10-20T19:20:30+01:00'
          type: str
        vault_id:
          description:
          - The L(OCID,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
            of the Oracle Cloud Infrastructure L(vault,https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts).
          returned: on success
          sample: ocid1.vault.oc1..xxxxxxEXAMPLExxxxxx
          type: str
      description:
      - Key History Entry.
      returned: on success
      type: complex
    key_store_id:
      description:
      - The L(OCID,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
        of the key store.
      returned: on success
      sample: ocid1.keystore.oc1..xxxxxxEXAMPLExxxxxx
      type: str
    key_store_wallet_name:
      description:
      - The wallet name for Oracle Key Vault.
      returned: on success
      sample: key_store_wallet_name_example
      type: str
    kms_key_id:
      description:
      - The OCID of the key container that is used as the master encryption key in
        database transparent data encryption (TDE) operations.
      returned: on success
      sample: ocid1.kmskey.oc1..xxxxxxEXAMPLExxxxxx
      type: str
    kms_key_lifecycle_details:
      description:
      - KMS key lifecycle details.
      returned: on success
      sample: kms_key_lifecycle_details_example
      type: str
    license_model:
      description:
      - The Oracle license model that applies to the Oracle Autonomous Database. Bring
        your own license (BYOL) allows you to apply your current on- premises Oracle
        software licenses to equivalent, highly automated Oracle PaaS and IaaS services
        in the cloud. License Included allows you to subscribe to new Oracle Database
        software licenses and the Database service. Note that when provisioning an
        Autonomous Database on L(dedicated Exadata infrastructure,https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm),
        this attribute must be null because the attribute is already set at the Autonomous
        Exadata Infrastructure level. When using L(shared Exadata infrastructure,https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI),
        if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`.
      returned: on success
      sample: LICENSE_INCLUDED
      type: str
    lifecycle_details:
      description:
      - Information about the current lifecycle state.
      returned: on success
      sample: lifecycle_details_example
      type: str
    lifecycle_state:
      description:
      - The current state of the Autonomous Database.
      returned: on success
      sample: PROVISIONING
      type: str
    nsg_ids:
      description:
      - A list of the L(OCIDs,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
        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 L(Security Rules,https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm).
        **NsgIds restrictions:** - Autonomous Databases with private access require
        at least 1 Network Security Group (NSG). The nsgIds array cannot be empty.
      returned: on success
      sample: []
      type: list
    ocpu_count:
      description:
      - The number of OCPU cores to be made available to the database.
      - 'The following points apply: - For Autonomous Databases on dedicated Exadata
        infrastructure, to provision less than 1 core, enter a fractional value in
        an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but
        not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous
        Databasese on shared Exadata infrastructure.) - To provision 1 or more cores,
        you must enter an integer between 1 and the maximum number of cores available
        for the infrastructure shape. For example, you can provision 2 cores or 3
        cores, but not 2.5 cores. This applies to Autonomous Databases on both shared
        and dedicated Exadata infrastructure.'
      - For Autonomous Databases on dedicated Exadata infrastructure, the maximum
        number of cores is determined by the infrastructure shape. See L(Characteristics
        of Infrastructure Shapes,https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-
        GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details.
      - '**Note:** This parameter cannot be used with the `cpuCoreCount` parameter.'
      returned: on success
      sample: 3.4
      type: float
    open_mode:
      description:
      - The `DATABASE OPEN` mode. You can open the database in `READ_ONLY` or `READ_WRITE`
        mode.
      returned: on success
      sample: READ_ONLY
      type: str
    operations_insights_status:
      description:
      - Status of Operations Insights for this Autonomous Database.
      returned: on success
      sample: ENABLING
      type: str
    peer_db_ids:
      description:
      - The list of L(OCIDs,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
        of standby databases located in Autonomous Data Guard remote regions that
        are associated with the source database. Note that for shared Exadata infrastructure,
        standby databases located in the same region as the source primary database
        do not have OCIDs.
      returned: on success
      sample: []
      type: list
    permission_level:
      description:
      - The Autonomous Database permission level. Restricted mode allows access only
        to admin users.
      returned: on success
      sample: RESTRICTED
      type: str
    private_endpoint:
      description:
      - The private endpoint for the resource.
      returned: on success
      sample: private_endpoint_example
      type: str
    private_endpoint_ip:
      description:
      - The private endpoint Ip address for the resource.
      returned: on success
      sample: private_endpoint_ip_example
      type: str
    private_endpoint_label:
      description:
      - 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.
      returned: on success
      sample: private_endpoint_label_example
      type: str
    refreshable_mode:
      description:
      - The refresh mode of the clone. AUTOMATIC indicates that the clone is automatically
        being refreshed with data from the source Autonomous Database.
      returned: on success
      sample: AUTOMATIC
      type: str
    refreshable_status:
      description:
      - The refresh status of the clone. REFRESHING indicates that the clone is currently
        being refreshed with data from the source Autonomous Database.
      returned: on success
      sample: REFRESHING
      type: str
    role:
      description:
      - The Data Guard role of the Autonomous Container Database or Autonomous Database,
        if Autonomous Data Guard is enabled.
      returned: on success
      sample: PRIMARY
      type: str
    service_console_url:
      description:
      - The URL of the Service Console for the Autonomous Database.
      returned: on success
      sample: service_console_url_example
      type: str
    source_id:
      description:
      - The L(OCID,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
        of the source Autonomous Database that was cloned to create the current Autonomous
        Database.
      returned: on success
      sample: ocid1.source.oc1..xxxxxxEXAMPLExxxxxx
      type: str
    standby_db:
      contains:
        lag_time_in_seconds:
          description:
          - The amount of time, in seconds, that the data of the standby database
            lags the data of the primary database. Can be used to determine the potential
            data loss in the event of a failover.
          returned: on success
          sample: 56
          type: int
        lifecycle_details:
          description:
          - Additional information about the current lifecycle state.
          returned: on success
          sample: lifecycle_details_example
          type: str
        lifecycle_state:
          description:
          - The current state of the Autonomous Database.
          returned: on success
          sample: PROVISIONING
          type: str
        time_data_guard_role_changed:
          description:
          - The date and time the Autonomous Data Guard role was switched for the
            standby Autonomous Database.
          returned: on success
          sample: '2013-10-20T19:20:30+01:00'
          type: str
      description:
      - ''
      returned: on success
      type: complex
    standby_whitelisted_ips:
      description:
      - The client IP access control list (ACL). This feature is available for autonomous
        databases on L(shared Exadata infrastructure,https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI)
        and on Exadata Cloud@Customer. Only clients connecting from an IP address
        included in the ACL may access the Autonomous Database instance.
      - 'For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain
        Routing) notations for a subnet or VCN OCID. Use a semicolon (;) as a deliminator
        between the VCN-specific subnets or IPs. 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.se
        a.<unique_id2>;1.1.0.0/16"]` For Exadata Cloud@Customer, this is an array
        of IP addresses or CIDR (Classless Inter-Domain Routing) notations. Example:
        `["1.1.1.1","1.1.1.0/24","1.1.2.25"]`'
      - For an update operation, if you want to delete all the IPs in the ACL, use
        an array with a single empty string entry.
      returned: on success
      sample: []
      type: list
    subnet_id:
      description:
      - The L(OCID,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
        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.
      returned: on success
      sample: ocid1.subnet.oc1..xxxxxxEXAMPLExxxxxx
      type: str
    supported_regions_to_clone_to:
      description:
      - The list of regions that support the creation of Autonomous Data Guard standby
        database.
      returned: on success
      sample: []
      type: list
    system_tags:
      description:
      - System tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see L(Resource Tags,https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
      returned: on success
      sample: {}
      type: dict
    time_created:
      description:
      - The date and time the Autonomous Database was created.
      returned: on success
      sample: '2013-10-20T19:20:30+01:00'
      type: str
    time_data_guard_role_changed:
      description:
      - The date and time the Autonomous Data Guard role was switched for the Autonomous
        Database. For databases that have standbys in both the primary Data Guard
        region and a remote Data Guard standby region, this is the latest timestamp
        of either the database using the "primary" role in the primary Data Guard
        region, or database located in the remote Data Guard standby region.
      returned: on success
      sample: '2013-10-20T19:20:30+01:00'
      type: str
    time_deletion_of_free_autonomous_database:
      description:
      - 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.
      returned: on success
      sample: '2013-10-20T19:20:30+01:00'
      type: str
    time_local_data_guard_enabled:
      description:
      - The date and time that Autonomous Data Guard was enabled for an Autonomous
        Database where the standby was provisioned in the same region as the primary
        database.
      returned: on success
      sample: '2013-10-20T19:20:30+01:00'
      type: str
    time_maintenance_begin:
      description:
      - The date and time when maintenance will begin.
      returned: on success
      sample: '2013-10-20T19:20:30+01:00'
      type: str
    time_maintenance_end:
      description:
      - The date and time when maintenance will end.
      returned: on success
      sample: '2013-10-20T19:20:30+01:00'
      type: str
    time_of_last_failover:
      description:
      - The timestamp of the last failover operation.
      returned: on success
      sample: '2013-10-20T19:20:30+01:00'
      type: str
    time_of_last_refresh:
      description:
      - The date and time when last refresh happened.
      returned: on success
      sample: '2013-10-20T19:20:30+01:00'
      type: str
    time_of_last_refresh_point:
      description:
      - The refresh point timestamp (UTC). The refresh point is the time to which
        the database was most recently refreshed. Data created after the refresh point
        is not included in the refresh.
      returned: on success
      sample: '2013-10-20T19:20:30+01:00'
      type: str
    time_of_last_switchover:
      description:
      - The timestamp of the last switchover operation for the Autonomous Database.
      returned: on success
      sample: '2013-10-20T19:20:30+01:00'
      type: str
    time_of_next_refresh:
      description:
      - The date and time of next refresh.
      returned: on success
      sample: '2013-10-20T19:20:30+01:00'
      type: str
    time_reclamation_of_free_autonomous_database:
      description:
      - 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.
      returned: on success
      sample: '2013-10-20T19:20:30+01:00'
      type: str
    used_data_storage_size_in_tbs:
      description:
      - The amount of storage that has been used, in terabytes.
      returned: on success
      sample: 56
      type: int
    vault_id:
      description:
      - The L(OCID,https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)
        of the Oracle Cloud Infrastructure L(vault,https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts).
      returned: on success
      sample: ocid1.vault.oc1..xxxxxxEXAMPLExxxxxx
      type: str
    whitelisted_ips:
      description:
      - The client IP access control list (ACL). This feature is available for autonomous
        databases on L(shared Exadata infrastructure,https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI)
        and on Exadata Cloud@Customer. Only clients connecting from an IP address
        included in the ACL may access the Autonomous Database instance.
      - 'For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain
        Routing) notations for a subnet or VCN OCID. Use a semicolon (;) as a deliminator
        between the VCN-specific subnets or IPs. 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.se
        a.<unique_id2>;1.1.0.0/16"]` For Exadata Cloud@Customer, this is an array
        of IP addresses or CIDR (Classless Inter-Domain Routing) notations. Example:
        `["1.1.1.1","1.1.1.0/24","1.1.2.25"]`'
      - For an update operation, if you want to delete all the IPs in the ACL, use
        an array with a single empty string entry.
      returned: on success
      sample: []
      type: list
  description:
  - Details of the AutonomousDatabase resource acted upon by the current operation
  returned: on success
  sample:
    apex_details:
      apex_version: apex_version_example
      ords_version: ords_version_example
    are_primary_whitelisted_ips_used: true
    autonomous_container_database_id: ocid1.autonomouscontainerdatabase.oc1..xxxxxxEXAMPLExxxxxx
    autonomous_maintenance_schedule_type: EARLY
    available_upgrade_versions: []
    backup_config:
      manual_backup_bucket_name: manual_backup_bucket_name_example
      manual_backup_type: NONE
    compartment_id: ocid1.compartment.oc1..xxxxxxEXAMPLExxxxxx
    connection_strings:
      all_connection_strings: {}
      dedicated: dedicated_example
      high: high_example
      low: low_example
      medium: medium_example
      profiles:
      - consumer_group: HIGH
        display_name: display_name_example
        host_format: FQDN
        protocol: TCP
        session_mode: DIRECT
        syntax_format: LONG
        tls_authentication: SERVER
        value: value_example
    connection_urls:
      apex_url: apex_url_example
      graph_studio_url: graph_studio_url_example
      machine_learning_user_management_url: machine_learning_user_management_url_example
      sql_dev_web_url: sql_dev_web_url_example
    cpu_core_count: 56
    customer_contacts:
    - email: email_example
    data_safe_status: REGISTERING
    data_storage_size_in_gbs: 56
    data_storage_size_in_tbs: 56
    dataguard_region_type: PRIMARY_DG_REGION
    db_name: db_name_example
    db_version: db_version_example
    db_workload: OLTP
    defined_tags:
      Operations:
        CostCenter: US
    display_name: display_name_example
    failed_data_recovery_in_seconds: 56
    freeform_tags:
      Department: Finance
    id: ocid1.resource.oc1..xxxxxxEXAMPLExxxxxx
    infrastructure_type: CLOUD
    is_access_control_enabled: true
    is_auto_scaling_enabled: true
    is_data_guard_enabled: true
    is_dedicated: true
    is_free_tier: true
    is_mtls_connection_required: true
    is_preview: true
    is_refreshable_clone: true
    key_history_entry:
    - id: ocid1.resource.oc1..xxxxxxEXAMPLExxxxxx
      time_activated: '2013-10-20T19:20:30+01:00'
      vault_id: ocid1.vault.oc1..xxxxxxEXAMPLExxxxxx
    key_store_id: ocid1.keystore.oc1..xxxxxxEXAMPLExxxxxx
    key_store_wallet_name: key_store_wallet_name_example
    kms_key_id: ocid1.kmskey.oc1..xxxxxxEXAMPLExxxxxx
    kms_key_lifecycle_details: kms_key_lifecycle_details_example
    license_model: LICENSE_INCLUDED
    lifecycle_details: lifecycle_details_example
    lifecycle_state: PROVISIONING
    nsg_ids: []
    ocpu_count: 3.4
    open_mode: READ_ONLY
    operations_insights_status: ENABLING
    peer_db_ids: []
    permission_level: RESTRICTED
    private_endpoint: private_endpoint_example
    private_endpoint_ip: private_endpoint_ip_example
    private_endpoint_label: private_endpoint_label_example
    refreshable_mode: AUTOMATIC
    refreshable_status: REFRESHING
    role: PRIMARY
    service_console_url: service_console_url_example
    source_id: ocid1.source.oc1..xxxxxxEXAMPLExxxxxx
    standby_db:
      lag_time_in_seconds: 56
      lifecycle_details: lifecycle_details_example
      lifecycle_state: PROVISIONING
      time_data_guard_role_changed: '2013-10-20T19:20:30+01:00'
    standby_whitelisted_ips: []
    subnet_id: ocid1.subnet.oc1..xxxxxxEXAMPLExxxxxx
    supported_regions_to_clone_to: []
    system_tags: {}
    time_created: '2013-10-20T19:20:30+01:00'
    time_data_guard_role_changed: '2013-10-20T19:20:30+01:00'
    time_deletion_of_free_autonomous_database: '2013-10-20T19:20:30+01:00'
    time_local_data_guard_enabled: '2013-10-20T19:20:30+01:00'
    time_maintenance_begin: '2013-10-20T19:20:30+01:00'
    time_maintenance_end: '2013-10-20T19:20:30+01:00'
    time_of_last_failover: '2013-10-20T19:20:30+01:00'
    time_of_last_refresh: '2013-10-20T19:20:30+01:00'
    time_of_last_refresh_point: '2013-10-20T19:20:30+01:00'
    time_of_last_switchover: '2013-10-20T19:20:30+01:00'
    time_of_next_refresh: '2013-10-20T19:20:30+01:00'
    time_reclamation_of_free_autonomous_database: '2013-10-20T19:20:30+01:00'
    used_data_storage_size_in_tbs: 56
    vault_id: ocid1.vault.oc1..xxxxxxEXAMPLExxxxxx
    whitelisted_ips: []
  type: complex