Softlayer对象存储Auth端点

时间:2016-01-25 17:48:36

标签: ibm-cloud-infrastructure

我一直在审核此处找到的Softlayer对象存储验证端点的文档:http://sldn.softlayer.com/article/Introduction-Object-Storage#Authentication_Endpoints

但是,我无法找到如何准确传递身份验证信息的示例 - 我是通过标头发送的吗?如果是,那么标题名称是什么?

我尝试使用以下终端:公共网络:https://dal05.objectstorage.softlayer.net/auth/v1.0

还使用诸如x-auth-token之类的标头作为密码,使用x-auth-user作为用户名。

我还尝试使用Http Basic身份验证进行身份验证。

两者都没有运气。

1 个答案:

答案 0 :(得分:2)

看一下以下链接:

Managing SoftLayer Object Storage Through REST APIs - “对对象存储进行身份验证”部分。

根据链接,您可以在

中获得“X-Auth-User”和“X-Auth-Key”值
  

控制门户。存储>>对象存储>>选择对象存储>>   选择Cluster(例如Dallas 5)>>查看凭据,

其中

  

“X-Auth-User”是指“用户名”
  “X-Auth-Key”指的是“API密钥”   (密码)”。

这是一个使用curl的例子:

curl -i -H "X-Auth-User: SLOS300001-10:rcuellar" -H "X-Auth-Key: 231222489e90646678364kjsdfhytwterd02599813f463619d5728e0293de8" https://dal05.objectstorage.softlayer.net/auth/v1.0