Data Source: oci_database_autonomous_databases

This data source provides the list of Autonomous Databases in Oracle Cloud Infrastructure Database service.

Gets a list of Autonomous Databases based on the query parameters specified.

Example Usage

data "oci_database_autonomous_databases" "test_autonomous_databases" {
	#Required
	compartment_id = var.compartment_id

	#Optional
	autonomous_container_database_id = oci_database_autonomous_container_database.test_autonomous_container_database.id
	db_version = var.autonomous_database_db_version
	db_workload = var.autonomous_database_db_workload
	display_name = var.autonomous_database_display_name
	infrastructure_type = var.autonomous_database_infrastructure_type
	is_data_guard_enabled = var.autonomous_database_is_data_guard_enabled
	is_free_tier = var.autonomous_database_is_free_tier
	is_refreshable_clone = var.autonomous_database_is_refreshable_clone
	is_resource_pool_leader = var.autonomous_database_is_resource_pool_leader
	resource_pool_leader_id = oci_database_resource_pool_leader.test_resource_pool_leader.id
	state = var.autonomous_database_state
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

AutonomousDatabase Reference

The following attributes are exported:

Note: This parameter cannot be used with the ocpuCount parameter. * customer_contacts - Customer Contacts. * email - The email address used by Oracle to send notifications regarding databases and infrastructure. * data_safe_status - Status of the Data Safe registration for this Autonomous Database. Could be REGISTERED or NOT_REGISTERED. * data_storage_size_in_gb - The quantity of data in the database, in gigabytes. * data_storage_size_in_tbs - The quantity of data in the database, in terabytes. * database_edition - The Oracle Database Edition that applies to the Autonomous databases. * database_management_status - Status of Database Management for this Autonomous Database. * dataguard_region_type - The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database Serverless, Autonomous 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 Autonomous 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 Autonomous Data Guard association, and cannot be performed when the database using the primary role is operating in a remote Autonomous Data Guard standby region. * db_name - The database name. * db_tools_details - The list of database tools details.

This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, whitelistedIps, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, isLocalDataGuardEnabled, or isFreeTier. 
* `compute_count` - Compute used by database tools.
* `is_enabled` - Indicates whether tool is enabled.
* `max_idle_time_in_minutes` - The max idle time, in minutes, after which the VM used by database tools will be terminated.
* `name` - Name of database tool.