预设策略名 | 授权范围描述 |
QcloudBatchFullAccess | 关联后,获得批量计算全部资源的读写访问权限 |
QcloudBatchReadOnlyAccess | 关联后,获得批量计算全部资源的读取权限 |
QcloudFullAccessForBatchRole | 关联后,获得在使用批量计算过程中使用腾讯云其他相关产品。例如 CVM、VPC、COS、CMQ Topic、CMQ Queue、CLS、monitor 的访问权限 |
资源类型 | 授权策略中的资源描述方法 |
作业相关 | qcs::batch:${region}:uin/${uin}:job/${jobId}/* |
计算环境相关 | qcs::batch:${region}:uin/${uin}:computeenv/${envId}/* |
任务模板相关 | qcs::batch:${region}:uin/${uin}:tasktemplate/${taskTemplateId}/* |
${region}
、${uin}
、${envId}
、${jobId}
、${taskTemplateId}
等变量参数修改为您实际的参数信息,同时您也可以在路径中使用 *
通配符。
访问管理策略中的 region、action、account、resource 等相关概念请参见 元素参见。*
。API 接口:action | 资源路径:resource |
CreateCpmComputeEnv | qcs::batch:${region}:uin/${uin}:computeenv/* |
CreateComputeEnv | qcs::batch:${region}:uin/${uin}:computeenv/* |
DeleteComputeEnv | qcs::batch:${region}:uin/${uin}:computeenv/${envId} |
ModifyComputeEnv | qcs::batch:${region}:uin/${uin}:computeenv/${envId} |
TerminateComputeNode | qcs::batch:${region}:uin/${uin}:computeenv/${envId} |
TerminateComputeNodes | qcs::batch:${region}:uin/${uin}:computeenv/${envId} |
DescribeComputeEnv | qcs::batch:${region}:uin/${uin}:computeenv/${envId} |
DescribeComputeEnvActivities | qcs::batch:${region}:uin/${uin}:computeenv/${envId} |
DescribeComputeEnvCreateInfo | qcs::batch:${region}:uin/${uin}:computeenv/${envId} |
DescribeComputeEnvCreateInfos | qcs::batch:${region}:uin/${uin}:computeenv/${envId} |
DescribeComputeEnvs | qcs::batch:${region}:uin/${uin}:computeenv/${envId} |
SubmitJob | qcs::batch:${region}:uin/${uin}:job/* |
RetryJobs | qcs::batch:${region}:uin/${uin}:job/${jobId} |
DeleteJob | qcs::batch:${region}:uin/${uin}:job/${jobId} |
TerminateJob | qcs::batch:${region}:uin/${uin}:job/${jobId} |
TerminateTaskInstance | qcs::batch:${region}:uin/${uin}:job/${jobId} |
DescribeJob | qcs::batch:${region}:uin/${uin}:job/${jobId} |
DescribeJobs | qcs::batch:${region}:uin/${uin}:job/${jobId} |
DescribeJobSubmitInfo | qcs::batch:${region}:uin/${uin}:job/${jobId} |
DescribeTask | qcs::batch:${region}:uin/${uin}:job/${jobId} |
DescribeTaskLogs | qcs::batch:${region}:uin/${uin}:job/${jobId} |
CreateTaskTemplate | qcs::batch:${region}:uin/${uin}:tasktemplate/* |
DeleteTaskTemplates | qcs::batch:${region}:uin/${uin}:tasktemplate/${taskTemplateId} |
ModifyTaskTemplate | qcs::batch:${region}:uin/${uin}:tasktemplate/${taskTemplateId} |
DescribeTaskTemplates | qcs::batch:${region}:uin/${uin}:tasktemplate/${taskTemplateId} |
DetachInstances | qcs::batch:${region}:uin/${uin}:computeenv/${envId} |
AttachInstances | qcs::batch:${region}:uin/${uin}:computeenv/${envId} |
# 其中${uin}需要替换成账号信息, ${envId}需要替换成相应的envId{"version": "2.0","statement": [{"effect": "allow","action": ["name/batch:*"],"resource": ["qcs::batch:${region}:uin/${uin}:computeenv/*"]},{"effect": "deny","action": ["name/batch:*"],"resource": ["qcs::batch:${region}:uin/${uin}:computeenv/${envId}"]}]}
# 其中${uin}需要替换成账号信息{"version": "2.0","statement": [{"effect": "allow","action": ["name/batch:DescribeJobs","name/batch:DescribeJobSubmitInfo","name/batch:DescribeJob","name/batch:DescribeTask","name/batch:DescribeTaskLogs"],"resource": ["qcs::batch:${region}:uin/${uin}:job/*"]}]}
本页内容是否解决了您的问题?