我正在尝试获取用于创建存储的身份验证令牌
存储类型id为24 (S3接口)
我正在为'X-Auth-User‘提供有效的username值。
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。
在这件事上请帮帮我。
发布于 2017-02-06 19:49:06
首先,使用S3和使用swift是完全不同的,使用S3的端点是不同的,连接也是不同的,我建议你先看看文档:
https://ibm-public-cos.github.io/crs-docs/crs-endpoints.html
这是关于身份验证的部分:
https://ibm-public-cos.github.io/crs-docs/crs-authentication.html
问候
https://stackoverflow.com/questions/42063212
复制相似问题