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

login

Log in to a remote API, and remember its description and credentials.

maas login [-h] [--cacerts CACERTS] [-k] profile-name url [credentials] 

Positional arguments

Argument Effect
profile-name The name with which you will later refer to this remote
server and credentials within this tool
url The URL of the remote API, e.g. http://example.com/MAAS/
or http://example.com/MAAS/api/2.0/ if you wish to
specify the API version
credentials The credentials, also known as the API key, for the
remote MAAS server. These can be found in the user
preferences page in the web UI; they take the form of a
long random-looking string composed of three parts,
separated by colons

Command-line options

Option Effect
-h, --help show this help message and exit
–cacerts CACERTS Certificate CA file in PEM format
-k, --insecure Disable SSL certificate check

If credentials are not provided on the command-line, they will be prompted for interactively.

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