Data Source: oci_core_vnic_attachments

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

Lists the VNIC attachments in the specified compartment. A VNIC attachment resides in the same compartment as the attached instance. The list can be filtered by instance, VNIC, or availability domain.

Example Usage

data "oci_core_vnic_attachments" "test_vnic_attachments" {
	#Required
	compartment_id = var.compartment_id

	#Optional
	availability_domain = var.vnic_attachment_availability_domain
	instance_id = oci_core_instance.test_instance.id
	vnic_id = oci_core_vnic.test_vnic.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

VnicAttachment Reference

The following attributes are exported: