创建快照

本文为您提供创建快照的RAM自定义权限策略示例。

以下策略表示:允许为指定的ECS实例关联的指定云盘创建快照。在本示例中,ECS实例ID为i-bp14l21sgragk0sp****,云盘ID为d-bp1hek8q2l5tqzde****,请在实际使用时将对应ID替换为实际值。

{
  "Statement": [
    {
      "Action": "ecs:*",
      "Effect": "Allow",
      "Resource": [
        "acs:ecs:*:*:instance/i-bp14l21sgragk0sp****"
      ]
    },
    {
      "Action": "ecs:CreateSnapshot",
      "Effect": "Allow",
      "Resource": [
        "acs:ecs:*:*:disk/d-bp1hek8q2l5tqzde****",
        "acs:ecs:*:*:snapshot/*"
      ]
    },
    {
      "Action": [
        "ecs:Describe*"
      ],
      "Effect": "Allow",
      "Resource": "*"
    }
  ],
  "Version": "1"
}