Data Source: oci_opsi_database_insights

This data source provides the list of Database Insights in Oracle Cloud Infrastructure Opsi service.

Gets a list of database insights based on the query parameters specified. Either compartmentId or id query parameter must be specified. When both compartmentId and compartmentIdInSubtree are specified, a list of database insights in that compartment and in all sub-compartments will be returned.

Example Usage

data "oci_opsi_database_insights" "test_database_insights" {

	#Optional
	compartment_id = var.compartment_id
	compartment_id_in_subtree = var.database_insight_compartment_id_in_subtree
	database_id = oci_database_database.test_database.id
	database_type = var.database_insight_database_type
	enterprise_manager_bridge_id = oci_opsi_enterprise_manager_bridge.test_enterprise_manager_bridge.id
	exadata_insight_id = oci_opsi_exadata_insight.test_exadata_insight.id
	fields = var.database_insight_fields
	id = var.database_insight_id
	opsi_private_endpoint_id = oci_dataflow_private_endpoint.test_private_endpoint.id
	state = var.database_insight_state
	status = var.database_insight_status
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

DatabaseInsight Reference

The following attributes are exported: