maas cli

“maas list” – command is used to display a list of all the profiles that have been configured on the machine where the MAAS CLI is installed. A profile in MAAS represents a user session that has been authenticated and associated with a specific MAAS server using an API key.

maas admin machines read – list machines for admin profile

maas admin machines read | jq ‘.[].system_id’ – list system_id’s only for all machines for admin profile

maas admin account list-authorisation-tokens – list the API’s keys