Disk

rio disk

Manage cloud disks.

Create, list, and delete cloud disks.

rio disk [OPTIONS] COMMAND [ARGS]...

create

Creates a new cloud disk.

You can create a disk with a specific capacity and region. The command will create a disk and wait until it is ready to use.

Usage Examples:

Create a new 4GB disk in the JP region

$ rio disk create DISK_NAME –capacity 4 –region jp

rio disk create [OPTIONS] DISK_NAME

Options

--capacity <capacity>

Disk size in GiB. [4|8|16|32|64|128|256|512]

--region <region>

Region to create the disk in

Options:

jp | us

Arguments

DISK_NAME

Required argument

delete

Delete one or more disks with a name or a regex pattern.

You can specify a name or a regex pattern to delete one or more disks.

If you want to delete all the disks, then simply use the --all flag.

If you want to delete disks without confirmation, then use the --force or --silent or -f.

Usage Examples:

Delete a disk by name

$ rio disk delete DISK_NAME

Delete a disk without confirmation

$ rio disk delete DISK_NAME –force

Delete all disks in the project

$ rio disk delete –all

Delete disks using regex pattern

$ rio disk delete “DISK.*”

rio disk delete [OPTIONS] DISK_NAME_OR_REGEX

Options

-f, --force

Skip confirmation

-a, --all

Deletes all disks in the project

-w, --workers <workers>

Number of parallel workers while running deleting disks. Defaults to 10

Arguments

DISK_NAME_OR_REGEX

Required argument

list

List the disks in the current project.

Additionally, you can filter the list by labels using the --label or -l flag.

Usage Examples:

$ rio disk list -l app=postgres

rio disk list [OPTIONS]

Options

-l, --label <labels>

Filter the disk list by labels