CAM中产品名 | 角色名称 | 角色类型 | 角色载体 |
---|---|---|---|
实时音视频 | TRTC_QCSLinkedRoleInCOSAccess | 服务相关角色 | cosaccess.trtc.cloud.tencent.com |
实时音视频 | TRTC_QCSLinkedRoleIntrtcCloudRecording | 服务相关角色 | trtccloudrecording.trtc.cloud.tencent.com |
使用场景: TRTC授权访问cos
权限策略
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cos:DeleteBucket",
"cos:PutBucket",
"cos:GetBucket",
"cos:PutObjectCopy",
"cos:DeleteObject",
"cos:PostObject",
"cos:PutObject",
"cos:GetBucketOrigin",
"cos:GetObject",
"cos:DeleteBucketOrigin",
"cos:AppendObject"
],
"resource": "*"
}
]
}
使用场景: 当前角色为实时音视频(TRTC)服务相关角色,该角色将在已关联策略的权限范围内访问您的其他云服务资源。
权限策略
{
"version": "2.0",
"statement": [
{
"action": [
"cos:GetService",
"cos:GetBucket",
"cos:ListMultipartUploads",
"cos:GetObject",
"cos:HeadObject",
"cos:GetBucketObjectVersions",
"cos:OptionsObject",
"cos:ListParts",
"cos:PostObject",
"cos:PostObjectRestore",
"cos:PutObject",
"cos:InitiateMultipartUpload",
"cos:UploadPart",
"cos:UploadPartCopy",
"cos:CompleteMultipartUpload",
"cos:AbortMultipartUpload",
"cos:AppendObject"
],
"resource": "*",
"effect": "allow"
}
]
}
本页内容是否解决了您的问题?