ibm_pi_instance_volumes

Import the details of existing IBM Power Virtual Server Cloud instance volumes as a read-only data source. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.

Example Usage

data "ibm_pi_instance_volumes" "ds_volumes" {
  pi_instance_name     = "volume_1"
  pi_cloud_instance_id = "49fba6c9-23f8-40bc-9899-aca322ee7d5b"
}

Argument Reference

The following arguments are supported:

  • pi_instance_name - (Required, string) The name of the instance whose volumes to retrieve.
  • pi_cloud_instance_id - (Required, string) The service instance associated with the account.

Attribute Reference

The following attributes are exported:

  • id - The unique identifier for this volume.
  • type - The disk type for this volume.
  • state - The state of the volume.
  • bootable - If this volume is bootable or not.
  • size - The size of this volume.
  • shareable - If this volume is shareable or not.
  • href - The href of this volume.
  • name - The name of this volume.