Skip to main content

Your submission was sent successfully! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates from Canonical and upcoming events where you can meet our team.Close

Thank you for contacting us. A member of our team will be in touch shortly. Close

An error occurred while submitting your form. Please try again or file a bug report. Close

file

Enter keyword arguments in the form key=value.

Delete a file

maas $PROFILE file delete [--help] [-d] [-k] filename [data ...] 

Positional arguments

  • filename

Delete a file with the given file name.

Command-line options

Option Effect
–help, -h Show this help message and exit.
-d, --debug Display more information about API responses.
-k, --insecure Disable SSL certificate check

Read a stored file

maas $PROFILE file read [--help] [-d] [-k] filename [data ...] 

Positional arguments

  • filename

Reads a stored file with the given file name. The content of the file is base64-encoded.

Command-line options

Option Effect
–help, -h Show this help message and exit.
-d, --debug Display more information about API responses.
-k, --insecure Disable SSL certificate check

Delete a file

maas $PROFILE file delete [--help] [-d] [-k] filename [data ...] 

Positional arguments

  • filename

Delete a file with the given file name.

Command-line options

Option Effect
–help, -h Show this help message and exit.
-d, --debug Display more information about API responses.
-k, --insecure Disable SSL certificate check

Get a named file

maas $PROFILE files get [--help] [-d] [-k] [data ...] 

Get a named file from the file storage.

Keyword “filename”

Required String. The name of the file.

Command-line options

Option Effect
–help, -h Show this help message and exit.
-d, --debug Display more information about API responses.
-k, --insecure Disable SSL certificate check

Get a file by key

maas $PROFILE files get-by-key [--help] [-d] [-k] [data ...] 

Get a file from the file storage with the given key.

Keyword “key”

Required String. The file’s key.

Command-line options

Option Effect
–help, -h Show this help message and exit.
-d, --debug Display more information about API responses.
-k, --insecure Disable SSL certificate check

List files

maas $PROFILE files read [--help] [-d] [-k] [data ...] 

List the files from the file storage. The returned files are ordered by file name and the content is excluded.

Keyword “prefix”

Optional String. Prefix used to filter returned files.

Command-line options

Option Effect
–help, -h Show this help message and exit.
-d, --debug Display more information about API responses.
-k, --insecure Disable SSL certificate check

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