雲計算

视频直播服务自定义RAM授权

业务场景
视频直播服务,系统默认的权限仅有AliyunLiveFullAccess,针对API接口所涉及的权限配置暂无详细说明
image.png
解决方案
1、视频直播服务API接口,官网链接:
https://help.aliyun.com/document_detail/48207.html?spm=a2c4g.11186623.6.692.529e7375EV5OUE
image.png
2、通过RAM自定义授权指定的API接口,方法如下:
{
"Version": "1",
"Statement": [
{










 "Action": "live: DescribeLiveStreamsOnlineList",
 "Resource": "acs:cdn:*:*:domain/***push.xxx.cn",
 "Effect": "Allow"

}
]
}

注意点
由于直播服务使用的CDN的资源,Action处写的API接口是live,Resource处写的产品是CDN。否则会提示报错:User not authorized to operate on the specified resource。
借鉴文档
https://help.aliyun.com/knowledge_detail/58963.html?spm=a2c4g.11186623.6.714.15281e2aShjKnH


Leave a Reply

Your email address will not be published. Required fields are marked *