存取控制(RAM)是阿里雲提供的系統管理使用者身份與資源存取權限的服務。使用 RAM 可以讓您避免與其他使用者共用阿里雲帳號密鑰,並可按需為使用者授予最小許可權。RAM 中使用權限原則描述授權的具體內容。
本文為您介紹 Auto Scaling 為 RAM 權限原則定義的操作(Action)、資源(Resource)和條件(Condition)。 Auto Scaling 的 RAM 代碼(RamCode)為 ess ,支援的授權粒度為 RESOURCE 。
權限原則通用結構
權限原則支援 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)
下表是Auto Scaling定義的操作,這些操作可以在 RAM 權限原則語句的Action元素中使用,用來授予執行該操作的許可權。下面對錶中的具體項提供說明:
操作:是指具體的許可權點。
API:是指操作對應的 API 介面。
存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。
資源類型:是指操作中支援授權的資源類型。具體說明如下:
對於必選的資源類型,用前面加 * 表示。
對於不支援資源級授權的操作,用
全部資源表示。
條件關鍵字:是指雲產品自身定義的條件關鍵字。該列不體現適用於任何操作的通用條件關鍵字。
關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。
|
操作 |
API |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
| ess:ModifyInstanceAttribute | ModifyInstanceAttribute | update |
*ScalingGroup
|
無 | 無 |
| ess:CreateScalingRule | CreateScalingRule | create |
*ScalingGroup
|
無 | 無 |
| ess:AttachInstances | AttachInstances | update |
*ScalingGroup
|
無 | 無 |
| ess:DescribeScheduledTasks | DescribeScheduledTasks | get |
*ScalingGroup
|
無 | 無 |
| ess:DescribeScalingGroupDiagnoseDetails | DescribeScalingGroupDiagnoseDetails | get |
*All Resource
|
無 | 無 |
| ess:ScaleWithAdjustment | ScaleWithAdjustment | update |
*ScalingGroup
|
無 | 無 |
| ess:DescribeEciScalingConfigurationDetail | DescribeEciScalingConfigurationDetail | get |
*ScalingGroup
|
無 | 無 |
| ess:DeleteScalingGroup | DeleteScalingGroup | delete |
*ScalingGroup
|
無 | 無 |
| ess:CompleteLifecycleAction | CompleteLifecycleAction | update |
*ScalingGroup
|
無 | 無 |
| ess:DeleteAlarm | DeleteAlarm | delete |
*ScalingGroup
|
無 | 無 |
| ess:DeleteScheduledTask | DeleteScheduledTask | delete |
*ScalingGroup
|
無 | 無 |
| ess:AttachLoadBalancers | AttachLoadBalancers | update |
*ScalingGroup
|
無 | 無 |
| ess:ListTagValues | ListTagValues | get |
*All Resource
|
無 | 無 |
| ess:DescribeDiagnoseReports | DescribeDiagnoseReports | get |
*All Resource
|
無 | 無 |
| ess:DescribeAlertConfiguration | DescribeAlertConfiguration | get |
*ScalingGroup
|
無 | 無 |
| ess:DescribeAlarms | DescribeAlarms | get |
*ScalingGroup
|
無 | 無 |
| ess:ExitStandby | ExitStandby | update |
*ScalingGroup
|
無 | 無 |
| ess:ModifyScalingRule | ModifyScalingRule | update |
*ScalingGroup
|
無 | 無 |
| ess:DisableScalingGroup | DisableScalingGroup | update |
*ScalingGroup
|
無 | 無 |
| ess:DescribeNotificationTypes | DescribeNotificationTypes | get |
*All Resource
|
無 | 無 |
| ess:EnterStandby | EnterStandby | update |
*ScalingGroup
|
無 | 無 |
| ess:QueryPredictiveValue | QueryPredictiveValue | get |
*ScalingGroup
|
無 | 無 |
| ess:DetachInstances | RemoveInstances | update |
*ScalingGroup
|
無 | 無 |
| ess:RecordLifecycleActionHeartbeat | RecordLifecycleActionHeartbeat | update |
*ScalingGroup
|
無 | 無 |
| ess:SuspendProcesses | SuspendProcesses | update |
*ScalingGroup
|
無 | 無 |
| ess:CancelInstanceRefresh | CancelInstanceRefresh | update |
*ScalingGroup
|
無 | 無 |
| ess:DescribeRegions | DescribeRegions | get |
*All Resource
|
無 | 無 |
| ess:ModifyScalingGroup | ModifyScalingGroup | update |
*ScalingGroup
|
無 | 無 |
| ess:DisableAlarm | DisableAlarm | update |
*ScalingGroup
|
無 | 無 |
| ess:ExecuteScalingRule | ExecuteScalingRule | update |
*ScalingGroup
|
無 | 無 |
| ess:AttachAlbServerGroups | AttachAlbServerGroups | update |
*ScalingGroup
|
無 | 無 |
| ess:CreateDiagnoseReport | CreateDiagnoseReport | create |
*All Resource
|
無 | 無 |
| ess:DescribePatternTypes | DescribePatternTypes | list |
*All Resource
|
無 | 無 |
| ess:ModifyScheduledTask | ModifyScheduledTask | update |
*ScalingGroup
|
無 | 無 |
| ess:QueryHistoricalMetric | QueryHistoricalMetric | get |
*ScalingGroup
|
無 | 無 |
| ess:ListTagKeys | ListTagKeys | get |
*All Resource
|
無 | 無 |
| ess:EnableScalingGroup | EnableScalingGroup | update |
*ScalingGroup
|
無 | 無 |
| ess:DeleteLifecycleHook | DeleteLifecycleHook | delete |
*ScalingGroup
|
無 | 無 |
| ess:SetGroupDeletionProtection | SetGroupDeletionProtection | update |
*ScalingGroup
|
無 | 無 |
| ess:DetachDBInstances | DetachDBInstances | none |
*ScalingGroup
|
無 | 無 |
| ess:CreateScalingGroup | CreateScalingGroup | create |
*ScalingGroup
|
無 | 無 |
| ess:CreateLifecycleHook | CreateLifecycleHook | create |
*ScalingGroup
|
無 | 無 |
| ess:DetachLoadBalancers | DetachLoadBalancers | update |
*ScalingGroup
|
無 | 無 |
| ess:CreateScalingConfiguration | CreateScalingConfiguration | create |
*All Resource
|
無 | 無 |
| ess:DeleteEciScalingConfiguration | DeleteEciScalingConfiguration | delete |
*ScalingGroup
|
無 | 無 |
| ess:DetachInstances | DetachInstances | update |
*ScalingGroup
|
無 | 無 |
| ess:SetInstanceHealth | SetInstanceHealth | update |
*ScalingGroup
|
無 | 無 |
| ess:ModifyAlertConfiguration | ModifyAlertConfiguration | update |
*ScalingGroup
|
無 | 無 |
| ess:ModifyAlarm | ModifyAlarm | update |
*ScalingGroup
|
無 | 無 |
| ess:ModifyScalingConfiguration | ModifyScalingConfiguration | update |
*ScalingGroup
|
無 | 無 |
| ess:DetachServerGroups | DetachServerGroups | update |
*ScalingGroup
|
無 | 無 |
| ess:CreateEciScalingConfiguration | CreateEciScalingConfiguration | create |
*ScalingGroup
|
無 | 無 |
| ess:ModifyNotificationConfiguration | ModifyNotificationConfiguration | update |
*ScalingGroup
|
無 | 無 |
| ess:DescribeScalingConfigurations | DescribeScalingConfigurations | get |
*ScalingGroup
|
無 | 無 |
| ess:AttachDBInstances | AttachDBInstances | update |
*ScalingGroup
|
無 | 無 |
| ess:DescribeCandidateInstanceType | DescribeCandidateInstanceType | get |
*All Resource
|
無 | 無 |
| ess:RebalanceInstances | RebalanceInstances | update |
*ScalingGroup
|
無 | 無 |
| ess:ApplyEciScalingConfiguration | ApplyEciScalingConfiguration | create |
*All Resource
|
無 | 無 |
| ess:QueryPredictiveTaskInfo | QueryPredictiveTaskInfo | get |
*ScalingGroup
|
無 | 無 |
| ess:ListTagResources | ListTagResources | get |
*ScalingGroup
|
無 | 無 |
| ess:DescribeRegions | VerifyUser | get |
*All Resource
|
無 | 無 |
| ess:ChangeResourceGroup | ChangeResourceGroup | update |
*ScalingGroup
|
無 | 無 |
| ess:UntagResources | UntagResources | update |
*ScalingGroup
|
無 | 無 |
| ess:DescribeScalingActivities | DescribeScalingActivities | get |
*ScalingGroup
|
無 | 無 |
| ess:CreateNotificationConfiguration | CreateNotificationConfiguration | create |
*ScalingGroup
|
無 | 無 |
| ess:CreateScheduledTask | CreateScheduledTask | create |
*ScalingGroup
|
無 | 無 |
| ess:AttachVServerGroups | AttachVServerGroups | update |
*ScalingGroup
|
無 | 無 |
| ess:ApplyScalingGroup | ApplyScalingGroup | create |
*All Resource
|
無 | 無 |
| ess:QueryPredictiveMetric | QueryPredictiveMetric | get |
*ScalingGroup
|
無 | 無 |
| ess:DescribeNotificationConfigurations | DescribeNotificationConfigurations | get |
*ScalingGroup
|
無 | 無 |
| ess:EnableAlarm | EnableAlarm | update |
*ScalingGroup
|
無 | 無 |
| ess:TagResources | TagResources | update |
*ScalingGroup
|
無 | 無 |
| ess:ModifyLifecycleHook | ModifyLifecycleHook | update |
*ScalingGroup
|
無 | 無 |
| ess:DescribeScalingActivityStatistics | DescribeScalingActivityStatistics | get |
*All Resource
|
無 | 無 |
| ess:DetachVServerGroups | DetachVServerGroups | update |
*ScalingGroup
|
無 | 無 |
| ess:StartInstanceRefresh | StartInstanceRefresh | update |
*ScalingGroup
|
無 | 無 |
| ess:DeleteDiagnoseReport | DeleteDiagnoseReport | delete |
*All Resource
|
無 | 無 |
| ess:AttachServerGroups | AttachServerGroups | update |
*ScalingGroup
|
無 | 無 |
| ess:DescribeRegions | VerifyAuthentication |
*All Resource
|
無 | 無 | |
| ess:DetachAlbServerGroups | DetachAlbServerGroups | update |
*ScalingGroup
|
無 | 無 |
| ess:ResumeProcesses | ResumeProcesses | update |
*ScalingGroup
|
無 | 無 |
| ess:RollbackInstanceRefresh | RollbackInstanceRefresh | update |
*ScalingGroup
|
無 | 無 |
| ess:DescribeScalingRules | DescribeScalingRules | get |
*ScalingGroup
|
無 | 無 |
| ess:SuspendInstanceRefresh | SuspendInstanceRefresh | update |
*ScalingGroup
|
無 | 無 |
| ess:DescribeLifecycleHooks | DescribeLifecycleHooks | get |
*ScalingGroup
|
無 | 無 |
| ess:DescribeScalingInstances | DescribeScalingInstances | get |
*ScalingGroup
|
無 | 無 |
| ess:DescribeScalingActivityDetail | DescribeScalingActivityDetail | get |
*ScalingGroup
|
無 | 無 |
| ess:ResumeInstanceRefresh | ResumeInstanceRefresh | update |
*ScalingGroup
|
無 | 無 |
| ess:ModifyEciScalingConfiguration | ModifyEciScalingConfiguration | update |
*ScalingGroup
|
無 | 無 |
| ess:DeleteNotificationConfiguration | DeleteNotificationConfiguration | delete |
*ScalingGroup
|
無 | 無 |
| ess:DescribeScalingGroupDetail | DescribeScalingGroupDetail | get |
*ScalingGroup
|
無 | 無 |
| ess:DescribeScalingGroups | DescribeScalingGroups | get |
*ScalingGroup
|
無 | 無 |
| ess:SetInstancesProtection | SetInstancesProtection | update |
*ScalingGroup
|
無 | 無 |
| ess:DeleteScalingRule | DeleteScalingRule | delete |
*ScalingGroup
|
無 | 無 |
| ess:CreateAlarm | CreateAlarm | create |
*ScalingGroup
|
無 | 無 |
| ess:DescribeEciScalingConfigurations | DescribeEciScalingConfigurations | get |
*ScalingGroup
|
無 | 無 |
| ess:DescribeInstanceRefreshes | DescribeInstanceRefreshes | get |
*ScalingGroup
|
無 | 無 |
| ess:DescribeElasticStrength | DescribeElasticStrength | get |
*All Resource
|
無 | 無 |
| ess:DeleteScalingConfiguration | DeleteScalingConfiguration | delete |
*ScalingGroup
|
無 | 無 |
| ess:DescribeLimitation | DescribeLimitation | get |
*All Resource
|
無 | 無 |
| ess:DescribeInstanceCreateAndDeleteStatistics | DescribeInstanceCreateAndDeleteStatistics | get |
*All Resource
|
無 | 無 |
| ess:DescribeLifecycleActions | DescribeLifecycleActions | get |
*ScalingGroup
|
無 | 無 |
資源(Resource)
下表是Auto Scaling定義的資源,這些資源可以在 RAM 權限原則語句的Resource元素中使用,用來授予對該資源執行具體操作的許可權。 其中,資源 ARN 是資源在阿里雲上的唯一標識。具體說明如下:
{#}為變數標識,需要您替換為實際值。例如:{#ramcode}需要您替換為實際的雲端服務RAM代碼。*表示全部。例如:{#resourceType}為*時:表示全部資源。{#regionId}為*時:表示全部地區。{#accountId}為*時:表示全部阿里雲帳號。
資源類型 |
資源 ARN |
| ScalingGroup |
|
條件(Condition)
Auto Scaling未定義產品層級的條件關鍵字。如需查看適用於所有雲產品的通用條件關鍵字,請參見通用條件關鍵字。
相關操作
您可以建立自訂權限原則,並將權限原則授予 RAM 使用者、RAM 使用者組或 RAM 角色。具體操作如下: