Global InfraGlobal Infra Cloud
compute

volume

CLI reference for volume (compute).

gi compute volume

Subcommands

CommandDescription
gi compute volume listList volumes.
gi compute volume createCreate a new volume.
gi compute volume delete <id>Delete a volume.
gi compute volume list_disks <id>This action allows to retrieve complete information about the disks for a specific pm asset
gi compute volume volume_create <id>This action allows the configuration of a new raid.

Flags

list flags

FlagAliasDescription
--filter-fFilter assets (e.g. attributes.name=my-asset)

create flags

FlagAliasDescription
--file—Path to a YAML or JSON file describing the asset

Examples

# List all
gi compute volume list

# Filter by attribute
gi compute volume list -f attributes.cn_name=my-value

# Create from file
gi compute volume create --file asset.yaml

# Delete
gi compute volume delete <id>

# List_disks
gi compute volume list_disks <id>

# Volume_create
gi compute volume volume_create <id>

Usage Notes

On this page