开发者社区> 问答> 正文

sts 在oss 中使用


HttpResponse Object
(
    [body:HttpResponse:private] => {"RequestId":"693C0074-846A-4B4A3-AC8C-4465CDKD1EF3C","AssumedRoleUser":{"AssumedRoleId":"3625334471430959228:ray","Arn":"acs:ram::1341953643338:role/zxg-ray/ray"},"Credentials":{"AccessKeySecret":"9UfVrCHRjQfmREyE3qKrtoWgizgESMEH4Gc2yTK9UB","AccessKeyId":"STS.VjJnuEKo7PIhW1uyOFT2JK","Expiration":"2015-11-10T12:39:47Z","SecurityToken":"CAES7gIIARKAATcOhB3PDyhuvD5SXdQk2ir/eX50kZBISEU7RU34AXNZeoPUv5wL97s87J0wmyMNx/a+PwxVjHr1e3p4P4PkkyUoE5tn0ugKvnARMMZPjPjvvCMVNB6fh+cDGlKKU++iarF3d2M4Ky3oiBmHHA6fR30tcNRKW9k5KYFnyg9+fFT7GhhTVFMuVmpKbnVLbzdQSWgxdXlPRlQySksiEjM2MjUxNjM0NzE0MDk1OTIyOCoDcmF5MIqQo4uPKjoGUnNhTUQ1QlwKATEaVwoFQWxsb3cSLQoMQWN0aW9uRXF1YWxzEgZBY3Rpbsdfeb3NzOkdldCoKCW9zczDMaXN0KhIfCg5SZXNvdXJjZUVxdWFscxIIUmVzb3VyY2UaAwoBKkoQMTI3MTk1NDA4MTY0MzMzOFIFMjY4NDJaD0Fzc3VtZWRSb2xlVXNlcmAAahIzNjI1MTYzNDcxNDA5NTkyMjhyB3p4Zy1yYXk="}}
    [status:HttpResponse:private] => 200
)


我用sts 生成的AccessKeyId ,AccessKeySecret 和SecurityToken  放在oss里面上传失败, ret:403 创建bucket xxx FAIL ret:403 上传字符串到 /xxx/test.txt FAIL(最新的php sdk) 而用以前帐号的 OSS_ACCESS_ID和OSS_ACCESS_KEY 就可以上传

展开
收起
yireda 2015-11-10 19:55:17 10635 0
3 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
OSS运维进阶实战手册 立即下载
《OSS运维基础实战手册》 立即下载
OSS运维基础实战手册 立即下载