juju application-storage

Summary

Displays or sets storage directives for an application.

Usage

juju application-storage [options] <application-name> [<storage-name>[={<size>,<pool>,<count>}]] ...

Options

Flag

Default

Usage

-B, --no-browser-login

false

Do not use web browser for authentication

--color

false

Use ANSI color codes in output

--file

Path to yaml-formatted configuration file

--format

tabular

Specify output format (json|tabular|yaml)

-m, --model

Model to operate in. Accepts [<controller name>:]<model name>|<model UUID>

--no-color

false

Disable ANSI color codes in tabular output

-o, --output

Specify an output file

Examples

Print the storage directives for all storage names of the postgresql application:

juju application-storage postgresql

Print the storage directives for the storage name ‘pgdata’ of the postgresql application:

juju application-storage postgresql pgdata

Set the size to 10GiB, pool name to “rootfs”, and count to 1 for the mysql application’s ‘database’ storage specification:

juju application-storage mysql database=10G,rootfs,1

Details

A storage directive describes to juju how the storage required by a charm should be provisioned and takes the form <storage-name>[=<storage-specification>]; for details see https://documentation.ubuntu.com/juju/3.6/reference/storage/#storage-directive .

To view all storage directives for the given application:

juju application-storage <application>

By default, the storage directives will be printed in a tabular format. You can instead print it in json or yaml format using the --format flag:

juju application-storage &lt;application&gt; --format json
juju application-storage <application> --format yaml

To view the directive for a single storage name:

juju application-storage <application> <storage-name>

To set storage directives for an application:

juju application-storage <application> <storagename1>=<storage-specification> <storagename2>=<storage-specification> ...