首页 文章

SoftLayer提供的登录凭据无效

提问于
浏览
1

我尝试了SL帐户和我的IBMid登录Softlayer门户(http://control.softlayer.com/),两者都运行正常 . 但是当我用SLcli(softlayer-python)尝试这些帐户时,它返回"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.

2 回答

  • 1

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

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

    作为一种解决方法,您可以在Python客户端中使用控件门户中显示的用户名和APIKey:

    • 登录控制门户

    • 单击Account-> Users菜单

    • 单击IBMid或用户名

    • 请参阅API访问信息(注意,一旦生成APIKey,将显示信息)

    enter image description here

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

    问候

  • 1

    如果您确定密码或API密钥是正确的,那么您应该验证您使用的是正确的用户名 . 换句话说,转到Control portal,导航到Users列表,然后单击 API Key 列下的 View 链接 . 应该有正确的用户名和API密钥信息 .

    enter image description here

相关问题