» scaleway_instance_volume

Gets information about an instance volume.

» Example Usage

// Get info by volume name
data "scaleway_instance_volume" "my_volume" {
  name = "my-volume-name"
}

// Get info by volume ID
data "scaleway_instance_volume" "my_volume" {
  volume_id = "11111111-1111-1111-1111-111111111111"
}

» Argument Reference

  • name - (Optional) The volume name. Only one of name and volume_id should be specified.

  • volume_id - (Optional) The volume id. Only one of name and volume_id should be specified.

  • zone - (Defaults to provider zone) The zone in which the volume exists.

  • organization_id - (Defaults to provider organization_id) The ID of the organization the server is associated with.

» Attributes Reference

In addition to all above arguments, the following attributes are exported:

  • volume_type - The type of the volume. l_ssd for local SSD, b_ssd for block storage SSD.

  • creation_date - Volume creation date.

  • modification_date - Volume last modification date.

  • state - State of the volume. Possible values are available, snapshotting and error. The default value is available.

  • size - The volumes disk size (in bytes).

  • server - Information about the server attached to the volume.