Command 'list-subnets'

Alias: subnets


List subnets known to Juju.


juju list-subnets [options] [--space <name>] [--zone <name>] [--format yaml|json] [--output <path>]


Flag Default Usage
--B, --no-browser-login false Do not use web browser for authentication
--format yaml Specify output format (json|yaml)
--m, --model Model to operate in. Accepts [<controller name>:]<model name>|<model UUID>
--o, --output Specify an output file
--space Filter results by space name
--zone Filter results by zone name


Displays a list of all subnets known to Juju. Results can be filtered using the optional --space and/or --zone arguments to only display subnets associated with a given network space and/or availability zone.

Like with other Juju commands, the output and its format can be changed using the --format and --output (or -o) optional arguments. Supported output formats include “yaml” (default) and “json”. To redirect the output to a file, use --output.

Last updated 7 months ago. Help improve this document in the forum.