» Data Source: oci_database_db_nodes
This data source provides the list of Db Nodes in Oracle Cloud Infrastructure Database service.
Gets a list of database nodes in the specified DB system and compartment. A database node is a server running database software.
» Example Usage
data "oci_database_db_nodes" "test_db_nodes" {
#Required
compartment_id = "${var.compartment_id}"
db_system_id = "${oci_database_db_system.test_db_system.id}"
#Optional
state = "${var.db_node_state}"
}
» Argument Reference
The following arguments are supported:
-
compartment_id
- (Required) The compartment OCID. -
db_system_id
- (Required) The OCID of the DB system. -
state
- (Optional) A filter to return only resources that match the given lifecycle state exactly.
» Attributes Reference
The following attributes are exported:
-
db_nodes
- The list of db_nodes.
» DbNode Reference
The following attributes are exported:
-
backup_vnic_id
- The OCID of the backup VNIC. -
db_system_id
- The OCID of the DB system. -
fault_domain
- The name of the Fault Domain the instance is contained in. -
hostname
- The host name for the database node. -
id
- The OCID of the database node. -
software_storage_size_in_gb
- The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. -
state
- The current state of the database node. -
time_created
- The date and time that the database node was created. -
vnic_id
- The OCID of the VNIC.