S3 Api对象存储帐户验证问题

时间:2017-02-06 08:23:43

标签: ibm-cloud-infrastructure

我正在尝试获取用于创建存储的身份验证令牌

存储类型ID为24(S3 API)

我为'X-Auth-User'提供了有效的用户名值。

headers = {     'X-Auth-User':'xyz:xyz',     'X-Auth-Key':API_KEY, }

auth_token_resp = requests.get('https://mon01.objectstorage.softlayer.net/auth/v1.0',headers = headers)

'

未经授权

此服务器无法验证您是否有权访问您请求的文档。

'

同样的api正在为Swift Api使用不同的用户名。

请帮助我。

1 个答案:

答案 0 :(得分:0)

首先使用S3与使用swift不一样,使用S3时enpoints是不同的,连接也不同我建议你先看文档:

https://ibm-public-cos.github.io/crs-docs/crs-endpoints.html

这是关于身份验证的部分:

https://ibm-public-cos.github.io/crs-docs/crs-authentication.html

此致