Data Source: oci_database_db_node_snapshots

This data source provides the list of Db Node Snapshots in Oracle Cloud Infrastructure Database service.

Gets a list of the Exadata Database Node Snapshots in the specified compartment.

Example Usage

data "oci_database_db_node_snapshots" "test_db_node_snapshots" {
	#Required
	compartment_id = var.compartment_id
  
	#Optional
	cluster_id       = oci_database_db_node_snapshot_management.test_db_node_snapshot_management.exadb_vm_cluster_id
	name             = oci_database_db_node_snapshot_management.test_db_node_snapshot_management.snapshots[0].name
	source_dbnode_id = oci_database_db_node_snapshot_management.test_db_node_snapshot_management.snapshots[0].source_dbnode_id
	state            = oci_database_db_node_snapshot_management.test_db_node_snapshot_management.snapshots[0].state

	## Example: filter db_node_snapshots by name
	#filter {
	#  name  = "name"
	#  regex = true
	#  values = ["^\\w+-${oci_database_db_node_snapshot_management.test_db_node_snapshot_management.name}$"]
	#}
	
	## Example: Get all but Terminated db_node_snapshots
	#filter {
	#  name = "state"
	#  values = ["CREATING", "AVAILABLE", "FAILED", "MOUNTED", "MOUNTING", "UNMOUNTING"]
	#}
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

DbNodeSnapshot Reference

The following attributes are exported: