访问控制(RAM)是阿里云提供的管理用户身份与资源访问权限的服务。使用RAM可以让您避免与其他用户共享阿里云账号密钥,并可按需为用户授予最小权限。RAM中使用权限策略描述授权的具体内容。
本文为您介绍弹性高性能计算(EHPC)为RAM权限策略定义的操作(Action)、资源(Resource)和条件(Condition)。弹性高性能计算(EHPC)的RAM代码(RamCode)为 ehpc,支持的授权粒度为操作级。
权限策略通用结构
权限策略支持JSON格式,其通用结构如下:
{
"Version": "1",
"Statement": [
{
"Effect": "<Effect>",
"Action": "<Action>",
"Resource": "<Resource>",
"Condition": {
"<Condition_operator>": {
"<Condition_key>": [
"<Condition_value>"
]
}
}
}
]
}
- Effect:权限策略效果。取值:Allow(允许)、Deny(拒绝)。
- Action:授予允许或拒绝权限的具体操作。具体信息,请参见操作(Action)。
- Resource:受操作影响的具体对象,您可以使用资源ARN来描述指定资源。具体信息,请参见资源(Resource)。
- Condition:指授权生效的条件。可选字段。具体信息,请参见条件(Condition)。
- Condition_operator:条件运算符,不同类型的条件对应不同的条件运算符。具体信息,请参见权限策略基本元素。
- Condition_key:条件关键字。
- Condition_value:条件关键字对应的值。
操作(Action)
下表是弹性高性能计算(EHPC)定义的操作,这些操作可以在RAM权限策略语句的Action
元素中使用,用来授予执行该操作的权限。下面对表中的具体项提供说明:- 操作:是指具体的权限点。
- API:是指操作对应的API接口。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用前面加 * 表示。
- 对于不支持资源级授权的操作,用
全部资源
表示。
- 条件关键字:是指云产品自身定义的条件关键字。该列不体现适用于任何操作的通用条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作 | API | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
---|---|---|---|---|---|
ehpc:AddExistedNodes | AddExistedNodes | *全部资源 * | 无 | 无 | |
ehpc:AddLocalNodes | AddLocalNodes | WRITE | *全部资源 * | 无 | 无 |
ehpc:AddNodes | AddNodes | WRITE | *全部资源 * | 无 | 无 |
ehpc:AddQueue | AddQueue | WRITE | *全部资源 * | 无 | 无 |
ehpc:AddSecurityGroup | AddSecurityGroup | *全部资源 * | 无 | 无 | |
ehpc:AddUsers | AddUsers | WRITE | *全部资源 * | 无 | 无 |
ehpc:ApplyNodes | ApplyNodes | *全部资源 * | 无 | 无 | |
ehpc:CreateCluster | CreateCluster | WRITE | *全部资源 * | 无 | 无 |
ehpc:CreateHybridCluster | CreateHybridCluster | WRITE | *全部资源 * | 无 | 无 |
ehpc:CreateJobFile | CreateJobFile | WRITE | *全部资源 * | 无 | 无 |
ehpc:CreateJobTemplate | CreateJobTemplate | WRITE | *全部资源 * | 无 | 无 |
ehpc:DeleteCluster | DeleteCluster | WRITE | *全部资源 * | 无 | 无 |
ehpc:DeleteJobTemplates | DeleteJobTemplates | WRITE | *全部资源 * | 无 | 无 |
ehpc:DeleteJobs | DeleteJobs | WRITE | *全部资源 * | 无 | 无 |
ehpc:DeleteNodes | DeleteNodes | WRITE | *全部资源 * | 无 | 无 |
ehpc:DeleteQueue | DeleteQueue | WRITE | *全部资源 * | 无 | 无 |
ehpc:DeleteSecurityGroup | DeleteSecurityGroup | *全部资源 * | 无 | 无 | |
ehpc:DeleteUsers | DeleteUsers | WRITE | *全部资源 * | 无 | 无 |
ehpc:DescribeAutoScaleConfig | DescribeAutoScaleConfig | READ | *全部资源 * | 无 | 无 |
ehpc:DescribeCluster | DescribeCluster | READ | *全部资源 * | 无 | 无 |
ehpc:DescribeEstackImage | DescribeEstackImage | *全部资源 * | 无 | 无 | |
ehpc:DescribeImagePrice | DescribeImagePrice | READ | *全部资源 * | 无 | 无 |
ehpc:DescribeJob | DescribeJob | READ | *全部资源 * | 无 | 无 |
ehpc:DescribePrice | DescribePrice | READ | *全部资源 * | 无 | 无 |
ehpc:DescribeServerlessJobs | DescribeServerlessJobs | *全部资源 * | 无 | 无 | |
ehpc:EditJobTemplate | EditJobTemplate | WRITE | *全部资源 * | 无 | 无 |
ehpc:GetAccountingReport | GetAccountingReport | READ | *全部资源 * | 无 | 无 |
ehpc:GetAutoScaleConfig | GetAutoScaleConfig | READ | *全部资源 * | 无 | 无 |
ehpc:GetCloudMetricLogs | GetCloudMetricLogs | READ | *全部资源 * | 无 | 无 |
ehpc:GetCloudMetricProfiling | GetCloudMetricProfiling | READ | *全部资源 * | 无 | 无 |
ehpc:GetClusterVolumes | GetClusterVolumes | READ | *全部资源 * | 无 | 无 |
ehpc:GetHybridClusterConfig | GetHybridClusterConfig | READ | *全部资源 * | 无 | 无 |
ehpc:GetIfEcsTypeSupportHtConfig | GetIfEcsTypeSupportHtConfig | READ | *全部资源 * | 无 | 无 |
ehpc:GetJobLog | GetJobLog | *全部资源 * | 无 | 无 | |
ehpc:GetPostScripts | GetPostScripts | *全部资源 * | 无 | 无 | |
ehpc:GetSchedulerInfo | GetSchedulerInfo | *全部资源 * | 无 | 无 | |
ehpc:GetVisualServiceStatus | GetVisualServiceStatus | READ | *全部资源 * | 无 | 无 |
ehpc:InitializeEHPC | InitializeEHPC | *全部资源 * | 无 | 无 | |
ehpc:InstallSoftware | InstallSoftware | WRITE | *全部资源 * | 无 | 无 |
ehpc:InvokeShellCommand | InvokeShellCommand | WRITE | *全部资源 * | 无 | 无 |
ehpc:ListAvailableEcsTypes | ListAvailableEcsTypes | READ | *全部资源 * | 无 | 无 |
ehpc:ListCloudMetricProfilings | ListCloudMetricProfilings | READ | *全部资源 * | 无 | 无 |
ehpc:ListClusterLogs | ListClusterLogs | READ | *全部资源 * | 无 | 无 |
ehpc:ListClusters | ListClusters | READ | *全部资源 * | 无 | 无 |
ehpc:ListClustersMeta | ListClustersMeta | READ | *全部资源 * | 无 | 无 |
ehpc:ListCommands | ListCommands | READ | *全部资源 * | 无 | 无 |
ehpc:ListCommunityImages | ListCommunityImages | *全部资源 * | 无 | 无 | |
ehpc:ListCpfsFileSystems | ListCpfsFileSystems | READ | *全部资源 * | 无 | 无 |
ehpc:ListCurrentClientVersion | ListCurrentClientVersion | READ | *全部资源 * | 无 | 无 |
ehpc:ListCustomImages | ListCustomImages | READ | *全部资源 * | 无 | 无 |
ehpc:ListFileSystemWithMountTargets | ListFileSystemWithMountTargets | READ | *全部资源 * | 无 | 无 |
ehpc:ListImages | ListImages | READ | *全部资源 * | 无 | 无 |
ehpc:ListInstalledSoftware | ListInstalledSoftware | READ | *全部资源 * | 无 | 无 |
ehpc:ListInvocationResults | ListInvocationResults | READ | *全部资源 * | 无 | 无 |
ehpc:ListInvocationStatus | ListInvocationStatus | READ | *全部资源 * | 无 | 无 |
ehpc:ListJobTemplates | ListJobTemplates | READ | *全部资源 * | 无 | 无 |
ehpc:ListJobs | ListJobs | READ | *全部资源 * | 无 | 无 |
ehpc:ListJobsWithFilters | ListJobsWithFilters | *全部资源 * | 无 | 无 | |
ehpc:ListNodes | ListNodes | READ | *全部资源 * | 无 | 无 |
ehpc:ListNodesByQueue | ListNodesByQueue | READ | *全部资源 * | 无 | 无 |
ehpc:ListNodesNoPaging | ListNodesNoPaging | READ | *全部资源 * | 无 | 无 |
ehpc:ListPreferredEcsTypes | ListPreferredEcsTypes | READ | *全部资源 * | 无 | 无 |
ehpc:ListQueues | ListQueues | READ | *全部资源 * | 无 | 无 |
ehpc:ListRegions | ListRegions | READ | *全部资源 * | 无 | 无 |
ehpc:ListSecurityGroups | ListSecurityGroups | *全部资源 * | 无 | 无 | |
ehpc:ListServerlessJobs | ListServerlessJobs | *全部资源 * | 无 | 无 | |
ehpc:ListSoftwares | ListSoftwares | READ | *全部资源 * | 无 | 无 |
ehpc:ListTagResources | ListTagResources | *全部资源 * | 无 | 无 | |
ehpc:ListTasks | ListTasks | *全部资源 * | 无 | 无 | |
ehpc:ListUpgradeClients | ListUpgradeClients | *全部资源 * | 无 | 无 | |
ehpc:ListUsers | ListUsers | READ | *全部资源 * | 无 | 无 |
ehpc:ListUsersAsync | ListUsersAsync | *全部资源 * | 无 | 无 | |
ehpc:ListVolumes | ListVolumes | READ | *全部资源 * | 无 | 无 |
ehpc:ModifyClusterAttributes | ModifyClusterAttributes | WRITE | *全部资源 * | 无 | 无 |
ehpc:ModifyUserGroups | ModifyUserGroups | WRITE | *全部资源 * | 无 | 无 |
ehpc:ModifyUserPasswords | ModifyUserPasswords | WRITE | *全部资源 * | 无 | 无 |
ehpc:ModifyVisualServicePasswd | ModifyVisualServicePasswd | WRITE | *全部资源 * | 无 | 无 |
ehpc:QueryServicePackAndPrice | QueryServicePackAndPrice | READ | *全部资源 * | 无 | 无 |
ehpc:RecoverCluster | RecoverCluster | WRITE | *全部资源 * | 无 | 无 |
ehpc:RerunJobs | RerunJobs | WRITE | *全部资源 * | 无 | 无 |
ehpc:ResetNodes | ResetNodes | WRITE | *全部资源 * | 无 | 无 |
ehpc:RunCloudMetricProfiling | RunCloudMetricProfiling | WRITE | *全部资源 * | 无 | 无 |
ehpc:SetAutoScaleConfig | SetAutoScaleConfig | WRITE | *全部资源 * | 无 | 无 |
ehpc:SetPostScripts | SetPostScripts | *全部资源 * | 无 | 无 | |
ehpc:SetQueue | SetQueue | WRITE | *全部资源 * | 无 | 无 |
ehpc:SetSchedulerInfo | SetSchedulerInfo | *全部资源 * | 无 | 无 | |
ehpc:StartCluster | StartCluster | WRITE | *全部资源 * | 无 | 无 |
ehpc:StartNodes | StartNodes | WRITE | *全部资源 * | 无 | 无 |
ehpc:StartVisualService | StartVisualService | WRITE | *全部资源 * | 无 | 无 |
ehpc:StopCluster | StopCluster | WRITE | *全部资源 * | 无 | 无 |
ehpc:StopJobs | StopJobs | WRITE | *全部资源 * | 无 | 无 |
ehpc:StopNodes | StopNodes | WRITE | *全部资源 * | 无 | 无 |
ehpc:StopServerlessJobs | StopServerlessJobs | *全部资源 * | 无 | 无 | |
ehpc:StopVisualService | StopVisualService | WRITE | *全部资源 * | 无 | 无 |
ehpc:SubmitJob | SubmitJob | WRITE | *全部资源 * | 无 | 无 |
ehpc:SubmitServerlessJob | SubmitServerlessJob | *全部资源 * | 无 | 无 | |
ehpc:SyncUsers | SyncUsers | *全部资源 * | 无 | 无 | |
ehpc:TagResources | TagResources | *全部资源 * | 无 | 无 | |
ehpc:UnTagResources | UnTagResources | *全部资源 * | 无 | 无 | |
ehpc:UninstallSoftware | UninstallSoftware | WRITE | *全部资源 * | 无 | 无 |
ehpc:UpdateClusterVolumes | UpdateClusterVolumes | WRITE | *全部资源 * | 无 | 无 |
ehpc:UpdateQueueConfig | UpdateQueueConfig | *全部资源 * | 无 | 无 | |
ehpc:UpgradeClient | UpgradeClient | WRITE | *全部资源 * | 无 | 无 |
资源(Resource)
弹性高性能计算(EHPC)不支持在RAM权限策略语句的
Resource
中指定资源ARN。如果要允许对弹性高性能计算(EHPC)的访问权限,请在策略语句中指定"Resource": "*"
。条件(Condition)
弹性高性能计算(EHPC)未定义产品级别的条件关键字。如需查看适用于所有云产品的通用条件关键字,请参见通用条件关键字。