2.6 负载均衡器授权示例

当您需要授权某个子用户“创建/查看负载均衡器的后端服务”的权限时,您可以这样编辑策略:

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