访问控制(RAM)是阿里云提供的管理用户身份与资源访问权限的服务。使用RAM可以让您避免与其他用户共享阿里云账号密钥,并可按需为用户授予最小权限。RAM中使用权限策略描述授权的具体内容。
本文为您介绍弹性高性能计算(Ehpc)为RAM权限策略定义的操作(Action)、资源(Resource)和条件(Condition)。弹性高性能计算(Ehpc)的RAM代码(RamCode)为ehpc,支持的授权粒度为OPERATION。
权限策略通用结构
权限策略支持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:AddContainerApp | AddContainerApp | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:AddExistedNodes | AddExistedNodes | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:AddLocalNodes | AddLocalNodes | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:AddNodes | AddNodes | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:AddQueue | AddQueue | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:AddUsers | AddUsers | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ApplyNodes | ApplyNodes | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:CreateCluster | CreateCluster | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:CreateHybridCluster | CreateHybridCluster | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:CreateJobFile | CreateJobFile | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:CreateJobTemplate | CreateJobTemplate | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:DeleteCluster | DeleteCluster | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:DeleteContainerApps | DeleteContainerApps | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:DeleteImage | DeleteImage | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:DeleteJobTemplates | DeleteJobTemplates | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:DeleteJobs | DeleteJobs | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:DeleteNodes | DeleteNodes | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:DeleteQueue | DeleteQueue | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:DeleteUsers | DeleteUsers | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:DescribeAutoScaleConfig | DescribeAutoScaleConfig | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:DescribeCluster | DescribeCluster | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:DescribeContainerApp | DescribeContainerApp | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:DescribeEstackImage | DescribeEstackImage | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:DescribeImage | DescribeImage | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:DescribeImageGatewayConfig | DescribeImageGatewayConfig | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:DescribeImagePrice | DescribeImagePrice | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:DescribeJob | DescribeJob | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:DescribePrice | DescribePrice | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:DescribeServerlessJobs | DescribeServerlessJobs | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:EditJobTemplate | EditJobTemplate | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:GetAccountingReport | GetAccountingReport | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:GetAutoScaleConfig | GetAutoScaleConfig | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:GetCloudMetricLogs | GetCloudMetricLogs | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:GetCloudMetricProfiling | GetCloudMetricProfiling | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:GetClusterVolumes | GetClusterVolumes | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:GetCommonImage | GetCommonImage | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 | |
ehpc:GetHybridClusterConfig | GetHybridClusterConfig | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:GetIfEcsTypeSupportHtConfig | GetIfEcsTypeSupportHtConfig | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:GetJobLog | GetJobLog | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:GetPostScripts | GetPostScripts | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:GetSchedulerInfo | GetSchedulerInfo | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:GetUserImage | GetUserImage | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 | |
ehpc:GetVisualServiceStatus | GetVisualServiceStatus | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:InitializeEHPC | InitializeEHPC | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:InspectImage | InspectImage | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 | |
ehpc:InstallSoftware | InstallSoftware | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:InvokeShellCommand | InvokeShellCommand | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListAvailableEcsTypes | ListAvailableEcsTypes | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListCloudMetricProfilings | ListCloudMetricProfilings | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListClusterLogs | ListClusterLogs | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListClusters | ListClusters | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListClustersMeta | ListClustersMeta | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListCommands | ListCommands | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListCommunityImages | ListCommunityImages | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListContainerApps | ListContainerApps | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListContainerImages | ListContainerImages | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListCpfsFileSystems | ListCpfsFileSystems | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListCurrentClientVersion | ListCurrentClientVersion | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListCustomImages | ListCustomImages | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListFileSystemWithMountTargets | ListFileSystemWithMountTargets | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListImages | ListImages | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListInstalledSoftware | ListInstalledSoftware | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListInvocationResults | ListInvocationResults | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListInvocationStatus | ListInvocationStatus | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListJobTemplates | ListJobTemplates | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListJobs | ListJobs | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListJobsWithFilters | ListJobsWithFilters | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListNodes | ListNodes | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListNodesByQueue | ListNodesByQueue | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListNodesNoPaging | ListNodesNoPaging | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListPreferredEcsTypes | ListPreferredEcsTypes | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListQueues | ListQueues | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListRegions | ListRegions | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListSecurityGroups | ListSecurityGroups | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListServerlessJobs | ListServerlessJobs | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListSoftwares | ListSoftwares | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListTasks | ListTasks | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListUpgradeClients | ListUpgradeClients | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListUsers | ListUsers | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListUsersAsync | ListUsersAsync | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ListVolumes | ListVolumes | Read | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ModifyClusterAttributes | ModifyClusterAttributes | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ModifyContainerAppAttributes | ModifyContainerAppAttributes | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ModifyImageGatewayConfig | ModifyImageGatewayConfig | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ModifyUserGroups | ModifyUserGroups | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ModifyUserPasswords | ModifyUserPasswords | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ModifyVisualServicePasswd | ModifyVisualServicePasswd | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:PullImage | PullImage | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:RecoverCluster | RecoverCluster | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:RerunJobs | RerunJobs | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:ResetNodes | ResetNodes | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:RunCloudMetricProfiling | RunCloudMetricProfiling | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:SetAutoScaleConfig | SetAutoScaleConfig | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:SetPostScripts | SetPostScripts | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:SetQueue | SetQueue | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:SetSchedulerInfo | SetSchedulerInfo | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:StartCluster | StartCluster | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:StartNodes | StartNodes | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:StartVisualService | StartVisualService | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:StopCluster | StopCluster | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:StopJobs | StopJobs | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:StopNodes | StopNodes | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:StopServerlessJobs | StopServerlessJobs | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:StopVisualService | StopVisualService | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:SubmitJob | SubmitJob | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:SubmitServerlessJob | SubmitServerlessJob | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:SummaryImagesInfo | SummaryImagesInfo | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 | |
ehpc:SyncUsers | SyncUsers | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:UninstallSoftware | UninstallSoftware | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:UpdateClusterVolumes | UpdateClusterVolumes | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:UpdateQueueConfig | UpdateQueueConfig | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
ehpc:UpgradeClient | UpgradeClient | Write | acs:ehpc:{#regionId}:{#accountId}:* | 无 | 无 |
资源(Resource)
弹性高性能计算(Ehpc)不支持在RAM权限策略语句的
Resource
中指定资源ARN。如果要允许对弹性高性能计算(Ehpc)的访问权限,请在策略语句中指定"Resource": "*"
。条件(Condition)
弹性高性能计算(Ehpc)未定义产品级别的条件关键字。如需查看适用于所有云产品的通用条件关键字,请参见通用条件关键字。