Retrieve a list of volumes in Nomad.
data "nomad_volumes" "example" {}
The following arguments are supported:
type
: (string: "csi")
Volume type (currently only supports csi
)node_id
: (string: optional)
Volume node filter. plugin_id
: (string: optional)
Plugin ID filter. namespace
: (string: "default")
Nomad namespace.The following attributes are exported:
volumes
: list of maps
a list of volumes in the cluster.
namespace
: string
Volume namespace.id
: string
Volume ID.name
: string
User-friendly name.external_id
: string
The native ID for the volume.access_mode
: string
Describes write-access and concurrent usage for the volume.attachment_mode
: string
Describes the storage API used to interact with the device.