Resource Access Management (RAM) is a service provided by Alibaba Cloud to manage user identities and resource access permissions. You can use RAM to prevent RAM users from sharing the AccessKey pairs of your Alibaba Cloud account. You can also use RAM to grant minimum permissions to RAM users. RAM uses policies to define permissions.
This topic describes the elements, such as Action, Resource, and Condition, which are defined by ARMS. You can use the elements to create policies in RAM. The code (RamCode) in RAM that is used to indicate ARMS is arms,xtrace. You can grant permissions on ARMS at the RESOURCE.
General structure of a policy
Policies can be stored as JSON files. The following code provides an example on the general structure of a policy:
{
"Version": "1",
"Statement": [
{
"Effect": "<Effect>",
"Action": "<Action>",
"Resource": "<Resource>",
"Condition": {
"<Condition_operator>": {
"<Condition_key>": [
"<Condition_value>"
]
}
}
}
]
}
- Effect: specifies the authorization effect. Valid values: Allow, Deny.
- Action: specifies one or more API operations that are allowed or denied. For more information, see the Action section of this topic.
- Resource: specifies one or more resources to which the policy applies. You can use an Alibaba Cloud Resource Name (ARN) to specify a resource. For more information, see the Resource section of this topic.
- Condition: specifies one or more conditions that are required for the policy to take effect. This is an optional field. For more information, see the Condition section of this topic.
- Condition_operator: specifies the conditional operators. Different types of conditions support different conditional operators. For more information, see Policy elements.
- Condition_key: specifies the condition keys.
- Condition_value: specifies the condition values.
Action
ARMS defines the values that you can use in theAction
element of a policy statement. The following table describes the values.- Operation: the value that you can use in the Action element to specify the operation on a resource.
- API operation: the API operation that you can call to perform the operation.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition key: the condition keys that are defined by the Alibaba Cloud service. The Condition key column does not list the common condition keys that are defined by Alibaba Cloud. For more information about the common condition keys, see Generic Condition Keyword.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Actions | API operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|---|
arms:DeleteEnvPodMonitor | DeleteEnvPodMonitor | delete | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:GetManagedPrometheusStatus | GetManagedPrometheusStatus | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:CreateEnvServiceMonitor | CreateEnvServiceMonitor | create | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:AddPrometheusGlobalView | AddPrometheusGlobalView | none | All Resources * | None | None |
arms:UpdatePrometheusInstance | UpdatePrometheusInstance | update | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:DescribeAddonRelease | DescribeAddonRelease | none | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:ListPrometheusGlobalView | ListPrometheusGlobalView | none | All Resources * | None | None |
arms:InitEnvironment | InitEnvironment | update | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:CheckCommercialStatus | CheckCommercialStatus | none | All Resources * | None | None |
arms:ListEnvironments | ListEnvironments | list | Environment acs:arms:{#regionId}:{#accountId}:environment/* | None | None |
arms:DescribeEnvServiceMonitor | DescribeEnvServiceMonitor | get | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:InstallAddon | InstallAddon | none | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:ListPrometheusAlertTemplates | ListPrometheusAlertTemplates | none | All Resources * | None | None |
arms:QueryPromInstallStatus | QueryPromInstallStatus | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:AddIntegration | AddIntegration | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:ListEnvCustomJobs | ListEnvCustomJobs | list | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:CreatePrometheusMonitoring | CreatePrometheusMonitoring | create | All Resources * | None | None |
arms:ListAddons | ListAddons | none | All Resources * | None | None |
arms:ListAddonReleases | ListAddonReleases | none | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:OpenVCluster | OpenVCluster | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:DescribePrometheusAlertRule | DescribePrometheusAlertRule | get | All Resources * | None | None |
arms:UpdateEnvironment | UpdateEnvironment | update | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:GetPrometheusApiToken | GetPrometheusApiToken | none | All Resources * | None | None |
arms:DeleteIntegration | DeleteIntegration | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:EnableMetric | EnableMetric | none | Prometheus acs:arms:{#regionId}:{#accountId}:Prometheus/{#ClusterId} | None | None |
arms:UninstallPromCluster | UninstallPromCluster | delete | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:GetPrometheusInstance | GetPrometheusInstance | get | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:InstallManagedPrometheus | InstallManagedPrometheus | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:DeleteGrafanaResource | DeleteGrafanaResource | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:UpdateEnvServiceMonitor | UpdateEnvServiceMonitor | update | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:CreatePrometheusInstance | CreatePrometheusInstance | create | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/* | None | None |
arms:DescribeAddonMetrics | DescribeAddonMetrics | none | All Resources * | None | None |
arms:CreateEnvCustomJob | CreateEnvCustomJob | create | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:UpdateMetricDrop | UpdateMetricDrop | none | Prometheus acs:arms:{#regionId}:{#accountId}:Prometheus/{#ClusterId} | None | None |
arms:CheckServiceStatus | CheckServiceStatus | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:AddTagToFlinkCluster | AddTagToFlinkCluster | create | All Resources * | None | None |
arms:ListEnvironmentDashboards | ListEnvironmentDashboards | none | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:DescribeEnvPodMonitor | DescribeEnvPodMonitor | get | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:UpdateEnvCustomJob | UpdateEnvCustomJob | update | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:UpdateEnvPodMonitor | UpdateEnvPodMonitor | update | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:OpenArmsDefaultSLR | OpenArmsDefaultSLR | none | All Resources * | None | None |
arms:SyncRecordingRules | SyncRecordingRules | none | All Resources * | None | None |
arms:RemoveSourcesFromPrometheusGlobalView | RemoveSourcesFromPrometheusGlobalView | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:DeleteEnvironment | DeleteEnvironment | delete | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:GetIntegrationState | GetIntegrationState | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:DeleteEnvCustomJob | DeleteEnvCustomJob | delete | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:DescribeEnvCustomJob | DescribeEnvCustomJob | get | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:UpgradeEnvironmentFeature | UpgradeEnvironmentFeature | none | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:UpdatePrometheusIntegration | UpdatePrometheusIntegration | none | All Resources * | None | None |
arms:CreateEnvironment | CreateEnvironment | create | Environment acs:arms:{#regionId}:{#accountId}:environment/* | None | None |
arms:DeletePrometheusAlertRule | DeletePrometheusAlertRule | delete | All Resources * | None | None |
arms:ListEnvServiceMonitors | ListEnvServiceMonitors | list | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:OpenXtraceDefaultSLR | OpenXtraceDefaultSLR | none | All Resources * | None | None |
arms:InstallEnvironmentFeature | InstallEnvironmentFeature | none | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:GetCloudClusterAllUrl | GetCloudClusterAllUrl | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:UpdatePrometheusMonitoring | UpdatePrometheusMonitoring | update | All Resources * | None | None |
arms:InstallCmsExporter | InstallCmsExporter | none | All Resources * | None | None |
arms:ListEnvPodMonitors | ListEnvPodMonitors | list | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:ListDashboardsByName | ListDashboardsByName | none | All Resources * | None | None |
arms:ListPrometheusInstances | ListPrometheusInstances | none | All Resources * | None | None |
arms:ManageRecordingRule | ManageRecordingRule | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:GetExploreUrl | GetExploreUrl | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:UntagResources | UntagResources | update | All Resources * | None | None |
arms:DescribeEnvironment | DescribeEnvironment | get | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:AppendInstancesToPrometheusGlobalView | AppendInstancesToPrometheusGlobalView | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:AddRecordingRule | AddRecordingRule | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:DeleteEnvServiceMonitor | DeleteEnvServiceMonitor | delete | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:AddPrometheusInstance | AddPrometheusInstance | none | All Resources * | None | None |
arms:GetCommercialStatus | GetCommercialStatus | none | All Resources * | None | None |
arms:DeletePrometheusIntegration | DeletePrometheusIntegration | none | All Resources * | None | None |
arms:DelAuthToken | DelAuthToken | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:GetPrometheusMonitoring | GetPrometheusMonitoring | get | All Resources * | None | None |
arms:GetPrometheusIntegration | GetPrometheusIntegration | none | All Resources * | None | None |
arms:UpdatePrometheusGlobalView | UpdatePrometheusGlobalView | update | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:BindPrometheusGrafanaInstance | BindPrometheusGrafanaInstance | update | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:DeletePrometheusMonitoring | DeletePrometheusMonitoring | delete | All Resources * | None | None |
arms:AddPrometheusGlobalViewByAliClusterIds | AddPrometheusGlobalViewByAliClusterIds | none | All Resources * | None | None |
arms:GetPrometheusGlobalView | GetPrometheusGlobalView | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:OpenArmsService | OpenArmsServiceSecondVersion | none | All Resources * | None | None |
arms:ChangeResourceGroup | ChangeResourceGroup | update | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId}RetcodeApp acs:arms:{#regionId}:{#accountId}:retcodeapp/{#Pid}TraceApp acs:arms:{#regionId}:{#accountId}:traceapp/{#Pid}Environment acs:arms:{#regionId}:{#accountId}:environment/{#EnvironmentId}GrafanaWorkspace acs:arms:{#regionId}:{#accountId}:grafanaworkspace/{#GrafanaWorkspaceId}XTraceApp acs:arms:{#regionId}:{#accountId}:xtraceapp/{#Pid} | None | None |
arms:GetPrometheusIntegration | ListPrometheusIntegration | none | All Resources * | None | None |
arms:ListDashboards | ListDashboards | none | All Resources * | None | None |
arms:UpgradeAddonRelease | UpgradeAddonRelease | none | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:CreatePrometheusAlertRule | CreatePrometheusAlertRule | create | All Resources * | None | None |
arms:ListPrometheusInstanceByTagAndResourceGroupId | ListPrometheusInstanceByTagAndResourceGroupId | list | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/* | None | None |
arms:ListPrometheusMonitoring | ListPrometheusMonitoring | list | All Resources * | None | None |
arms:UpdatePrometheusMonitoringStatus | UpdatePrometheusMonitoringStatus | update | PrometheusMonitoring acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:GetClusterAllUrl | GetClusterAllUrl | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:DeleteEnvironmentFeature | DeleteEnvironmentFeature | none | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:ListEnvironmentFeatures | ListEnvironmentFeatures | none | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:DeleteAddonRelease | DeleteAddonRelease | none | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:GetAuthToken | GetAuthToken | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:ManageGetRecordingRule | ManageGetRecordingRule | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:UninstallManagedPrometheus | UninstallManagedPrometheus | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:AddGrafana | AddGrafana | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:GetRecordingRule | GetRecordingRule | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:TagResources | TagResources | update | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId}RetcodeApp acs:arms:{#regionId}:{#accountId}:retcodeapp/{#Pid}TraceApp acs:arms:{#regionId}:{#accountId}:traceapp/{#Pid}Environment acs:arms:{#regionId}:{#accountId}:environment/{#EnvironmentId}GrafanaWorkspace acs:arms:{#regionId}:{#accountId}:grafanaworkspace/{#GrafanaWorkspaceId} | None | None |
arms:AddPrometheusIntegration | AddPrometheusIntegration | none | All Resources * | None | None |
arms:RestartEnvironmentFeature | RestartEnvironmentFeature | none | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:DescribeEnvironmentFeature | DescribeEnvironmentFeature | none | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:CreateEnvPodMonitor | CreateEnvPodMonitor | create | Environment acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} | None | None |
arms:QueryCommercialUsage | QueryCommercialUsage | get | All Resources * | None | None |
arms:ListPrometheusAlertRules | ListPrometheusAlertRules | list | All Resources * | None | None |
arms:AddAliClusterIdsToPrometheusGlobalView | AddAliClusterIdsToPrometheusGlobalView | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:RemoveAliClusterIdsFromPrometheusGlobalView | RemoveAliClusterIdsFromPrometheusGlobalView | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
arms:ListClusterFromGrafana | ListClusterFromGrafana | none | All Resources * | None | None |
arms:DeletePrometheusGlobalView | DeletePrometheusGlobalView | none | Prometheus acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} | None | None |
Resource
ARMS defines the values that you can use in theResource
. You can attach the policy to a RAM user or a RAM role so that the RAM user or the RAM role can perform a specific operation on a specific resource.
The ARN is the unique identifier of the resource on Alibaba Cloud. Take note of the following items:{#}
indicates a variable. {#} must be replaced with an actual value. For example,{#ramcode}
must be replaced with the actual code of an Alibaba Cloud service in RAM.- An asterisk (
*
) is used as a wildcard. Examples:{#resourceType}
is set to*
, all resources are specified.{#regionId}
is set to*
, all regions are specified.{#accountId}
is set to*
, all Alibaba Cloud accounts are specified.
Resource type | ARN |
---|---|
Prometheus | acs:arms:{#regionId}:{#accountId}:prometheus/{#clusterId} |
XTraceApp | acs:arms:{#regionId}:{#accountId}:xtraceapp/* |
Environment | acs:arms:{#regionId}:{#accountId}:environment/{#environmentId} |
TraceApp | acs:arms:{#regionId}:{#accountId}:traceapp/{#Pid} |
Prometheus | acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} |
Prometheus | acs:arms:{#regionId}:{#accountId}:prometheus/* |
AlertRule | acs:arms:{#regionId}:{#AccountId}:alertrule/{#AlertRuled} |
Prometheus | acs:arms:{#regionId}:{#accountId}:Prometheus/{#ClusterId} |
Environment | acs:arms:{#regionId}:{#accountId}:environment/* |
GrafanaWorkspace | acs:arms:{#regionId}:{#accountId}:grafanaworkspace/* |
GrafanaWorkspace | acs:arms:{#regionId}:{#accountId}:grafanaworkspace/{#GrafanaWorkspaceId} |
Prometheus | acs:arms:{#regionId}:{#accountId}:Prometheus/* |
XTraceApp | acs:arms:{#regionId}:{#accountId}:xtraceapp/{#Pid} |
RetcodeApp | acs:arms:{#regionId}:{#accountId}:retcodeapp/{#Pid} |
TraceApp | acs:arms:{#regionId}:{#accountId}:traceapp/* |
Prometheus | acs:arms:{#regionId}:{#accountId}:prometheus/{#prometheusId} |
PrometheusAlertRule | acs:arms:{#regionId}:{#accountId}:prometheusalertrule/{#ClusterId}/{#PrometheusAlertRuleId} |
PrometheusAlertRule | acs:arms:${Region}:${AccountId}:prometheus/${ClusterId}/prometheusalertrule/* |
PrometheusMonitoring | acs:arms:{#regionId}:{#accountId}:prometheus/{#clusterId}/monitoring/{#type}/* |
RetcodeApp | acs:arms:{#regionId}:{#accountId}:retcodeapp/* |
PrometheusAlertRule | acs:arms:${Region}:${AccountId}:prometheus/${ClusterId}/prometheusalertrule/${PrometheusAlertRuleId} |
SyntheticTask | acs:arms:{#regionId}:{#accountId}:synthetictask/{#TaskId} |
AlertRule | acs:arms:{#regionId}:{#AccountId}:AlertRule/* |
AgentInfo | acs:arms:{#regionId}:{#accountId}: |
SyntheticTask | acs:arms:{#regionId}:{#accountId}:* |
TraceApp | acs:arms:{#regionId}:{#AccountId}:traceapp/{#Pid} |
IntegrationExporter | acs:arms:${Region}:${AccountId}:prometheus/${ClusterId}/integrationexporter/* |
RetcodeApp | acs:arms:{#regionId}:{#AccountId}:retcodeapp/{#Pid} |
Prometheus | acs:arms:{#regionId}:{#AccountId}:prometheus/{#ClusterId} |
GrafanaWorkspace | acs:arms:{#regionId}:{#AccountId}:grafanaworkspace/{#GrafanaWorkspaceId} |
SyntheticTask | acs:arms:{#regionId}:{#AccountId}:synthetictask/{#TaskId} |
GrafanaWorkspace | acs:arms:{#regionId}:{#AccountId}:grafanaworkspace/* |
SyntheticTask | acs:arms:{#regionId}:{#accountId}:synthetictask/* |
IntegrationExporter | acs:arms:{#regionId}:{#accountId}:prometheus/{#clusterId} |
Rum | acs:arms:{#regionId}:{#accountId}:rum/* |
PrometheusMonitoring | acs:arms:{#regionId}:{#accountId}:prometheus/{#clusterId}/monitoring/{#type}/{#monitoringName}/* |
Environment | acs:arms:{#regionId}:{#accountId}:environment/{#EnvironmentId} |
RetcodeApp | acs:arms:{#regionId}:{#accountId}:retcodeapp/{#RetcodeAppId} |
Prometheus | acs:arms:{#regionId}:{#accountId}:Prometheus/#{ClusterId} |
IntegrationExporter | acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} |
PrometheusMonitoring | acs:arms:{#regionId}:{#accountId}:prometheus/{#clusterId}/monitoring/{#type}/{#monitoringName} |
AlertRule | acs:arms:{#regionId}:{#accountId}:AlertRule/{#AlertRuled} |
PrometheusMonitoring | acs:arms:{#regionId}:{#accountId}:prometheus/{#clusterId}/monitoring/* |
PrometheusMonitoring | acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId} |
PrometheusAlertRule | acs:arms:{#regionId}:${AccountId}:prometheus/${ClusterId}/prometheusalertrule/* |
Condition
ARMS does not define service-specific condition keys. For more information about common condition keys that are defined by Alibaba Cloud, see Generic Condition Keyword.