create
Create a Volume
Last updated
Was this helpful?
Create a Volume
Last updated
Was this helpful?
Was this helpful?
-u, --api-url string Override default host URL. Preferred over the config file override 'cloud' and env var 'IONOS_API_URL' (default "https://api.ionos.com")
-z, --availability-zone string Availability zone of the Volume. Storage zone can only be selected prior provisioning (default "AUTO")
--backupunit-id string The unique Id of the Backup Unit that User has access to. It is mandatory to provide either 'public image' or 'imageAlias' in conjunction with this property
--bus string The bus type of the Volume (default "VIRTIO")
--cols strings Set of columns to be printed on output
Available columns: [VolumeId Name Size Type LicenceType State Image Bus AvailabilityZone BackupunitId DeviceNumber UserData BootServerId DatacenterId] (default [VolumeId,Name,Size,Type,LicenceType,State,Image])
-c, --config string Configuration file used for authentication (default "$XDG_CONFIG_HOME/ionosctl/config.yaml")
--cpu-hot-plug It is capable of CPU hot plug (no reboot required). E.g.: --cpu-hot-plug=true, --cpu-hot-plug=false
--datacenter-id string The unique Data Center Id (required)
-D, --depth int Level of detail for response objects (default 1)
--disc-virtio-hot-plug It is capable of Virt-IO drive hot plug (no reboot required). E.g.: --disc-virtio-plug=true, --disc-virtio-plug=false
--disc-virtio-hot-unplug It is capable of Virt-IO drive hot unplug (no reboot required). This works only for non-Windows virtual Machines. E.g.: --disc-virtio-unplug=true, --disc-virtio-unplug=false
-F, --filters strings Limit results to results containing the specified filter:KEY1=VALUE1,KEY2=VALUE2
-f, --force Force command to execute without user input
-h, --help Print usage
-a, --image-alias string The Image Alias to set instead of Image Id. A password or SSH Key need to be set
--image-id string The Image Id or Snapshot Id to be used as template for the new Volume. A password or SSH Key need to be set
--licence-type string Licence Type of the Volume. Can be one of: LINUX, RHEL, WINDOWS, WINDOWS2016, WINDOWS2019, WINDOWS2022, WINDOWS2025, UNKNOWN, OTHER (default "LINUX")
--limit int Maximum number of items to return per request (default 50)
-n, --name string Name of the Volume (default "Unnamed Volume")
--nic-hot-plug It is capable of nic hot plug (no reboot required). E.g.: --nic-hot-plug=true, --nic-hot-plug=false
--nic-hot-unplug It is capable of nic hot unplug (no reboot required). E.g.: --nic-hot-unplug=true, --nic-hot-unplug=false
--no-headers Don't print table headers when table output is used
--offset int Number of items to skip before starting to collect the results
--order-by string Property to order the results by
-o, --output string Desired output format [text|json|api-json] (default "text")
-p, --password string Initial password to be set for installed OS. Works with public Images only. Not modifiable. Password rules allows all characters from a-z, A-Z, 0-9
--query string JMESPath query string to filter the output
-q, --quiet Quiet output
--ram-hot-plug It is capable of memory hot plug (no reboot required). E.g.: --ram-hot-plug=true, --ram-hot-plug=false
-s, --size string The size of the Volume in GB. e.g.: --size 10 or --size 10GB. The maximum Volume size is determined by your contract limit (default "10")
-k, --ssh-key-paths string Absolute paths of the SSH Keys for the Volume
-t, --timeout int Timeout option for Request for Volume creation [seconds] (default 60)
--type string Type of the Volume (default "HDD")
--user-data string The cloud-init configuration for the Volume as base64 encoded string. It is mandatory to provide either 'public image' or 'imageAlias' that has cloud-init compatibility in conjunction with this property
-v, --verbose count Increase verbosity level [-v, -vv, -vvv]
-w, --wait-for-request Wait for the Request for Volume creation to be executedionosctl compute volume create --datacenter-id DATACENTER_ID --name NAME
ionosctl compute volume create --datacenter-id DATACENTER_ID --name NAME --image-alias IMAGE_ALIAS --ssh-keys-path "SSH_KEY_PATH1,SSH_KEY_PATH2"