软层对象存储身份验证端点 [英] Softlayer Object Storage Auth Endpoint

查看:100
本文介绍了软层对象存储身份验证端点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在查看有关Softlayer对象存储身份验证终结点的文档,该文档位于以下位置: http://sldn.softlayer.com/article/Introduction-Object-Storage#Authentication_Endpoints

I've been reviewing documentation for the Softlayer object storage auth endpoint found here: http://sldn.softlayer.com/article/Introduction-Object-Storage#Authentication_Endpoints

但是,我找不到如何准确传递身份验证信息的任何示例-我是否通过标头发送身份验证信息?如果是这样,标题名称是什么?

However I can't find any examples of how to exactly pass the authentication information over - do I send it via headers? If so what are the header names?

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

I've tried using the following endpoint: Public Network: https://dal05.objectstorage.softlayer.net/auth/v1.0

并且还使用诸如x-auth-ken的标头作为密码,并使用x-auth-user的用户名.

And also using headers such as x-auth-token for the password and x-auth-user for the username.

我还尝试了使用Http Basic身份验证的身份.

I also tried authentication using Http Basic authentication.

也没有运气.

推荐答案

看看以下链接:

通过REST API管理SoftLayer对象存储-验证对象存储"部分.

Managing SoftLayer Object Storage Through REST APIs - "Authenticating to the Object Storage" section.

根据链接,您可以在

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

Control Portal. Storage >> Object Storage >> Select Object Storage >> Select Cluster (e.g. Dallas 5) >> View Credentials,

其中

"X-Auth-User"是指用户名"
"X-Auth-Key"是指"API密钥 (密码)".

"X-Auth-User" refers to "Username"
"X-Auth-Key" refers to "API Key (Password)".

以下是使用curl的示例:

Here an example using curl:

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

这篇关于软层对象存储身份验证端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆