跳到主要内容

私有網路策略示例

當您需要授權某個子使用者“可往私網新增雲主機”的操作許可權時,您可以這樣編輯策略:

{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"cec:ChangeInstanceInterface",
"cec:DescribeInstance*"
],
"Resource": [
"ccs:cec:cn-test-suzhou1:*:i-dj180h4ob3j908",
"ccs:cec:cn-test-suzhou1:*:-1"
]
},
{
"Effect": "Allow",
"Action": [
"vpc:DescribeNetworks",
"cec:ChangeInstanceInterface",
],
"Resource": [
"ccs:vpc:cn-test-suzhou1:*:n-m9180h4h9uw59e",
"ccs:vpc:cn-test-suzhou1:*:n-sc180h4nfc348e",
"ccs:vpc:cn-test-suzhou1:*:n-1"
]
}
]
}