負載均衡器策略示例
當您需要授權某個子使用者“建立/檢視負載均衡器的後端服務”的許可權時,您可以這樣編輯策略:
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"vpc:DescribeLoadBalancers",
"vpc:DescribeLBListeners",
"vpc:DescribeInstanceInterface"
],
"Resource": [
"ccs:vpc:cn-test-suzhou1:*:lb-q6180h4og3o699",
"ccs:cec:cn-test-suzhou1:*:i-ay180h4ob3k20t",
"ccs:vpc:cn-test-suzhou1:*:n-sc180h4nfc348e"
]
},
{
"Effect": "Allow",
"Action": [
"vpc:DescribeLoadBalancer*",
"vpc:DescribeLBListeners",
"vpc:DescribeInstanceInterface",
"vpc:DescribeLBBackends"
],
"Resource": [
"ccs:vpc:cn-test-suzhou1:*:lb-1",
"ccs:cec:cn-test-suzhou1:*:-1",
"ccs:vpc:cn-test-suzhou1:*:n-1"
]
},
{
"Effect": "Allow",
"Action": [
"vpc:CreateLBBackend",
"vpc:DescribeLBBackends",
"vpc:DescribeLBListeners"
],
"Resource": [
"ccs:vpc:cn-test-suzhou1:*:lb-q6180h4og3o699/*"
]
}
]
}