account

Manage the current logged-in user.

Usage

maas $PROFILE account [-h] COMMAND ...

Command-line options

Option Action
h, --help show this help message and exit

COMMANDS

  • create-authorisation-token: Create an authorisation token
  • delete-authorisation-token: Delete an authorisation token
  • list-authorisation-tokens: List authorisation tokens
  • update-token-name: Modify authorisation token

Create an authorisation token

Usage

maas $PROFILE account create-authorisation-token [--help] [-d] [-k] [data ...]

This method accepts keyword arguments. Pass each argument as a key-value pair with an equals sign between the key and the value: key1=value1 key2=value key3=value3. Keyword arguments must come after any positional arguments.

Create an authorisation OAuth token and OAuth consumer.

Data parameter “name”

Optional. Optional name of the token that will be generated. Type: String.

Command-line options

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

Delete an authorisation token

Delete an authorisation OAuth token and the related OAuth consumer.

Usage

maas $PROFILE account delete-authorisation-token [--help] [-d] [-k] [data ...]

This method accepts keyword arguments. Pass each argument as a key-value pair with an equals sign between the key and the value: key1=value1 key2=value key3=value3. Keyword arguments must come after any positional arguments.

Data parameter “token_key”

Required. The key of the token to be deleted. Type: String.

Command-line options

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

List authorisation tokens

List authorisation tokens available to the currently logged-in user.

Usage

maas $PROFILE account list-authorisation-tokens [--help] [-d] [-k] [data ...]

Command-line options

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

Modify authorisation token

Modify the consumer name of an authorisation OAuth token.

Usage

maas $PROFILE account update-token-name [--help] [-d] [-k] [data ...]

This method accepts keyword arguments. Pass each argument as a key-value pair with an equals sign between the key and the value: key1=value1 key2=value key3=value3. Keyword arguments must come after any positional arguments.

Data parameter “token”

Required. Can be the whole token or only the token key. Type: String

Data parameter “name”

Required. New name of the token. Type: String

Command-line options

Option Action
-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 days ago.