All Products
Search
Document Center

Resource Access Management:AliyunServiceRolePolicyForOOSPatchManager

Last Updated:Sep 22, 2025

AliyunServiceRolePolicyForOOSPatchManager 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: 10:29:22 on April 28, 2024

  • Update time: 06:13:24 on September 22, 2025

  • Current version: v3

Policy content

{
  "Version": "1",
  "Statement": [
    {
      "Action": [
        "ecs:CreateSnapshot",
        "ecs:DescribeCloudAssistantStatus",
        "ecs:DescribeDisks",
        "ecs:DescribeInstances",
        "ecs:DescribeInvocationResults",
        "ecs:DescribeInvocations",
        "ecs:DescribeManagedInstances",
        "ecs:DescribeSnapshots",
        "ecs:RebootInstance",
        "ecs:RunCommand"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "ecs:InvokeCommand"
      ],
      "Resource": [
        "acs:ecs:*:*:command/ACS-ECS-PatchManager-for-linux.sh",
        "acs:ecs:*:*:command/ACS-ECS-PatchManager-for-windows.ps1",
        "acs:ecs:*:*:instance/*"
      ],
      "Effect": "Allow"
    },
    {
      "Action": [
        "ecd:CreateSnapshot",
        "ecd:DescribeCloudAssistantStatus",
        "ecd:DescribeDesktops",
        "ecd:DescribeInvocations",
        "ecd:DescribeSnapshots",
        "ecd:RebootDesktops",
        "ecd:RunCommand"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": [
        "oos:ListInstancePatchStates"
      ],
      "Resource": "*",
      "Effect": "Allow"
    },
    {
      "Action": "ram:DeleteServiceLinkedRole",
      "Resource": "*",
      "Effect": "Allow",
      "Condition": {
        "StringEquals": {
          "ram:ServiceName": "patchmanager.oos.aliyuncs.com"
        }
      }
    }
  ]
}

References