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

account

Enter keyword arguments in the form key=value.

Create an authorisation token

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

Create an authorisation OAuth token and OAuth consumer.

Keyword “name”

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

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 an authorisation token

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

Delete an authorisation OAuth token and the related OAuth consumer.

Keyword “token_key”

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

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 authorisation tokens

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

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

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

Modify authorisation token

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

Modify the consumer name of an authorisation OAuth token.

Keyword “token”

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

Keyword “name”

Required String. New name of the token.

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.