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

apikey

Manage a user’s API keys. Shows existing keys unless --generate or --delete is passed.

maas apikey [-h] [--username USERNAME] [--generate] [--delete DELETE] [--update UPDATE] [--name API_KEY_NAME] [--with-names]

Command-line options

Option Effect
-h, --help show this help message and exit
–username USERNAME Specifies the username for the admin.
–generate Generate a new api key.
–delete DELETE Delete the supplied api key.
–update UPDATE Update the supplied api key name.
–name API_KEY_NAME Name of the token. This argument should be passed to
–update or --generate options
–with-names Display tokens with their names.

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