AliyunServiceRolePolicyForSFMAccessCMS

更新时间:
复制为 MD 格式

AliyunServiceRolePolicyForSFMAccessCMS 是专用于服务关联角色的授权策略,会在创建服务关联角色 AliyunServiceRoleForSFMAccessCMS 时自动授权,以允许服务关联角色代您访问其他云服务。本策略由对应的阿里云服务按需更新,请勿将本策略授权给服务关联角色之外的 RAM 身份使用。

策略详情

  • 类型:系统策略

  • 创建时间:2025-03-18 13:46:03

  • 更新时间:2026-04-20 12:46:39

  • 当前版本:v6

策略内容

{
    "Version": "1",
    "Statement": [
        {
            "Action": "cms:GetCmsService",
            "Resource": "acs:cms:*:*:cmsservice/*",
            "Effect": "Allow"
        },
        {
            "Action": "cms:GetPrometheusInstance",
            "Resource": "acs:cms:*:*:prometheusinstance/*",
            "Effect": "Allow"
        },
        {
            "Action": [
                "cms:CreateAlertRule",
                "cms:UpdateAlertRule",
                "cms:PatchAlertRule",
                "cms:UpdateAlertRuleKvs",
                "cms:DeleteAlertRules",
                "cms:ListAlertRules",
                "cms:EnableAlertRules",
                "cms:DisableAlertRules"
            ],
            "Resource": "acs:cms:*:*:alertrule/*",
            "Effect": "Allow"
        },
        {
            "Action": [
                "cms:ListPrometheusVirtualInstances",
                "cms:CreatePrometheusVirtualInstance",
                "cms:GetPrometheusVirtualInstance",
                "cms:DeletePrometheusVirtualInstance",
                "cms:ListAlertHistories",
                "cms:ListUserNotifyHistories",
                "cms:ListContacts",
                "cms:ListContactGroups"
            ],
            "Resource": "*",
            "Effect": "Allow"
        },
        {
            "Action": [
                "log:GetProject",
                "log:GetLogs",
                "log:GetLogStoreLogs",
                "log:QueryPrometheusMetrics",
                "log:QueryMetrics"
            ],
            "Resource": [
                "acs:log:*:*:project/aliyun-product-data-*",
                "acs:log:*:*:project/aliyun-product-data-*/logstore/bailian-*",
                "acs:log:*:*:project/aliyun-product-data-*/logstore/bailian-*/*"
            ],
            "Effect": "Allow"
        },
        {
            "Action": [
                "log:GetSlsService",
                "log:OpenSlsService",
                "log:DescribeService",
                "log:EnableService"
            ],
            "Resource": [
                "acs:log:*:*:service"
            ],
            "Effect": "Allow"
        },
        {
            "Action": "ram:DeleteServiceLinkedRole",
            "Resource": "*",
            "Effect": "Allow",
            "Condition": {
                "StringEquals": {
                    "ram:ServiceName": "cms-access.sfm.aliyuncs.com"
                }
            }
        }
    ]
}

相关文档