跳到主要内容

云主机策略示例

当您需要授权某个子用户对2台云主机的开机/关机/重启的操作权限时,您可以这样编辑策略:

{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"cec:DescribeInstance*",
"cec:StopInstance",
"cec:StartInstance",
"cec:RebootInstance"
],
"Resource": [
"ccs:cec:cn-test-suzhou1:*:i-ay180h4ob3k20t",
"ccs:cec:cn-test-suzhou1:*:i-dj180h4ob3j908"
]
},
{
"Effect": "Allow",
"Action": [
"cec:DescribeInstance*"
],
"Resource": [
"ccs:cec:cn-test-suzhou1:*:-1"
]
}
]
}