雲硬碟策略示例
當您需要授權某個子使用者“對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"
]
}
]
}