» Data Source: oci_core_boot_volume_attachments

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

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

» Example Usage

data "oci_core_boot_volume_attachments" "test_boot_volume_attachments" {
    #Required
    availability_domain = "${var.boot_volume_attachment_availability_domain}"
    compartment_id = "${var.compartment_id}"

    #Optional
    boot_volume_id = "${oci_core_boot_volume.test_boot_volume.id}"
    instance_id = "${oci_core_instance.test_instance.id}"
}

» Argument Reference

The following arguments are supported:

» Attributes Reference

The following attributes are exported:

» BootVolumeAttachment Reference

The following attributes are exported:

  • availability_domain - The availability domain of an instance. Example: Uocm:PHX-AD-1
  • boot_volume_id - The OCID of the boot volume.
  • compartment_id - The OCID of the compartment.
  • display_name - A user-friendly name. Does not have to be unique, and it cannot be changed. Avoid entering confidential information. Example: My boot volume
  • id - The OCID of the boot volume attachment.
  • instance_id - The OCID of the instance the boot volume is attached to.
  • is_pv_encryption_in_transit_enabled - Whether the enable encryption in transit for the PV volume attachment is on or not.
  • state - The current state of the boot volume attachment.
  • time_created - The date and time the boot volume was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z