Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
491 views
in Technique[技术] by (71.8m points)

ibm cloud infrastructure - Softlayer Object Storage Auth Endpoint

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?

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

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

I also tried authentication using Http Basic authentication.

No luck on either.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Take a look the following link:

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

According to the link, you can get "X-Auth-User" and "X-Auth-Key" values in

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

where

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

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...