访问控制(RAM)是阿里云提供的管理用户身份与资源访问权限的服务。使用RAM可以让您避免与其他用户共享阿里云账号密钥,并可按需为用户授予最小权限。RAM中使用权限策略描述授权的具体内容。
本文为您介绍运维事件中心(GEMP)为RAM权限策略定义的操作(Action)、资源(Resource)和条件(Condition)。运维事件中心(GEMP)的RAM代码(RamCode)为 gemp,支持的授权粒度为资源级。
权限策略通用结构
权限策略支持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)
下表是运维事件中心(GEMP)定义的操作,这些操作可以在RAM权限策略语句的Action元素中使用,用来授予执行该操作的权限。下面对表中的具体项提供说明:- 操作:是指具体的权限点。
- API:是指操作对应的API接口。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用前面加 * 表示。
- 对于不支持资源级授权的操作,用
全部资源表示。
- 条件关键字:是指云产品自身定义的条件关键字。该列不体现适用于任何操作的通用条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
| 操作 | API | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
|---|---|---|---|---|---|
| gemp:AddProblemServiceGroup | AddProblemServiceGroup | create | *全部资源 * | 无 | 无 |
| gemp:BillingStatistics | BillingStatistics | none | *全部资源 * | 无 | 无 |
| gemp:CancelProblem | CancelProblem | update | *全部资源 * | 无 | 无 |
| gemp:CheckWebhook | CheckWebhook | none | *全部资源 * | 无 | 无 |
| gemp:ConfirmIntegrationConfig | ConfirmIntegrationConfig | none | *全部资源 * | 无 | 无 |
| gemp:CreateEscalationPlan | CreateEscalationPlan | create | *全部资源 * | 无 | 无 |
| gemp:CreateIncident | CreateIncident | create | *全部资源 * | 无 | 无 |
| gemp:CreateIncidentSubtotal | CreateIncidentSubtotal | create | *全部资源 * | 无 | 无 |
| gemp:CreateIntegrationConfig | CreateIntegrationConfig | create | *全部资源 * | 无 | 无 |
| gemp:CreateProblem | CreateProblem | create | *全部资源 * | 无 | 无 |
| gemp:CreateProblemEffectionService | CreateProblemEffectionService | create | *全部资源 * | 无 | 无 |
| gemp:CreateProblemMeasure | CreateProblemMeasure | create | *全部资源 * | 无 | 无 |
| gemp:CreateProblemSubtotal | CreateProblemSubtotal | create | *全部资源 * | 无 | 无 |
| gemp:CreateProblemTimeline | CreateProblemTimeline | create | *全部资源 * | 无 | 无 |
| gemp:CreateProblemTimelines | CreateProblemTimelines | create | *全部资源 * | 无 | 无 |
| gemp:CreateRichText | CreateRichText | create | *全部资源 * | 无 | 无 |
| gemp:CreateRouteRule | CreateRouteRule | create | *全部资源 * | 无 | 无 |
| gemp:CreateService | CreateService | create | *全部资源 * | 无 | 无 |
| gemp:CreateServiceGroup | CreateServiceGroup | create | *全部资源 * | 无 | 无 |
| gemp:CreateServiceGroupScheduling | CreateServiceGroupScheduling | create | *全部资源 * | 无 | 无 |
| gemp:CreateSubscription | CreateSubscription | create | *全部资源 * | 无 | 无 |
| gemp:CreateTenantApplication | CreateTenantApplication | create | *全部资源 * | 无 | 无 |
| gemp:CreateUser | CreateUser | create | *全部资源 * | 无 | 无 |
| gemp:DeleteEscalationPlan | DeleteEscalationPlan | delete | *全部资源 * | 无 | 无 |
| gemp:DeleteIncident | DeleteIncident | delete | *全部资源 * | 无 | 无 |
| gemp:DeleteIntegrationConfig | DeleteIntegrationConfig | delete | *全部资源 * | 无 | 无 |
| gemp:DeleteProblem | DeleteProblem | delete | *全部资源 * | 无 | 无 |
| gemp:DeleteProblemEffectionService | DeleteProblemEffectionService | delete | *全部资源 * | 无 | 无 |
| gemp:DeleteProblemMeasure | DeleteProblemMeasure | delete | *全部资源 * | 无 | 无 |
| gemp:DeleteProblemTimeline | DeleteProblemTimeline | delete | *全部资源 * | 无 | 无 |
| gemp:DeleteRouteRule | DeleteRouteRule | delete | *全部资源 * | 无 | 无 |
| gemp:DeleteService | DeleteService | delete | *全部资源 * | 无 | 无 |
| gemp:DeleteServiceGroup | DeleteServiceGroup | delete | *全部资源 * | 无 | 无 |
| gemp:DeleteServiceGroupScheduling | DeleteServiceGroupScheduling | delete | *全部资源 * | 无 | 无 |
| gemp:DeleteServiceGroupUser | DeleteServiceGroupUser | delete | *全部资源 * | 无 | 无 |
| gemp:DeleteSubscription | DeleteSubscription | delete | *全部资源 * | 无 | 无 |
| gemp:DeleteUser | DeleteUser | delete | *全部资源 * | 无 | 无 |
| gemp:DeliverIncident | DeliverIncident | update | *全部资源 * | 无 | 无 |
| gemp:DisableEscalationPlan | DisableEscalationPlan | update | *全部资源 * | 无 | 无 |
| gemp:DisableIntegrationConfig | DisableIntegrationConfig | update | *全部资源 * | 无 | 无 |
| gemp:DisableRouteRule | DisableRouteRule | update | *全部资源 * | 无 | 无 |
| gemp:DisableServiceGroupWebhook | DisableServiceGroupWebhook | update | *全部资源 * | 无 | 无 |
| gemp:DisableSubscription | DisableSubscription | update | *全部资源 * | 无 | 无 |
| gemp:EnableEscalationPlan | EnableEscalationPlan | update | *全部资源 * | 无 | 无 |
| gemp:EnableIntegrationConfig | EnableIntegrationConfig | update | *全部资源 * | 无 | 无 |
| gemp:EnableRouteRule | EnableRouteRule | update | *全部资源 * | 无 | 无 |
| gemp:EnableServiceGroupWebhook | EnableServiceGroupWebhook | update | *全部资源 * | 无 | 无 |
| gemp:EnableSubscription | EnableSubscription | update | *全部资源 * | 无 | 无 |
| gemp:FinishIncident | FinishIncident | update | *全部资源 * | 无 | 无 |
| gemp:FinishProblem | FinishProblem | update | *全部资源 * | 无 | 无 |
| gemp:GeneratePictureLink | GeneratePictureLink | get | *全部资源 * | 无 | 无 |
| gemp:GeneratePictureUploadSign | GeneratePictureUploadSign | none | *全部资源 * | 无 | 无 |
| gemp:GenerateProblemPictureLink | GenerateProblemPictureLink | get | *全部资源 * | 无 | 无 |
| gemp:GenerateProblemPictureUploadSign | GenerateProblemPictureUploadSign | get | *全部资源 * | 无 | 无 |
| gemp:GetEscalationPlan | GetEscalationPlan | get | *全部资源 * | 无 | 无 |
| gemp:GetEvent | GetEvent | get | *全部资源 * | 无 | 无 |
| gemp:GetHomePageGuidance | GetHomePageGuidance | get | *全部资源 * | 无 | 无 |
| gemp:GetIncident | GetIncident | get | *全部资源 * | 无 | 无 |
| gemp:GetIncidentListByIdList | GetIncidentListByIdList | get | *全部资源 * | 无 | 无 |
| gemp:GetIncidentStatistics | GetIncidentStatistics | get | *全部资源 * | 无 | 无 |
| gemp:GetIncidentSubtotalCount | GetIncidentSubtotalCount | get | *全部资源 * | 无 | 无 |
| gemp:GetIntegrationConfig | GetIntegrationConfig | get | *全部资源 * | 无 | 无 |
| gemp:GetProblem | GetProblem | get | *全部资源 * | 无 | 无 |
| gemp:GetProblemEffectionService | GetProblemEffectionService | get | *全部资源 * | 无 | 无 |
| gemp:GetProblemImprovement | GetProblemImprovement | get | *全部资源 * | 无 | 无 |
| gemp:GetProblemPreview | GetProblemPreview | get | *全部资源 * | 无 | 无 |
| gemp:GetResourceStatistics | GetResourceStatistics | get | *全部资源 * | 无 | 无 |
| gemp:GetRichText | GetRichText | get | *全部资源 * | 无 | 无 |
| gemp:GetRouteRule | GetRouteRule | get | *全部资源 * | 无 | 无 |
| gemp:GetService | GetService | get | *全部资源 * | 无 | 无 |
| gemp:GetServiceGroup | GetServiceGroup | get | *全部资源 * | 无 | 无 |
| gemp:GetServiceGroupPersonScheduling | GetServiceGroupPersonScheduling | get | *全部资源 * | 无 | 无 |
| gemp:GetServiceGroupScheduling | GetServiceGroupScheduling | get | *全部资源 * | 无 | 无 |
| gemp:GetServiceGroupSchedulingPreview | GetServiceGroupSchedulingPreview | get | *全部资源 * | 无 | 无 |
| gemp:GetServiceGroupSpecialPersonScheduling | GetServiceGroupSpecialPersonScheduling | get | *全部资源 * | 无 | 无 |
| gemp:GetSimilarIncidentStatistics | GetSimilarIncidentStatistics | get | *全部资源 * | 无 | 无 |
| gemp:GetSubscription | GetSubscription | get | *全部资源 * | 无 | 无 |
| gemp:GetTenantApplication | GetTenantApplication | get | *全部资源 * | 无 | 无 |
| gemp:GetTenantStatus | GetTenantStatus | get | *全部资源 * | 无 | 无 |
| gemp:GetUser | GetUser | get | *全部资源 * | 无 | 无 |
| gemp:GetUserGuideStatus | GetUserGuideStatus | get | *全部资源 * | 无 | 无 |
| gemp:ListAlerts | ListAlerts | get | *全部资源 * | 无 | 无 |
| gemp:ListByMonitorSourceId | ListByMonitorSourceId | get | *全部资源 * | 无 | 无 |
| gemp:ListChartDataForServiceGroup | ListChartDataForServiceGroup | get | *全部资源 * | 无 | 无 |
| gemp:ListChartDataForUser | ListChartDataForUser | get | *全部资源 * | 无 | 无 |
| gemp:ListConfigs | ListConfigs | get | *全部资源 * | 无 | 无 |
| gemp:ListDataReportForServiceGroup | ListDataReportForServiceGroup | get | *全部资源 * | 无 | 无 |
| gemp:ListDataReportForUser | ListDataReportForUser | get | *全部资源 * | 无 | 无 |
| gemp:ListDictionaries | ListDictionaries | get | *全部资源 * | 无 | 无 |
| gemp:ListEscalationPlanServices | ListEscalationPlanServices | get | *全部资源 * | 无 | 无 |
| gemp:ListEscalationPlans | ListEscalationPlans | get | *全部资源 * | 无 | 无 |
| gemp:ListEscalationPlansByNoticeObject | ListEscalationPlansByNoticeObject | get | *全部资源 * | 无 | 无 |
| gemp:ListIncidentDetailEscalationPlans | ListIncidentDetailEscalationPlans | get | *全部资源 * | 无 | 无 |
| gemp:ListIncidentDetailTimelines | ListIncidentDetailTimelines | get | *全部资源 * | 无 | 无 |
| gemp:ListIncidentSubtotals | ListIncidentSubtotals | get | *全部资源 * | 无 | 无 |
| gemp:ListIncidentTimelines | ListIncidentTimelines | get | *全部资源 * | 无 | 无 |
| gemp:ListIncidents | ListIncidents | get | *全部资源 * | 无 | 无 |
| gemp:ListIntegrationConfigTimelines | ListIntegrationConfigTimelines | get | *全部资源 * | 无 | 无 |
| gemp:ListIntegrationConfigs | ListIntegrationConfigs | get | *全部资源 * | 无 | 无 |
| gemp:ListMonitorSources | ListMonitorSources | get | *全部资源 * | 无 | 无 |
| gemp:ListProblemDetailOperations | ListProblemDetailOperations | get | *全部资源 * | 无 | 无 |
| gemp:ListProblemOperations | ListProblemOperations | get | *全部资源 * | 无 | 无 |
| gemp:ListProblemSubtotals | ListProblemSubtotals | get | *全部资源 * | 无 | 无 |
| gemp:ListProblemTimeLines | ListProblemTimeLines | get | *全部资源 * | 无 | 无 |
| gemp:ListProblems | ListProblems | get | *全部资源 * | 无 | 无 |
| gemp:ListRouteRules | ListRouteRules | get | *全部资源 * | 无 | 无 |
| gemp:ListRouteRulesByAssignWhoId | ListRouteRulesByAssignWhoId | get | *全部资源 * | 无 | 无 |
| gemp:ListRouteRulesByService | ListRouteRulesByService | get | *全部资源 * | 无 | 无 |
| gemp:ListServiceGroupMonitorSourceTemplates | ListServiceGroupMonitorSourceTemplates | get | *全部资源 * | 无 | 无 |
| gemp:ListServiceGroups | ListServiceGroups | get | *全部资源 * | 无 | 无 |
| gemp:ListServiceGroupsByUserId | ListServiceGroupsByUserId | get | *全部资源 * | 无 | 无 |
| gemp:ListServices | ListServices | get | *全部资源 * | 无 | 无 |
| gemp:ListSourceEvents | ListSourceEvents | get | *全部资源 * | 无 | 无 |
| gemp:ListSourceEventsForMonitorSource | ListSourceEventsForMonitorSource | get | *全部资源 * | 无 | 无 |
| gemp:ListSubscriptionServiceGroups | ListSubscriptionServiceGroups | get | *全部资源 * | 无 | 无 |
| gemp:ListSubscriptions | ListSubscriptions | get | *全部资源 * | 无 | 无 |
| gemp:ListTrendForSourceEvent | ListTrendForSourceEvent | get | *全部资源 * | 无 | 无 |
| gemp:ListUserSerivceGroups | ListUserSerivceGroups | get | *全部资源 * | 无 | 无 |
| gemp:ListUsers | ListUsers | get | *全部资源 * | 无 | 无 |
| gemp:RecoverProblem | RecoverProblem | update | *全部资源 * | 无 | 无 |
| gemp:RefreshIntegrationConfigKey | RefreshIntegrationConfigKey | none | *全部资源 * | 无 | 无 |
| gemp:RemoveIntegrationConfig | RemoveIntegrationConfig | update | *全部资源 * | 无 | 无 |
| gemp:RemoveProblemServiceGroup | RemoveProblemServiceGroup | update | *全部资源 * | 无 | 无 |
| gemp:ReplayProblem | ReplayProblem | update | *全部资源 * | 无 | 无 |
| gemp:RespondIncident | RespondIncident | update | *全部资源 * | 无 | 无 |
| gemp:RevokeProblemRecovery | RevokeProblemRecovery | update | *全部资源 * | 无 | 无 |
| gemp:UnbindUser | UnbindUser | update | *全部资源 * | 无 | 无 |
| gemp:UpdateEscalationPlan | UpdateEscalationPlan | update | *全部资源 * | 无 | 无 |
| gemp:UpdateIncident | UpdateIncident | update | *全部资源 * | 无 | 无 |
| gemp:UpdateIntegrationConfig | UpdateIntegrationConfig | update | *全部资源 * | 无 | 无 |
| gemp:UpdateProblem | UpdateProblem | update | *全部资源 * | 无 | 无 |
| gemp:UpdateProblemEffectionService | UpdateProblemEffectionService | update | *全部资源 * | 无 | 无 |
| gemp:UpdateProblemImprovement | UpdateProblemImprovement | update | *全部资源 * | 无 | 无 |
| gemp:UpdateProblemMeasure | UpdateProblemMeasure | update | *全部资源 * | 无 | 无 |
| gemp:UpdateProblemNotice | UpdateProblemNotice | update | *全部资源 * | 无 | 无 |
| gemp:UpdateProblemTimeline | UpdateProblemTimeline | update | *全部资源 * | 无 | 无 |
| gemp:UpdateRichText | UpdateRichText | update | *全部资源 * | 无 | 无 |
| gemp:UpdateRouteRule | UpdateRouteRule | update | *全部资源 * | 无 | 无 |
| gemp:UpdateService | UpdateService | update | *全部资源 * | 无 | 无 |
| gemp:UpdateServiceGroup | UpdateServiceGroup | update | *全部资源 * | 无 | 无 |
| gemp:UpdateServiceGroupScheduling | UpdateServiceGroupScheduling | update | *全部资源 * | 无 | 无 |
| gemp:UpdateServiceGroupSpecialDayScheduling | UpdateServiceGroupSpecialDayScheduling | update | *全部资源 * | 无 | 无 |
| gemp:UpdateSubscription | UpdateSubscription | update | *全部资源 * | 无 | 无 |
| gemp:UpdateUser | UpdateUser | update | *全部资源 * | 无 | 无 |
| gemp:UpdateUserGuideStatus | UpdateUserGuideStatus | update | *全部资源 * | 无 | 无 |
| gemp:VerifyRouteRule | VerifyRouteRule | none | *全部资源 * | 无 | 无 |
资源(Resource)
下表是运维事件中心(GEMP)定义的资源,这些资源可以在RAM权限策略语句的Resource元素中使用,用来授予对该资源执行具体操作的权限。 其中,资源ARN是资源在阿里云上的唯一标识。具体说明如下:{#}为变量标识,需要您替换为实际值。例如:{#ramcode}需要您替换为实际的云服务RAM代码。-
*表示全部。例如:{#resourceType}为*时:表示全部资源。{#regionId}为*时:表示全部地域。{#accountId}为*时:表示全部阿里云账号。
| 资源类型 | 资源ARN |
|---|
暂无数据
条件(Condition)
运维事件中心(GEMP)未定义产品级别的条件关键字。如需查看适用于所有云产品的通用条件关键字,请参见通用条件关键字。