Preset Policies | Permissions Granted |
QcloudBatchFullAccess | Users associated with this policy will have full read and write access permissions to all BatchCompute resources. |
QcloudBatchReadOnlyAccess | Users associated with this policy will have read-only permission to all BatchCompute resources. |
QcloudFullAccessForBatchRole | Users associated with this policy will have access to other Tencent Cloud products while using BatchCompute. This includes access permissions for products such as CVM, VPC, COS, CMQ Topic, CMQ Queue, CLS, and Cloud Monitor. |
Resource Type | Resource Description Method in Authorization Policy |
Job-related | qcs::batch:${region}:uin/${uin}:job/${jobId}/* |
Computing environment-related | qcs::batch:${region}:uin/${uin}:computeenv/${envId}/* |
Task template-related | qcs::batch:${region}:uin/${uin}:tasktemplate/${taskTemplateId}/* |
API: action | Resource path: 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} |
# In this example, `${uin}` must be substituted with the account information, and `{envId}` must be substituted with the corresponding `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}"]}]}
# In this example, `${uin}` must be substituted with the account information{"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/*"]}]}
Was this page helpful?