"effect" : "allow"
"action": ["name/monitor:Describe*"]
qcs:project_id:service_type:region:account:resource
参数 | 描述 | 是否必选 |
qcs | 是 qcloud service 的简称,表示是腾讯云的云服务 | 是 |
project_id | 描述项目信息,仅为了兼容 CAM 早期逻辑,一般不填 | 否 |
service_type | 产品简称,这里为 monitor | 是 |
region | 描述地域信息 | 是 |
account | 描述资源拥有者的主账号信息,即主账号的 ID,表示为 uin/${OwnerUin} ,如 uin/100000000001 | 是 |
resource | 描述具体资源详情,前缀为 instance | 是 |
"resource":["qcs::monitor:ap-guangzhou:uin/100000000001:prom-instance/prom-73jingds"]
"condition": {"for_any_value:string_equal": {"qcs:tag": ["testkey&testvalue"]}}
{"version": "2.0","statement": [{"action": ["name/monitor:*"],"condition": {"for_any_value:string_equal": {"qcs:tag": ["testkey&testvalue"]}},"effect": "allow","resource": ["qcs::monitor:ap-guangzhou:uin/1250000000:prom-instance/prom-73jingds"]}]}
{"version": "2.0","statement": [{"effect": "allow","action": ["name/monitor:Describe*"],"resource": ["qcs::monitor:ap-guangzhou:uin/1250000000:prom-instance/prom-73jingds","qcs::monitor:ap-guangzhou:uin/1250000000:prom-instance/prom-65jidfafk"],"condition": []}]}
{"version": "2.0","statement": [{"effect": "allow","resource": ["qcs::monitor:ap-guangzhou:uin/1250000000:prom-instance/prom-73jingds"],"action": ["name/monitor:TerminatePrometheusInstances"]}]}
本页内容是否解决了您的问题?