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