file

delete

Delete a file with the given file name.

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

Positional arguments

Argument

Effect

filename

The filename parameter

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

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

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

Positional arguments

Argument

Effect

filename

The filename parameter

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.

files create

Add a new file to the file storage.

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

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.

Keywords

Keyword “filename”

Optional String. The file name to use in storage.

Keyword “file”

Optional String. File data. Content type must be application/octet-stream.

Note: This command accepts JSON.

files delete

Delete a stored file.

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

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.

Keywords

Keyword “filename”

Optional String. The filename of the object to be deleted.

Note: This command accepts JSON.

files get

Get a named file from the file storage.

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

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.

Keywords

Keyword “filename”

Optional String. The name of the file.

Note: This command accepts JSON.

files get-by-key

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

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

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.

Keywords

Keyword “key”

Optional String. The file’s key.

Note: This command accepts JSON.

files read

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

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

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.

Keywords

Keyword “prefix”

Optional String. Prefix used to filter returned files.

Note: This command accepts JSON.