跳到主要内容

私有网络策略示例

当您需要授权某个子用户“可往私网添加云主机”的操作权限时,您可以这样编辑策略:

{
"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"
]
}
]
}