跳到主要内容

云硬盘策略示例

当您需要授权某个子用户“对1块硬盘的快照管理权限”时,您可以这样编辑策略:

{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"cbs:DescribeVolumes"
],
"Resource": [
"ccs:cbs:cn-test-suzhou1:*:v-ba180h4ob4j56o"
]
},
{
"Effect": "Allow",
"Action": "cbs:*Snapshot*",
"Resource": [
"ccs:cbs:cn-test-suzhou1:*:v-ba180h4ob4j56o/*"
]
},
{
"Effect": "Allow",
"Action": "cbs:DescribeVolumes",
"Resource": [
"ccs:cbs:cn-test-suzhou1:*:-1"
]
}
]
}