MAAS---CLI命令使用之登录篇【入门】


CLI命令登录maas

第一步:创建用户

maas createadmin

Username: admin

Password:

Again:

Email: admin@bai

Import SSH keys [] (lp:user-id or gh:user-id):

 第二步:生成api key

maas-region apikey --username=admin >api_key_file

cat api_key_file

7fC7qYnLG4Mtnd5rEr:K2Cu53nMZbyYRAFu64:wWgYXjqEaFHVPhJcmgA9vkq7JP6Ne2rJ

第三步:登录

maas login adminhttp://localhost:5240/MAAS/api/2.0

API key (leave empty for anonymous access):      #这里输入第二步生成的apikey

You are now logged in to the MAAS server at

http://localhost:5240/MAAS/api/2.0/with the profile name 'admin'.

For help with the available commands, try:

maas admin --help   ###使用--help 查看命令帮助

你可能感兴趣的:(MAAS---CLI命令使用之登录篇【入门】)