Release Notes
{"version":"2.0","statement":[{"effect":"effect","action":["action"],"resource":["resource"],"condition": {"key":{"value"}}}]}
effect, action, resource, and condition. One policy has only one statement.allow or explicit deny.name) or a feature set (a group of APIs, prefixed with permid).effectallow) a resource, access is implicitly denied. You can also explicitly deny access to a resource to ensure that a user cannot access it, even if another policy has granted access to it. The following example specifies an allow effect."effect" : "allow"
actionname/monitor:, such as name/monitor:GetMonitorData."action": ["name/monitor:Describe*"]
"action":["name/monitor:*"]
resourceresource element describes one or multiple operation objects, such as TCOP resource. All the resources can be described with the following 6-segment format.qcs:service_type:account:resource
Parameter | Description | Required |
qcs | Abbreviation for “qcloud service”, which indicates a Tencent Cloud service | Yes |
service_type | Product name abbreviation, which is monitor here | Yes |
account | Root account information of the resource owner, which is the root account ID in the format of uin/${OwnerUin}, such as uin/100000000001 | Yes |
resource | Resource information description, such as cm-policy/policy-p1234abc | Yes |
Resource Type | Resource Description Method in Authorization Policy |
Alarm policy/cm-policy | qcs::monitor::uin/:cm-policy/${policyId} |
Notification template/cm-notice | qcs::monitor::uin/:cm-notice/${noticeId} |
"resource":["qcs::monitor:uin/1250000000:cm-policy/policy-p1234abc"]
resource element as shown below:"resource": ["*"]
policy-p1234abc and policy-p5678abc). You can refer to the following policy syntax to configure the policy content:{"version": "2.0","statement": [{"action": "monitor:*","resource": ["qcs::monitor:uin/1250000000:cm-policy/policy-p1234abc","qcs::monitor:uin/1250000000:cm-policy/policy-p5678abc"],"effect": "allow"}]}
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan