All Products
Search
Document Center

Resource Access Management:AliyunServiceRolePolicyForMSEDiagnosis

Last Updated:Sep 15, 2025

AliyunServiceRolePolicyForMSEDiagnosis is the authorization policy dedicated to a service-linked role. The policy is automatically attached to a service role when the service role is created. Then, the service-linked role is authorized to access other cloud services. This policy is updated by the relevant Alibaba Cloud service. Do not attach this policy to a RAM identity other than a service-linked role.

Policy details

  • Type: service system policy

  • Creation time: 18:59:20 on June 17, 2024

  • Update time: 03:56:11 on September 15, 2025

  • Current version: v14

Policy content

{
  "Version": "1",
  "Statement": [
    {
      "Action": [
        "arms:GetAuthToken",
        "arms:GetPrometheusApiToken",
        "arms:ListDashboards",
        "arms:QueryMetricByPage",
        "arms:ListTraceApps"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "arms:Describe*",
        "arms:List*",
        "arms:Get*",
        "arms:Search*",
        "arms:Check*",
        "arms:Query*",
        "xtrace:Read*",
        "xtrace:Get*",
        "xtrace:Describe*"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "cms:Get*",
        "cms:List*",
        "cms:Query*",
        "cms:BatchQuery*",
        "cms:Describe*",
        "cms:Cursor",
        "cms:BatchGet",
        "cms:BatchExport",
        "cms:Check*"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "cs:DescribeClusterNodePools",
        "cs:DescribeClusterDetail",
        "cs:DescribeClusterInnerServiceKubeconfig",
        "cs:RevokeClusterInnerServiceKubeconfig",
        "cs:DescribeClusterUserKubeconfig",
        "cs:DescribeAddons",
        "cs:DescribeClusterAddonsVersion",
        "cs:InstallClusterAddons",
        "cs:UpgradeClusterAddons",
        "cs:ListClusterAddonInstances",
        "cs:DescribeUserClusterNamespaces"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "ecs:DescribeInvocations",
        "ecs:RunCommand",
        "ecs:DescribeInstanceMonitorData",
        "ecs:DescribeMetricList",
        "ecs:DescribeNetworkInterfaces",
        "ecs:DescribeInstances",
        "ecs:DescribeSecurityGroupAttribute",
        "ecs:DescribeCloudAssistantStatus",
        "ecs:DescribeInstanceAttribute",
        "ecs:DescribeNetworkInterfaceAttribute"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "mse:ListClusters",
        "mse:ListServiceSource",
        "mse:GetGateway",
        "mse:ListGatewayService",
        "mse:ListGatewayDomain",
        "mse:ListAnsServices",
        "mse:GetNacosConfig",
        "mse:GetGovernanceKubernetesCluster",
        "mse:GetLosslessRuleByApp",
        "mse:GetApplicationInstancesWithMetircs",
        "mse:ListEngineNamespaces",
        "mse:ListAnsInstances"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "privatelink:CreateVpcEndpoint",
        "privatelink:DeleteVpcEndpoint",
        "privatelink:GetVpcEndpointAttribute",
        "privatelink:RemoveZoneFromVpcEndpoint",
        "privatelink:ListVpcEndpointZones"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "vpc:CreateVSwitch",
        "vpc:DeleteVSwitch",
        "vpc:DescribeVSwitchAttributes",
        "vpc:ListVSwitchCidrReservations",
        "vpc:DescribeVpcAttribute",
        "vpc:AssociateVpcCidrBlock",
        "vpc:UnassociateVpcCidrBlock",
        "vpc:DescribeNatGateways",
        "vpc:DescribeSnatTableEntries",
        "vpc:GetNatGatewayAttribute"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Effect": "Allow",
      "Action": [
        "nis:ListDiagnosisInstance",
        "nis:CreateDiagnosisReport",
        "nis:ListDiagnosisReport",
        "nis:GetDiagnosisReport",
        "nis:DeleteDiagnosisReport"
      ],
      "Resource": "*"
    },
    {
      "Action": [
        "alb:ListLoadBalancers",
        "alb:GetLoadBalancerAttribute",
        "slb:DescribeLoadBalancerHTTPListenerAttribute",
        "slb:DescribeLoadBalancerHTTPSListenerAttribute",
        "slb:DescribeLoadBalancerListeners",
        "slb:DescribeLoadBalancers",
        "slb:DescribeLoadBalancerTCPListenerAttribute",
        "slb:DescribeLoadBalancerUDPListenerAttribute",
        "slb:DescribeAccessControlListAttribute",
        "slb:DescribeHealthStatus",
        "slb:DescribeLoadBalancerAttribute",
        "nlb:ListLoadBalancers",
        "nlb:GetListenerAttribute",
        "nlb:ListServerGroups",
        "nlb:ListServerGroupServers",
        "nlb:ListListeners"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "quotas:ListProductQuotas"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": "ram:DeleteServiceLinkedRole",
      "Resource": "*",
      "Effect": "Allow",
      "Condition": {
        "StringEquals": {
          "ram:ServiceName": "diagnosis.mse.aliyuncs.com"
        }
      }
    },
    {
      "Action": "ram:CreateServiceLinkedRole",
      "Resource": "*",
      "Effect": "Allow",
      "Condition": {
        "StringEquals": {
          "ram:ServiceName": "privatelink.aliyuncs.com"
        }
      }
    }
  ]
}

References