CLI命令登录maas
- 第一步:创建用户
- 第二步:生成apikey
- 第三步:登录
第一步:创建用户
maas createadmin
第二步:生成apikey
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 查看命令帮助
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)