Data Source: oci_core_drg_attachments

This data source provides the list of Drg Attachments in Oracle Cloud Infrastructure Core service.

Lists the DrgAttachment resource for the specified compartment. You can filter the results by DRG, attached network, attachment type, DRG route table or VCN route table.

The LIST API lists DRG attachments by attachment type. It will default to list VCN attachments, but you may request to list ALL attachments of ALL types.

Example Usage

data "oci_core_drg_attachments" "test_drg_attachments" {
	#Required
	compartment_id = var.compartment_id

	#Optional
	attachment_type = var.drg_attachment_attachment_type
	display_name = var.drg_attachment_display_name
	drg_id = oci_core_drg.test_drg.id
	drg_route_table_id = oci_core_drg_route_table.test_drg_route_table.id
	network_id = oci_core_network.test_network.id
	state = var.drg_attachment_state
	vcn_id = oci_core_vcn.test_vcn.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

DrgAttachment Reference

The following attributes are exported: