SoftLayer 提供的登录凭据无效

SoftLayer Invalid login credentials provided

我尝试使用 SL 帐户和我的 IBMid 登录 Softlayer 门户 (http://control.softlayer.com/),两者都工作正常。 但是当我用 SLcli (softlayer-python) 尝试这些帐户时,它 returns "Invalid login credentials provided".

有人遇到过这个问题吗?

steve@k8s-1:~$ 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.

如果您确定密码或 API 密钥正确,则应验证您使用的用户名是否正确。换句话说,转到控制门户,导航到用户列表,然后单击 API 键下的 View link 列。应该有正确的用户名和API关键信息。

这是 Python 客户端的问题,我报告了这个问题:

https://github.com/softlayer/softlayer-python/issues/783

作为解决方法,您可以在 Python 客户端中使用控制门户中显示的用户名和 API 密钥:

  1. 登录控制门户
  2. 点击帐户-> 用户菜单
  3. 单击 IBMid 或用户名
  4. 查看 API 访问信息(请注意,一旦您的 API 密钥生成,该信息就会显示)

如果您对此仍有疑问,请告诉我。

此致