zones

The multipass zones command lists all the availability zones known to Multipass, together with their current availability and the subnet reserved for instances launched into them.

For example:

Name    State        Subnet
zone1   Available    10.42.0.0/24
zone2   Available    10.42.1.0/24
zone3   Unavailable  10.42.2.0/24

A zone in the Unavailable state has been disabled with multipass disable-zones; instances cannot be launched into it, and any instances already in it are forcefully stopped until the zone is re-enabled with multipass enable-zones.

Like multipass list, multipass zones supports the --format option to get machine-readable output.

Note

The json, csv and yaml formats cover regular output only. Errors and log messages are printed to the standard error stream as plain text, with failures signaled by a non-zero exit status.

For example, multipass zones --format yaml:

zone1:
  available: true
  subnet: 10.42.0.0/24
zone2:
  available: true
  subnet: 10.42.1.0/24
zone3:
  available: false
  subnet: 10.42.2.0/24

The full multipass help zones output explains the available options:

Usage: multipass zones [options]
List all availability zones, along with their availability status.

Options:
  -h, --help          Displays help on commandline options
  -v, --verbose       Increase logging verbosity. Repeat the 'v' in the short
                      option for more detail. Maximum verbosity is obtained with
                      4 (or more) v's, i.e. -vvvv.
  --format <format>   Output list in the requested format.
                      Valid formats are: table (default), json, csv and yaml. The
                      json, csv and yaml formats cover regular output only.
                      Errors and log messages are printed to the standard error
                      stream as plain text, with failures signaled by a
                      non-zero exit status.