Data Source: oci_core_volume_attachments

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

Lists the volume attachments in the specified compartment. You can filter the list by specifying an instance OCID, volume OCID, or both.

Currently, the only supported volume attachment type are IScsiVolumeAttachment and ParavirtualizedVolumeAttachment.

Example Usage

data "oci_core_volume_attachments" "test_volume_attachments" {
	#Required
	compartment_id = var.compartment_id

	#Optional
	availability_domain = var.volume_attachment_availability_domain
	instance_id = oci_core_instance.test_instance.id
	volume_id = oci_core_volume.test_volume.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

VolumeAttachment Reference

The following attributes are exported: