下面的代码出了这个错误,请问我的帐号要怎么才能有调用ListAccessKeys的权限。
谢谢
错误信息是:
"You are not authorized to do this action. Resource: acs:ram:*:1474796784250055:user/THIS-IS-MY-ACCOUNT Action: ram:ListAccessKeys"
代码如下
from aliyunsdkasapi.ASClient import ASClient
from aliyunsdkasapi.AsapiRequest import AsapiRequest
client = ASClient("sdfgasdfq4rerwer", "asdfsfhqwerahutkyifasdfadf", "cn-hk-abcdefg",timeout=10000,
cert_file=None,
verify=False)
client.setSdkSource("asapi-260@asapi-inc.com")
endpoint = "https://public.asapi.cn-hk-abcdefg.ali.cloud.cn.abcdefg/asapi/v3"
request = AsapiRequest("Ram", "2015-05-01", "ListAccessKeys", endpoint)
request.set_method("POST")
response = client.do_request(request)
print(str(response, encoding='utf-8'))
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。