SoftLayer提供的登录凭证无效
问题描述:
我试过SL帐户,我的IBMid登录Softlayer门户(http://control.softlayer.com/),两者都正常工作。 但是,当我用SLcli(softlayer-python)试用这些帐户时,它会返回“提供的无效登录凭证”。SoftLayer提供的登录凭证无效
有人遇到过这个问题吗?
[email protected]:~$ slcli -v config setup
Username [xxxxx]:
API Key or Password [xxxxxx]:
..............
Starting new HTTPS connection (1): api.softlayer.com
https://api.softlayer.com:443 "POST /xmlrpc/v3.1//SoftLayer_User_Customer HTTP/1.1" 200 236
=== RESPONSE ===
{'Content-Length': '236', 'Content-Encoding': 'gzip', 'Vary': 'Accept-Encoding', 'Server': 'Apache', 'Connection': 'close', 'ntCoent-Length': '420', 'Cache-Control': 'private', 'Date': 'Thu, 24 Nov 2016 06:07:03 GMT', 'X-Frame-Options': 'SAMEORIGIN', 'Content-Type': 'text/xml'}
.......
SoftLayerAPIError(SoftLayer_Exception_User_Customer_LoginFailed): Invalid login credentials provided.
答
这与Python客户端的问题,我报告的问题:
https://github.com/softlayer/softlayer-python/issues/783
作为一种变通方法,您可以使用,在Python客户端,用户名和APIKey显示控制门户为:
- 登录到控制门户
- 点击帐户 - >用户菜单
- 点击IBMid或用户名
- 见API访问信息(一旦你APIKey已经产生,请注意信息将显示)
设在我知道你是否仍然有这个问题。
Regards
谢谢。我误解了API密钥。 –
Python客户端应该使用您的用户名和apikey或您的用户名和密码(用于控制的用户名和密码),但是当IBMid帐户添加到softlayer时它已被破坏。 –