tencent cloud

Cloud Log Service

Access Policy Templates

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-07-02 21:41:55
For custom permission policies, the following permission policy templates can be used based on the scenario.
Module
Scenario
Overall operation (best practices)
Classify topics, machine groups, and dashboards by using tags, and configure permissions by tag:
Data collection
Topic management and search/analysis
View/manage topics and perform search/analysis:
Use APIs to perform search and analysis:
Dashboard
Monitoring and alarm
Data Processing
Data processing
Perform scheduled SQL analysis:
Data shipping and consumption
Shipping to CKafka
Ship to COS:
Shipping to DLC
Shipping to Splunk
Ship to SCF:
Consumption over Kafka
Ship metric topics:
Custom consumption
Independent DataSight console
Manage DataSight consoles:
Developer
Use CLS through Grafana:

Overall Operation (Best Practices)

Users can classify topics, machine groups, and dashboards by using tags and configure permissions by tag. Tags are required for resources during resource creation. Users have management or read-only permissions only for resources with specified tags, which helps them manage various types of resources in CLS in batches.

Management Permission for Resources with Specified Tags

Note:
Delete comments to use this policy.
{
"statement": [{
"action": [ //Required read-only permissions for related products
"monitor:GetMonitorData",
"monitor:DescribeBaseMetrics",
"cam:ListGroups",
"cam:GetGroup",
"cam:DescribeSubAccountContacts",
"cam:ListAttachedRolePolicies",
"cam:GetRole",
"vpc:DescribeSubnetEx",//Required for creating DataSight consoles accessed via the private network
"vpc:DescribeVpcEx",//Required for creating DataSight consoles accessed via the private network
"tag:TagResources",
"tag:DescribeResourceTagsByResourceIds",
"tag:GetTags",
"tag:GetTagKeys",
"tag:GetTagValues",
"kms:GetServiceStatus"
],
"effect": "allow",
"resource": "*"
},
{
"action": [ //Restrict users to binding specified Tags, such as testCAM:test1, when creating dashboards, logsets, topics, alarm policies, notification channel groups, machine groups, and DataSight consoles. Tag restrictions are not supported for other resource types.
"cls:CreateDashboard",
"cls:CreateLogset",
"cls:CreateTopic",
"cls:CreateAlarm",
"cls:CreateAlarmNotice",
"cls:CreateMachineGroup",
"cls:CreateConsole"
],
"condition": {
"for_any_value:string_equal": {
"qcs:request_tag": [
"testCAM&test1"
]
}
},
"effect": "allow",
"resource": "*"
},
{
"action": [ //Users have permissions for all related APIs when resources have specified Tags (requires that the APIs support permission restrictions by Tag).
"cls:*"
],
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"testCAM&test1"
]
}
},
"effect": "allow",
"resource": "*"
},
{
"action": [ //Some APIs do not support permission restrictions by Tag and cannot restrict resource scope. The following APIs are primarily for read operations, with a small number of auxiliary feature APIs for write operations. None of them affect the security of core product data.
"cls:CheckAlarmChannel",
"cls:CheckAlarmRule",
"cls:CheckDomainRepeat",
"cls:CheckFunction",
"cls:CheckRechargeKafkaServer",
"cls:DescribeClsPrePayDetails",
"cls:DescribeClsPrePayInfos",
"cls:DescribeConfigMachineGroups",
"cls:DescribeConfigs",
"cls:DescribeAgentConfigs",
"cls:DescribeTopicExtendConfig",
"cls:DescribeDataTransformFailLogInfo",
"cls:DescribeDataTransformInfo",
"cls:DescribeDataTransformPreviewDataInfo",
"cls:DescribeDataTransformPreviewInfo",
"cls:DescribeDataTransformProcessInfo",
"cls:DescribeDemonstrations",
"cls:DescribeExceptionResources",
"cls:DescribeExternalDataSourcePreview",
"cls:DescribeFunctions",
"cls:DescribeResources",
"cls:DescribeShipperPreview",
"cls:DescribeScheduledSqlProcessInfo",
"cls:DescribeConfigurationTemplates",
"cls:DescribeFolders",
"cls:GetClsService",
"cls:GetConfigurationTemplateApplyLog",
"cls:PreviewKafkaRecharge",
"cls:agentHeartBeat",
"cls:CreateDemonstrations",
"cls:DeleteDemonstrations",
"cls:DescribeNoticeContents",
"cls:DescribeWebCallbacks"
],
"effect": "allow",
"resource": "*"
},
{
"action": [ //Some APIs do not support permission restrictions by Tag and cannot restrict resource scope. The following APIs involve write operations for core features. We recommend granting permissions only to a small number of users as needed. You can delete APIs that do not require authorization.
"cls:RealtimeProducer", //Data upload by using Kafka
"cls:CreateConfigurationTemplate", //API related to configuration templates
"cls:ModifyConfigurationTemplate",
"cls:DeleteConfigurationTemplate",
"cls:CreateFolder", //API related to folders
"cls:ModifyFolder",
"cls:DeleteFolder",
"cls:ModifyResourceAndFolderRelation",
"cls:CreateDataTransform", //API related to data processing
"cls:ModifyDataTransform",
"cls:DeleteDataTransform",
"cls:RetryShipperTask", //API related to COS delivery
"cls:ModifyDashboardSubscribeAck", //API related to dashboard subscription
"cls:DeleteDashboardSubscribe",
"cls:ModifyConfigExtra", //API related to collection configuration
"cls:DeleteConfigExtra",
"cls:RemoveMachine", //API related to machine groups
"cls:UpgradeAgentNormal",
"cls:CreateNoticeContent",//API related to alarm notification templates
"cls:DeleteNoticeContent",
"cls:ModifyNoticeContent",
"cls:CreateWebCallback",//API related to alarm integration configuration
"cls:ModifyWebCallback",
"cls:DeleteWebCallback"
],
"effect": "allow",
"resource": "*"
}
],
"version": "2.0"
}

Read-Only Permission for Resources with Specified Tags

Note:
Delete comments to use this policy.
{
"statement": [{
"action": [ //Required read-only permissions for related products
"monitor:GetMonitorData",
"monitor:DescribeBaseMetrics",
"cam:ListGroups",
"cam:GetGroup",
"cam:DescribeSubAccountContacts",
"cam:ListAttachedRolePolicies",
"tag:DescribeResourceTagsByResourceIds",
"tag:GetTags",
"tag:GetTagKeys",
"tag:GetTagValues"
],
"effect": "allow",
"resource": "*"
},
{
"action": [ //Users have permissions for related read-only APIs when resources have specified Tags
"cls:DescribeConsumer",
"cls:DescribeConsumerPreview",
"cls:DescribeCosRecharges",
"cls:DescribeDashboardSubscribes",
"cls:DescribeDashboards",
"cls:DescribeExports",
"cls:DescribeIndex",
"cls:DescribeIndexs",
"cls:DescribeKafkaConsume",
"cls:DescribeKafkaConsumer",
"cls:DescribeKafkaRecharges",
"cls:DescribeLatestJsonLog",
"cls:DescribeLatestUserLog",
"cls:DescribeLogContext",
"cls:DescribeLogFastAnalysis",
"cls:DescribeLogHistogram",
"cls:DescribeMachineGroupConfigs",
"cls:DescribeMachines",
"cls:DescribePartitions",
"cls:DescribeScheduledSqlInfo",
"cls:DescribeScheduledSqlProcessInfo",
"cls:DescribeShipperPreview",
"cls:DescribeTopics",
"cls:EstimateRebuildIndexTask",
"cls:GetAlarm",
"cls:GetAlarmLog",
"cls:GetMetricLabelValues",
"cls:GetMetricSeries",
"cls:MetricsLabelValues",
"cls:MetricsLabels",
"cls:MetricsQuery",
"cls:MetricsQueryExemplars",
"cls:MetricsQueryRange",
"cls:MetricsSeries",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:SearchCosRechargeInfo",
"cls:SearchDashboardSubscribe",
"cls:SearchLog",
"cls:DescribeAlarmNotices",
"cls:DescribeAlarms",
"cls:DescribeAlertRecordHistory",
"cls:DescribeExternalDataSources",
"cls:DescribeLogsets",
"cls:DescribeMachineGroups",
"cls:DescribeConsoles",
"cls:DescribeShipperTasks",
"cls:DescribeShippers",
"cls:DescribeRebuildIndexTasks"
],
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"testCAM&test1"
]
}
},
"effect": "allow",
"resource": "*"
},
{
"action": [ //Some APIs do not support permission restrictions by Tag and cannot restrict resource scope. The following APIs are primarily for read operations, with a small number of auxiliary feature APIs for write operations. None of them affect the security of core product data.
"cls:CheckAlarmChannel",
"cls:CheckAlarmRule",
"cls:CheckDomainRepeat",
"cls:CheckFunction",
"cls:CheckRechargeKafkaServer",
"cls:DescribeClsPrePayDetails",
"cls:DescribeClsPrePayInfos",
"cls:DescribeConfigMachineGroups",
"cls:DescribeConfigs",
"cls:DescribeAgentConfigs",
"cls:DescribeTopicExtendConfig",
"cls:DescribeDataTransformFailLogInfo",
"cls:DescribeDataTransformInfo",
"cls:DescribeDataTransformPreviewDataInfo",
"cls:DescribeDataTransformPreviewInfo",
"cls:DescribeDataTransformProcessInfo",
"cls:DescribeDemonstrations",
"cls:DescribeExceptionResources",
"cls:DescribeExternalDataSourcePreview",
"cls:DescribeFunctions",
"cls:DescribeResources",
"cls:DescribeShipperPreview",
"cls:DescribeScheduledSqlProcessInfo",
"cls:DescribeConfigurationTemplates",
"cls:DescribeFolders",
"cls:GetClsService",
"cls:GetConfigurationTemplateApplyLog",
"cls:PreviewKafkaRecharge",
"cls:CreateDemonstrations",
"cls:DeleteDemonstrations",
"cls:CreateExport",
"cls:DeleteExport",
"cls:DescribeNoticeContents",
"cls:DescribeWebCallbacks"
],
"effect": "allow",
"resource": "*"
}
],
"version": "2.0"
}

Data Collection

Collecting Data Using LogListener

Users can use the Agent LogListener to collect and upload log data. (This sample demonstrates the minimum permission for uploading logs from a machine with LogListener installed.)
{
"version": "2.0",
"statement": [{
"action": [
"cls:pushLog",
"cls:getConfig",
"cls:agentHeartBeat"
],
"resource": "*",
"effect": "allow"
}]
}
Note
If you are using a LogListener version earlier than 2.6.5, you need to add the "cls:listLogset" permission.

Metric Reporting

Users can use the Prometheus Remote Write protocol to report metric data or use collectors compatible with this protocol (such as vmagent and Telegraf) to collect metrics and report them to metric topics. (The sample code below demonstrates the minimum permission for metric reporting.)
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:MetricsRemoteWrite"
],
"resource": [
"*"
]
}
]
}

Self-built Kubernetes Data Collection by Using LogListener

Users can use Logagent to collect and upload log data from self-built Kubernetes clusters. (The sample code below demonstrates the minimum permission for data upload from a self-built Kubernetes cluster.)
{
"version": "2.0",
"statement": [
{
"action": [
"cls:pushLog",
"cls:agentHeartBeat",
"cls:getConfig",
"cls:CreateConfig",
"cls:DeleteConfig",
"cls:ModifyConfig",
"cls:DescribeConfigs",
"cls:DescribeMachineGroupConfigs",
"cls:DeleteConfigFromMachineGroup",
"cls:ApplyConfigToMachineGroup",
"cls:DescribeConfigMachineGroups",
"cls:ModifyTopic",
"cls:CreateTopic",
"cls:DescribeTopics",
"cls:CreateLogset",
"cls:DescribeLogsets",
"cls:CreateIndex",
"cls:ModifyIndex",
"cls:CreateMachineGroup",
"cls:DeleteMachineGroup",
"cls:DescribeMachineGroups",
"cls:ModifyMachineGroup",
"cls:CreateConfigExtra",
"cls:DeleteConfigExtra",
"cls:ModifyConfigExtra",
"cls:MetricsRemoteWrite"
],
"resource": "*",
"effect": "allow"
}
]
}

Data Upload by Using APIs/SDKs

Users can use APIs/SDKs to upload data to CLS. (The sample code below demonstrates the minimum permission for data upload by using APIs/SDKs.)
{
"version": "2.0",
"statement": [{
"action": [
"cls:pushLog",
"cls:UploadLog",
"cls:MetricsRemoteWrite"
],
"resource": "*",
"effect": "allow"
}]
}

Data Upload by Using Network Detection SDK

Users can use the Network Detection SDK to upload data to CLS. (This sample demonstrates the minimum permission for data upload by using network detection.)
{
"version": "2.0",
"statement": [{
"action": [
"cls:pushLog"
],
"resource": "*",
"effect": "allow"
}]
}

Data Upload by Using Kafka

Users can upload log data to CLS over Kafka protocol. (The sample code below demonstrates the minimum permission for data upload over Kafka protocol.)
{
"version": "2.0",
"statement": [{
"action": [
"cls:RealtimeProducer"
],
"resource": "*",
"effect": "allow"
}]
}

Data Upload Through Cloud Product Metric Subscription

Users can upload metric data to CLS through cloud product metric subscription. (The sample code below demonstrates the minimum permission for data upload through cloud product metric subscription.)
{
"version": "2.0",
"statement": [{
"action": [
"cls:CreateMetricSubscribe",
"cls:DescribeMetricCorrectDimension",
"cls:DescribeMetricSubscribePreview",
"monitor:DescribeBaseMetrics",
"monitor:DescribeProductList"
],
"resource": "*",
"effect": "allow"
}]
}

Subscription to MySQL Binlog Data

Users can upload MySQL binlog data to CLS through subscription. (The sample code below demonstrates the minimum permission for MySQL binlog data upload through subscription.)
{
"version": "2.0",
"statement": [{
"action": [
"cls:CreateBinlogSubscribe",
"cls:DescribeBinlogSubscribes",
"cls:ModifyBinlogSubscribe",
"cls:DescribeBinlogSubscribeConnectivity",
"cls:DescribeBinlogSubscribePreview"
],
"resource": "*",
"effect": "allow"
}]
}

Subscription to Kafka Data

Users can upload Kafka cluster data to CLS through subscription. (The sample code below demonstrates the minimum permission for Kafka cluster data upload through subscription.)
{
"version": "2.0",
"statement": [{
"action": [
"cls:PreviewKafkaRecharge",
"cls:CreateKafkaRecharge",
"cls:ModifyKafkaRecharge"
],
"resource": "*",
"effect": "allow"
}]
}

FluentBit Log Upload

Users can upload Fluent Bit data to CLS by using Fluent Bit plugins in Go. (The sample code below demonstrates the minimum permission for data upload by using Fluent Bit plugins in Go.)
{
"version": "2.0",
"statement": [{
"action": [
"cls:pushLog"
],
"resource": "*",
"effect": "allow"
}]
}

Logstash Log Upload

Users can upload Logstash data to CLS by using Logstash plugins. (The sample code below demonstrates the minimum permission for data upload by using Logstash plugins.)
{
"version": "2.0",
"statement": [{
"action": [
"cls:pushLog"
],
"resource": "*",
"effect": "allow"
}]
}

Managing Collection Configurations and Machine Groups

Related operations include creation, modification, and deletion of collection configurations and machine groups.
Config-related APIs correspond to resources related to collection configurations.
MachineGroup-related APIs correspond to resources related to machine groups.
The three ConfigExtra-related APIs are used to manage the cluster configuration for uploading self-built Kubernetes cluster data. They can be ignored if no self-built Kubernetes cluster data is uploaded.
{
"version": "2.0",
"statement": [{
"action": [
"cls:DescribeLogsets",
"cls:DescribeTopics",
"cls:CreateConfig",
"cls:CreateConfig",
"cls:DeleteConfig",
"cls:DescribeConfigs",
"cls:ModifyConfig",
"cls:CreateConfigExtra",
"cls:DeleteConfigExtra",
"cls:ModifyConfigExtra",
"cls:CreateMachineGroup",
"cls:DeleteMachineGroup",
"cls:DescribeMachineGroups",
"cls:DeleteConfigFromMachineGroup",
"cls:ApplyConfigToMachineGroup",
"cls:ModifyMachineGroup"
],
"resource": "*",
"effect": "allow"
}
]
}

Topic Management and Search/Analysis

Viewing/Managing Topics and Performing Search/Analysis

Management Permission: Operations on All Topics

Users can search for and manage all topics. Related operations include topic creation, topic deletion, and index configuration modification but exclude collection configuration, log shipping, and log processing.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:CreateLogset",
"cls:CreateTopic",
"cls:CreateExport",
"cls:CreateIndex",
"cls:DeleteLogset",
"cls:DeleteTopic",
"cls:DeleteExport",
"cls:DeleteIndex",
"cls:ModifyLogset",
"cls:ModifyTopic",
"cls:ModifyIndex",
"cls:MergePartition",
"cls:SplitPartition",
"cls:DescribeLogsets",
"cls:DescribeTopics",
"cls:DescribeExports",
"cls:DescribeIndex",
"cls:DescribeIndexs",
"cls:DescribePartitions",
"cls:SearchLog",
"cls:DescribeLogHistogram",
"cls:DescribeLogContext",
"cls:DescribeLogFastAnalysis",
"cls:DescribeLatestJsonLog",
"cls:DescribeRebuildIndexTasks",
"cls:CreateRebuildIndexTask",
"cls:EstimateRebuildIndexTask",
"cls:CancelRebuildIndexTask",
"cls:MetricsLabelValues",
"cls:MetricsLabels",
"cls:MetricsQuery",
"cls:MetricsQueryRange",
"cls:MetricsSeries",
"cls:MetricsQueryExemplars",
"cls:GetMetricLabelValues",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:GetMetricSeries"
],
"resource": [
"*"
]
}
]
}

Management Permission: Operations on Specified Topics

Users can search for and manage specified topics. Related operations include topic modification, topic deletion, and index configuration modification but exclude topic creation, collection configuration, log shipping, and log processing.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:CreateExport",
"cls:CreateIndex",
"cls:DeleteLogset",
"cls:DeleteTopic",
"cls:DeleteExport",
"cls:DeleteIndex",
"cls:ModifyLogset",
"cls:ModifyTopic",
"cls:ModifyIndex",
"cls:MergePartition",
"cls:SplitPartition",
"cls:DescribeLogsets",
"cls:DescribeTopics",
"cls:DescribeExports",
"cls:DescribeIndex",
"cls:DescribeIndexs",
"cls:DescribePartitions",
"cls:SearchLog",
"cls:DescribeLogHistogram",
"cls:DescribeLogContext",
"cls:DescribeLogFastAnalysis",
"cls:DescribeLatestJsonLog",
"cls:DescribeRebuildIndexTasks",
"cls:CreateRebuildIndexTask",
"cls:EstimateRebuildIndexTask",
"cls:CancelRebuildIndexTask",
"cls:MetricsLabelValues",
"cls:MetricsLabels",
"cls:MetricsQuery",
"cls:MetricsQueryRange",
"cls:MetricsSeries",
"cls:MetricsQueryExemplars",
"cls:GetMetricLabelValues",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:GetMetricSeries"
],
"resource": [
"qcs::cls:ap-guangzhou:100007***827:logset/1c012db7-2cfd-4418-****-7342c7a42516",
"qcs::cls:ap-guangzhou:100007***827:topic/380fe1f1-0c7b-4b0d-****-d514959db1bb"
]
}
]
}

Management Permission: Operations on Topics with Specified Tags

Users can search for and manage topics that contain specified Tags. Related operations include topic modification, topic deletion, and index configuration modification but exclude topic creation, collection configuration, log shipping, and log processing. When you bind a Tag to a topic, you must also bind the Tag to the logset to which the topic belongs.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:CreateExport",
"cls:CreateIndex",
"cls:DeleteLogset",
"cls:DeleteTopic",
"cls:DeleteExport",
"cls:DeleteIndex",
"cls:ModifyLogset",
"cls:ModifyTopic",
"cls:ModifyIndex",
"cls:MergePartition",
"cls:SplitPartition",
"cls:DescribeLogsets",
"cls:DescribeTopics",
"cls:DescribeExports",
"cls:DescribeIndex",
"cls:DescribeIndexs",
"cls:DescribePartitions",
"cls:SearchLog",
"cls:DescribeLogHistogram",
"cls:DescribeLogContext",
"cls:DescribeLogFastAnalysis",
"cls:DescribeLatestJsonLog",
"cls:DescribeRebuildIndexTasks",
"cls:CreateRebuildIndexTask",
"cls:EstimateRebuildIndexTask",
"cls:CancelRebuildIndexTask",
"cls:MetricsLabelValues",
"cls:MetricsLabels",
"cls:MetricsQuery",
"cls:MetricsQueryRange",
"cls:MetricsSeries",
"cls:MetricsQueryExemplars",
"cls:GetMetricLabelValues",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:GetMetricSeries"
],
"resource": [
"*"
],
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"testCAM&test1"
]
}
}
}
]
}

Read-Only Permission: Operations on All Topics

Users can search for all topics.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeLogsets",
"cls:DescribeTopics",
"cls:DescribeExports",
"cls:DescribeIndex",
"cls:DescribeIndexs",
"cls:DescribePartitions",
"cls:SearchLog",
"cls:DescribeLogHistogram",
"cls:DescribeLogContext",
"cls:DescribeLogFastAnalysis",
"cls:DescribeLatestJsonLog",
"cls:DescribeRebuildIndexTasks",
"cls:MetricsLabelValues",
"cls:MetricsLabels",
"cls:MetricsQuery",
"cls:MetricsQueryRange",
"cls:MetricsSeries",
"cls:MetricsQueryExemplars",
"cls:GetMetricLabelValues",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:GetMetricSeries"
],
"resource": [
"*"
]
}
]
}

Read-Only Permission: Operations on Specified Topics

Users can search for specified topics.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeLogsets",
"cls:DescribeTopics",
"cls:DescribeExports",
"cls:DescribeIndex",
"cls:DescribeIndexs",
"cls:DescribePartitions",
"cls:SearchLog",
"cls:DescribeLogHistogram",
"cls:DescribeLogContext",
"cls:DescribeLogFastAnalysis",
"cls:DescribeLatestJsonLog",
"cls:DescribeRebuildIndexTasks",
"cls:MetricsLabelValues",
"cls:MetricsLabels",
"cls:MetricsQuery",
"cls:MetricsQueryRange",
"cls:MetricsSeries",
"cls:MetricsQueryExemplars",
"cls:GetMetricLabelValues",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:GetMetricSeries"
],
"resource": [
"qcs::cls:ap-guangzhou:100007***827:logset/1c012db7-2cfd-4418-****-7342c7a42516",
"qcs::cls:ap-guangzhou:100007***827:topic/380fe1f1-0c7b-4b0d-****-d514959db1bb"
]
}
]
}

Read-Only Permission: Operations on Topics with Specified Tags

Users can search for topics with specified tags.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeLogsets",
"cls:DescribeTopics",
"cls:DescribeExports",
"cls:DescribeIndex",
"cls:DescribeIndexs",
"cls:DescribePartitions",
"cls:SearchLog",
"cls:DescribeLogHistogram",
"cls:DescribeLogContext",
"cls:DescribeLogFastAnalysis",
"cls:DescribeLatestJsonLog",
"cls:DescribeRebuildIndexTasks",
"cls:MetricsLabelValues",
"cls:MetricsLabels",
"cls:MetricsQuery",
"cls:MetricsQueryRange",
"cls:MetricsSeries",
"cls:MetricsQueryExemplars",
"cls:GetMetricLabelValues",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:GetMetricSeries"
],
"resource": [
"*"
],
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"testCAM&test1"
]
}
}
}
]
}

Using APIs to Perform Search and Analysis

Read-Only Permission: Search and Analysis on All Topics

Users can perform search and analysis on all topics by using APIs.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:SearchLog",
"cls:MetricsLabelValues",
"cls:MetricsLabels",
"cls:MetricsQuery",
"cls:MetricsQueryRange",
"cls:MetricsSeries",
"cls:MetricsQueryExemplars",
"cls:GetMetricLabelValues",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:GetMetricSeries",
"cls:MetricsRemoteRead"
],
"resource": [
"*"
]
}
]
}

Read-Only Permission: Search and Analysis on Specified Topics

Users can perform search and analysis on specified topics by using APIs.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:SearchLog",
"cls:MetricsLabelValues",
"cls:MetricsLabels",
"cls:MetricsQuery",
"cls:MetricsQueryRange",
"cls:MetricsSeries",
"cls:MetricsQueryExemplars",
"cls:GetMetricLabelValues",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:GetMetricSeries",
"cls:MetricsRemoteRead"
],
"resource": [
"qcs::cls:ap-guangzhou:100007***827:logset/1c012db7-2cfd-4418-****-7342c7a42516",
"qcs::cls:ap-guangzhou:100007***827:topic/380fe1f1-0c7b-4b0d-****-d514959db1bb"
]
}
]
}

Read-Only Permission: Search and Analysis on Topics with Specified Tags

Users can perform search and analysis on topics with specified Tags by using APIs.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:SearchLog",
"cls:MetricsLabelValues",
"cls:MetricsLabels",
"cls:MetricsQuery",
"cls:MetricsQueryRange",
"cls:MetricsSeries",
"cls:MetricsQueryExemplars",
"cls:GetMetricLabelValues",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:GetMetricSeries",
"cls:MetricsRemoteRead"
],
"resource": [
"*"
],
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"testCAM&test1"
]
}
}
}
]
}

Dashboard

Management Permission: Operations on All Dashboards

Users can manage all dashboards. Related operations include creation, deletion, editing, viewing, and subscription. Dashboards can use data of all topics.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:GetChart",
"cls:GetDashboard",
"cls:ListChart",
"cls:CreateChart",
"cls:CreateDashboard",
"cls:DeleteChart",
"cls:DeleteDashboard",
"cls:ModifyChart",
"cls:ModifyDashboard",
"cls:DescribeDashboards",
"cls:CreateFolder",
"cls:DeleteFolder",
"cls:DescribeFolders",
"cls:ModifyFolder",
"cls:ModifyResourceAndFolderRelation",
"cls:SearchDashboardSubscribe",
"cls:CreateDashboardSubscribe",
"cls:ModifyDashboardSubscribe",
"cls:DescribeDashboardSubscribes",
"cls:DeleteDashboardSubscribe",
"cls:ModifyDashboardSubscribeAck"
],
"resource": "*"
},
{
"effect": "allow",
"action": [
"cls:SearchLog",
"cls:DescribeTopics",
"cls:DescribeLogFastAnalysis",
"cls:DescribeIndex",
"cls:DescribeLogsets",
"cls:GetMetricLabelValues",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:GetMetricSeries"
],
"resource": "*"
}
]
}

Management Permission: Operations on Dashboards with Specified Tags

Users can manage dashboards with specified tags. Related operations include creation, deletion, editing, viewing, and subscription. Dashboards can use data of topics with specified tags.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:GetChart",
"cls:GetDashboard",
"cls:ListChart",
"cls:CreateChart",
"cls:CreateDashboard",
"cls:DeleteChart",
"cls:DeleteDashboard",
"cls:ModifyChart",
"cls:ModifyDashboard",
"cls:DescribeDashboards",
"cls:CreateFolder",
"cls:DeleteFolder",
"cls:DescribeFolders",
"cls:ModifyFolder",
"cls:ModifyResourceAndFolderRelation",
"cls:SearchDashboardSubscribe",
"cls:CreateDashboardSubscribe",
"cls:ModifyDashboardSubscribe",
"cls:DescribeDashboardSubscribes",
"cls:DeleteDashboardSubscribe",
"cls:ModifyDashboardSubscribeAck"
],
"resource": "*",
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
},
{
"effect": "allow",
"action": [
"cls:SearchLog",
"cls:DescribeTopics",
"cls:DescribeLogFastAnalysis",
"cls:DescribeIndex",
"cls:DescribeLogsets",
"cls:GetMetricLabelValues",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:GetMetricSeries"
],
"resource": "*",
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
}
]
}

Management Permission: Operations on Specified Dashboards

Users can manage specified dashboards. Related operations include creation, deletion, editing, viewing, and subscription. Dashboards can use data of specified topics.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:GetChart",
"cls:GetDashboard",
"cls:ListChart",
"cls:CreateChart",
"cls:CreateDashboard",
"cls:DeleteChart",
"cls:DeleteDashboard",
"cls:ModifyChart",
"cls:ModifyDashboard",
"cls:DescribeDashboards",
"cls:CreateFolder",
"cls:DeleteFolder",
"cls:DescribeFolders",
"cls:ModifyFolder",
"cls:ModifyResourceAndFolderRelation",
"cls:SearchDashboardSubscribe",
"cls:CreateDashboardSubscribe",
"cls:ModifyDashboardSubscribe",
"cls:DescribeDashboardSubscribes",
"cls:DeleteDashboardSubscribe",
"cls:ModifyDashboardSubscribeAck"
],
"resource": [
"qcs::cls::uin/100000***001:dashboard/dashboard-0769a3ba-2514-409d-****-f65b20b23736"
]
},
{
"effect": "allow",
"action": [
"cls:SearchLog",
"cls:DescribeTopics",
"cls:DescribeLogFastAnalysis",
"cls:DescribeIndex",
"cls:DescribeLogsets",
"cls:GetMetricLabelValues",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:GetMetricSeries"
],
"resource": [
"qcs::cls::uin/100000***001:topic/174ca473-50d0-4fdf-****-2ef681a1e02a"
]
}
]
}

Read-Only Permission: Operations on All Dashboards

Users can view all dashboards, and the dashboards can use data of all topics.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:GetChart",
"cls:GetDashboard",
"cls:ListChart",
"cls:DescribeDashboards",
"cls:DescribeFolders",
"cls:SearchDashboardSubscribe",
"cls:DescribeDashboardSubscribes"
],
"resource": "*"
},
{
"effect": "allow",
"action": [
"cls:SearchLog",
"cls:DescribeTopics",
"cls:DescribeLogFastAnalysis",
"cls:DescribeIndex",
"cls:DescribeLogsets",
"cls:GetMetricLabelValues",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:GetMetricSeries"
],
"resource": "*"
}
]
}

Read-Only Permission: Operations on Dashboards with Specified Tags

Users can view dashboards with specified tags, and the dashboards can use data of topics with specified tags.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:GetChart",
"cls:GetDashboard",
"cls:ListChart",
"cls:DescribeDashboards",
"cls:DescribeFolders",
"cls:SearchDashboardSubscribe",
"cls:DescribeDashboardSubscribes"
],
"resource": "*",
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
},
{
"effect": "allow",
"action": [
"cls:SearchLog",
"cls:DescribeTopics",
"cls:DescribeLogFastAnalysis",
"cls:DescribeIndex",
"cls:DescribeLogsets",
"cls:GetMetricLabelValues",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:GetMetricSeries"
],
"resource": "*",
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
}
]
}

Read-Only Permission: Operations on Specified Dashboards

Users can view specified dashboards, and the dashboards can use data of specified topics.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:GetChart",
"cls:GetDashboard",
"cls:ListChart",
"cls:DescribeDashboards",
"cls:DescribeFolders",
"cls:SearchDashboardSubscribe",
"cls:DescribeDashboardSubscribes"
],
"resource": [
"qcs::cls::uin/100000***001:dashboard/dashboard-0769a3ba-2514-409d-****-f65b20b23736"
]
},
{
"effect": "allow",
"action": [
"cls:SearchLog",
"cls:DescribeTopics",
"cls:DescribeLogFastAnalysis",
"cls:DescribeIndex",
"cls:DescribeLogsets",
"cls:GetMetricLabelValues",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:GetMetricSeries"
],
"resource": [
"qcs::cls::uin/100000***001:topic/174ca473-50d0-4fdf-****-2ef681a1e02a"
]
}
]
}

Monitoring and Alarm

Management Permission: Operations on All Alarm Policies

Users can manage all alarm policies. Related operations include creating alarm policies, creating notification channel groups, and viewing alarm policies.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeLogsets",
"cls:DescribeTopics",
"cls:SearchLog",
"cls:GetMetricLabelValues",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:GetMetricSeries"
],
"resource": [
"*"
]
},
{
"effect": "allow",
"action": [
"cls:DescribeAlarms",
"cls:CreateAlarm",
"cls:ModifyAlarm",
"cls:DeleteAlarm",
"cls:DescribeAlarmNotices",
"cls:CreateAlarmNotice",
"cls:ModifyAlarmNotice",
"cls:DeleteAlarmNotice",
"cam:ListGroups",
"cam:DescribeSubAccountContacts",
"cam:GetGroup",
"cls:GetAlarmLog",
"cls:DescribeAlertRecordHistory",
"cls:CheckAlarmRule",
"cls:CheckAlarmChannel"
],
"resource": "*"
}
]
}

Management Permission: Operations on Alarm Policies with Specified Tags

Users can manage alarm policies with specified Tags. Related operations include modifying alarm policies, modifying notification channel groups, and viewing alarm policies.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeLogsets",
"cls:DescribeTopics",
"cls:SearchLog",
"cam:ListGroups",
"cam:DescribeSubAccountContacts",
"cam:GetGroup",
"cls:CheckAlarmRule",
"cls:CheckAlarmChannel",
"cls:GetMetricLabelValues",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:GetMetricSeries"
],
"resource": [
"*"
]
},
{
"effect": "allow",
"action": [
"cls:DescribeAlarms",
"cls:ModifyAlarm",
"cls:DeleteAlarm",
"cls:DescribeAlarmNotices",
"cls:ModifyAlarmNotice",
"cls:DeleteAlarmNotice",
"cls:GetAlarmLog",
"cls:DescribeAlertRecordHistory"
],
"resource": [
"*"
],
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
}
]
}

Management Permission: Operations on Specified Alarm Policies

Users can manage specified alarm policies. Related operations include modifying alarm policies, modifying notification channel groups, and viewing alarm policies.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeLogsets",
"cls:DescribeTopics",
"cls:SearchLog",
"cam:ListGroups",
"cam:DescribeSubAccountContacts",
"cam:GetGroup",
"cls:CheckAlarmRule",
"cls:CheckAlarmChannel",
"cls:GetMetricLabelValues",
"cls:QueryMetric",
"cls:QueryRangeMetric",
"cls:GetMetricSeries"
],
"resource": [
"*"
]
},
{
"effect": "allow",
"action": [
"cls:DescribeAlarms",
"cls:ModifyAlarm",
"cls:DeleteAlarm",
"cls:DescribeAlarmNotices",
"cls:ModifyAlarmNotice",
"cls:DeleteAlarmNotice",
"cls:GetAlarmLog",
"cls:DescribeAlertRecordHistory"
],
"resource": [
"qcs::cls:ap-guangzhou:100007***827:alarm/alarm-xxx-9bbe-4625-ac29-b5e66bf643cf",
"qcs::cls:ap-guangzhou:100007***827:alarmNotice/notice-xxx-ec2c-410f-924f-4ee8a7cd028e"
]
}
]
}

Read-Only Permission: Operations on All Alarm Policies

Users can view all alarm policies.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeLogsets",
"cls:DescribeTopics"
],
"resource": [
"*"
]
},
{
"effect": "allow",
"action": [
"cls:DescribeAlarms",
"cls:DescribeAlarmNotices",
"cls:GetAlarmLog",
"cls:DescribeAlertRecordHistory",
"cam:ListGroups",
"cam:DescribeSubAccountContacts",
"cam:GetGroup"
],
"resource": "*"
}
]
}

Read-Only Permission: Operations on Alarm Policies with Specified Tags

Users can view alarm policies with specified tags.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeLogsets",
"cls:DescribeTopics",
"cam:ListGroups",
"cam:DescribeSubAccountContacts",
"cam:GetGroup"
],
"resource": [
"*"
]
},
{
"effect": "allow",
"action": [
"cls:DescribeAlarms",
"cls:DescribeAlarmNotices",
"cls:GetAlarmLog",
"cls:DescribeAlertRecordHistory"
],
"resource": [
"*"
],
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
}
]
}

Read-Only Permission: Operations on Specified Alarm Policies

Users can view specified alarm policies.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeLogsets",
"cls:DescribeTopics",
"cam:ListGroups",
"cam:DescribeSubAccountContacts",
"cam:GetGroup"
],
"resource": [
"*"
]
},
{
"effect": "allow",
"action": [
"cls:DescribeAlarms",
"cls:DescribeAlarmNotices",
"cls:GetAlarmLog",
"cls:DescribeAlertRecordHistory"
],
"resource": [
"qcs::cls:ap-guangzhou:100007***827:alarm/alarm-xxx-9bbe-4625-ac29-b5e66bf643cf",
"qcs::cls:ap-guangzhou:100007***827:alarmNotice/notice-xxx-ec2c-410f-924f-4ee8a7cd028e"
]
}
]
}

Data Processing

Data Processing

Management Permission: Operations on All Data Processing Tasks

Users can manage data processing tasks of all log topics.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeLogsets",
"cls:DescribeDataTransformPreviewDataInfo",
"cls:DescribeTopics",
"cls:DescribeIndex",
"cls:CreateDataTransform"
],
"resource": [
"*"
]
},
{
"effect": "allow",
"action": [
"cls:DescribeFunctions",
"cls:CheckFunction",
"cls:DescribeDataTransformFailLogInfo",
"cls:DescribeDataTransformInfo",
"cls:DescribeDataTransformPreviewInfo",
"cls:DescribeDataTransformProcessInfo",
"cls:DeleteDataTransform",
"cls:ModifyDataTransform"
],
"resource": [
"*"
]
}
]
}

Read-Only Permission: Operations on All Data Processing Tasks

Users can view data processing tasks of all log topics. DSL function authorization is not required.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeLogsets",
"cls:DescribeTopics"
],
"resource": [
"*"
]
},
{
"effect": "allow",
"action": [
"cls:DescribeDataTransformFailLogInfo",
"cls:DescribeDataTransformInfo",
"cls:DescribeDataTransformPreviewDataInfo",
"cls:DescribeDataTransformPreviewInfo",
"cls:DescribeDataTransformProcessInfo"
],
"resource": [
"*"
]
}
]
}

Performing Scheduled SQL Analysis

Management permission: Scheduled SQL Analysis on All Log Topics

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeLogsets",
"cls:DescribeTopics",
"cls:CreateScheduledSql",
"cls:SearchLog",
"cls:DescribeScheduledSqlInfo",
"cls:DescribeScheduledSqlProcessInfo",
"cls:DeleteScheduledSql",
"cls:ModifyScheduledSql",
"cls:RetryScheduledSqlTask"
],
"resource": [
"*"
]
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cam:ListAttachedRolePolicies"
],
"resource": [
"*"
]
}
]
}

Management Permission: Scheduled SQL Analysis on Log Topics with Specified Tags

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeLogsets",
"cls:DescribeTopics",
"cls:SearchLog",
"cls:DescribeScheduledSqlProcessInfo",
"cls:CreateScheduledSql",
"cls:DeleteScheduledSql",
"cls:ModifyScheduledSql",
"cls:RetryScheduledSqlTask"
],
"resource": [
"*"
],
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cam:ListAttachedRolePolicies",
"cls:DescribeScheduledSqlInfo"
],
"resource": [
"*"
]
}
]
}

Data Shipping and Consumption

Shipping to CKafka

Management Permission: Shipping to CKafka for All Log Topics

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets",
"cls:CreateConsumer",
"cls:ModifyConsumer",
"cls:DeleteConsumer",
"cls:DescribeConsumer",
"cls:DescribeConsumerPreview"
],
"resource": "*"
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cam:ListAttachedRolePolicies",
"cam:AttachRolePolicy",
"cam:CreateRole",
"cam:DescribeRoleList",
"ckafka:DescribeInstances",
"ckafka:DescribeTopic",
"ckafka:DescribeInstanceAttributes",
"ckafka:CreateToken",
"ckafka:AuthorizeToken"
],
"resource": "*"
}
]
}

Management Permission: Shipping to CKafka for Log Topics with Specified Tags

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets",
"cls:CreateConsumer",
"cls:ModifyConsumer",
"cls:DeleteConsumer",
"cls:DescribeConsumer",
"cls:DescribeConsumerPreview"
],
"resource": "*",
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"age&13",
"name&vinson"
]
}
}
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cam:ListAttachedRolePolicies",
"cam:AttachRolePolicy",
"cam:CreateRole",
"cam:DescribeRoleList",
"ckafka:DescribeInstances",
"ckafka:DescribeTopic",
"ckafka:DescribeInstanceAttributes",
"ckafka:CreateToken",
"ckafka:AuthorizeToken"
],
"resource": "*"
}
]
}

Read-Only Permission: Shipping to CKafka for All Log Topics

Users can perform read-only operations for shipping all log topics to CKafka.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets",
"cls:DescribeConsumer",
"cls:DescribeConsumerPreview"
],
"resource": "*"
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cam:ListAttachedRolePolicies",
"ckafka:DescribeInstances",
"ckafka:DescribeTopic",
"ckafka:DescribeInstanceAttributes",
"ckafka:CreateToken",
"ckafka:AuthorizeToken"
],
"resource": "*"
}
]
}

Read-Only Permission: Shipping to CKafka for Log Topics with Specified Tags

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets",
"cls:DescribeConsumer",
"cls:DescribeConsumerPreview"
],
"resource": "*",
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cam:ListAttachedRolePolicies",
"ckafka:DescribeInstances",
"ckafka:DescribeTopic",
"ckafka:DescribeInstanceAttributes",
"ckafka:CreateToken",
"ckafka:AuthorizeToken"
],
"resource": "*"
}
]
}

Shipping to COS

Management Permission: Shipping All Log Topics to COS

Users can perform all operations for shipping all log topics to COS.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets",
"cls:DescribeIndex",
"cls:CreateShipper"
],
"resource": "*"
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cls:ModifyShipper",
"cls:DescribeShippers",
"cls:DeleteShipper",
"cls:DescribeShipperTasks",
"cls:RetryShipperTask",
"cls:DescribeShipperPreview",
"cos:GetService",
"cam:ListAttachedRolePolicies",
"cam:AttachRolePolicy",
"cam:CreateRole",
"cam:DescribeRoleList"
],
"resource": "*"
}
]
}

Management Permission: Shipping Log Topics with Specified Tags to COS

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets",
"cls:DescribeIndex",
"cls:CreateShipper"
],
"resource": "*",
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cls:ModifyShipper",
"cls:DescribeShippers",
"cls:DeleteShipper",
"cls:DescribeShipperTasks",
"cls:RetryShipperTask",
"cls:DescribeShipperPreview",
"cos:GetService",
"cam:ListAttachedRolePolicies",
"cam:AttachRolePolicy",
"cam:CreateRole",
"cam:DescribeRoleList"
],
"resource": "*"
}
]
}

Read-Only Permission: Shipping All Log Topics to COS

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets" ],
"resource": "*"
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cls:DescribeShippers",
"cls:DescribeShipperTasks",
"cls:RetryShipperTask",
"cls:DescribeShipperPreview",
"cam:ListAttachedRolePolicies"
],
"resource": "*"
}
]
}

Read-Only Permission: Shipping Log Topics with Specified Tags to COS

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets"],
"resource": "*",
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cls:DescribeShippers",
"cls:DescribeShipperTasks",
"cls:RetryShipperTask",
"cls:DescribeShipperPreview",
"cam:ListAttachedRolePolicies"
],
"resource": "*"
}
]
}

Shipping to DLC

Management Permission: Shipping All Log Topics to DLC

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets",
"cls:CreateDlcDeliver",
"cls:ModifyDlcDeliver",
"cls:DescribeDlcDelivers",
"cls:DeleteDlcDeliver"
],
"resource": "*"
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"dlc:DescribeDatabases",
"dlc:DescribeOptimizedTables",
"dlc:DescribeDatasourceConnection",
"cam:ListAttachedRolePolicies",
"cam:AttachRolePolicy",
"cam:CreateRole",
"cam:DescribeRoleList"
],
"resource": "*"
}
]
}

Management Permission: Shipping Log Topics with Specified Tags to DLC

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets",
"cls:CreateDlcDeliver",
"cls:ModifyDlcDeliver",
"cls:DescribeDlcDelivers",
"cls:DeleteDlcDeliver"
],
"resource": "*",
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"dlc:DescribeDatabases",
"dlc:DescribeOptimizedTables",
"dlc:DescribeDatasourceConnection",
"cam:ListAttachedRolePolicies",
"cam:AttachRolePolicy",
"cam:CreateRole",
"cam:DescribeRoleList"
],
"resource": "*"
}
]
}

Read-Only Permission: Shipping All Log Topics to DLC

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets" ],
"resource": "*"
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cls:DescribeDlcDelivers",
"dlc:DescribeDatabases",
"dlc:DescribeOptimizedTables",
"dlc:DescribeDatasourceConnection",
"cam:ListAttachedRolePolicies"
],
"resource": "*"
}
]
}

Read-Only Permission: Shipping Log Topics with Specified Tags to DLC

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets"],
"resource": "*",
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cls:DescribeDlcDelivers",
"dlc:DescribeDatabases",
"dlc:DescribeOptimizedTables",
"dlc:DescribeDatasourceConnection",
"cam:ListAttachedRolePolicies"
],
"resource": "*"
}
]
}

Shipping to Splunk

Management Permission: Shipping All Log Topics to Splunk

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets",
"cls:CheckSplunkConnect",
"cls:DescribeSplunkPreview",
"cls:CreateSplunkDeliver",
"cls:ModifySplunkDeliver",
"cls:DescribeSplunkDelivers",
"cls:DeleteSplunkDeliver"
],
"resource": "*"
}
]
}

Management Permission: Shipping Log Topics with Specified Tags to Splunk

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets",
"cls:CheckSplunkConnect",
"cls:DescribeSplunkPreview",
"cls:CreateSplunkDeliver",
"cls:ModifySplunkDeliver",
"cls:DescribeSplunkDelivers",
"cls:DeleteSplunkDeliver"
],
"resource": "*",
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
],
"resource": "*"
}
]
}

Read-Only Permission: Shipping All Log Topics to Splunk

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets",
"cls:CheckSplunkConnect",
"cls:DescribeSplunkPreview",
"cls:DescribeSplunkDelivers"
],
"resource": "*"
}
]
}

Read-Only Permission: Shipping Log Topics with Specified Tags to Splunk

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets",
"cls:CheckSplunkConnect",
"cls:DescribeSplunkPreview",
"cls:DescribeSplunkDelivers"
],
"resource": "*",
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
],
"resource": "*"
}
]
}

Shipping to SCF

Management Permission: Shipping All Log Topics to SCF

Users can perform all operations for shipping all log topics to SCF.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets"
],
"resource": "*"
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cam:ListAttachedRolePolicies",
"cls:CreateDeliverFunction",
"cls:DeleteDeliverFunction",
"cls:ModifyDeliverFunction",
"cls:GetDeliverFunction",
"scf:ListFunctions",
"scf:ListAliases",
"scf:ListVersionByFunction"
],
"resource": "*"
}
]
}

Management Permission: Shipping Log Topics with Specified Tags to SCF

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets"
],
"resource": "*",
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cam:ListAttachedRolePolicies",
"cls:CreateDeliverFunction",
"cls:DeleteDeliverFunction",
"cls:ModifyDeliverFunction",
"cls:GetDeliverFunction",
"scf:ListFunctions",
"scf:ListAliases",
"scf:ListVersionByFunction"
],
"resource": "*"
}
]
}

Read-Only Permission: Shipping All Log Topics to SCF

Users can perform read-only operations for shipping all log topics to SCF.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets"
],
"resource": "*"
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cam:ListAttachedRolePolicies",
"cls:GetDeliverFunction",
"scf:ListFunctions",
"scf:ListAliases",
"scf:ListVersionByFunction"
],
"resource": "*"
}
]
}

Read-Only Permission: Shipping Log Topics with Specified Tags to SCF

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeTopics",
"cls:DescribeLogsets"
],
"resource": "*",
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cam:ListAttachedRolePolicies",
"cls:GetDeliverFunction",
"scf:ListFunctions",
"scf:ListAliases",
"scf:ListVersionByFunction"
],
"resource": "*"
}
]
}

Consumption over Kafka

Management Permission: Consuming All Log Topics over Kafka Protocol

Users can consume all log topics over Kafka protocol.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeLogsets",
"cls:DescribeTopics",
"cls:DescribeKafkaConsumer",
"cls:CloseKafkaConsumer",
"cls:ModifyKafkaConsumer",
"cls:OpenKafkaConsumer"
],
"resource": [
"*"]
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cam:ListAttachedRolePolicies"
],
"resource": [
"*"
]
}
]
}

Management Permission: Consuming Log Topics with Specific Tags over Kafka Protocol

Users can consume log topics with specific tags over Kafka protocol.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeLogsets",
"cls:DescribeTopics",
"cls:DescribeKafkaConsumer",
"cls:CloseKafkaConsumer",
"cls:ModifyKafkaConsumer",
"cls:OpenKafkaConsumer"
],
"resource": [
"*"
],
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
},
{
"effect": "allow",
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cam:ListAttachedRolePolicies"
],
"resource": [
"*"
]
}
]
}

Management Permission: Consuming Specific Resources over Kafka Protocol

{
"statement": [
{
"action": [
"cls:DescribeLogsets",
"cls:DescribeTopics",
"cls:DescribeKafkaConsumer",
"cls:CloseKafkaConsumer",
"cls:ModifyKafkaConsumer",
"cls:OpenKafkaConsumer"
],
"effect": "allow",
"resource": [
"qcs::cls:ap-chengdu:100001127XXX:logset/axxxxxx-772e-4971-ad9a-ddcfcfff691b",
"qcs::cls:ap-chengdu:100001127XXX:topic/590xxxxxxx-36c4-447b-a84f-172ee7340b22"
]
},
{
"action": [
"tag:DescribeResourceTagsByResourceIds",
"tag:DescribeTagKeys",
"tag:DescribeTagValues",
"cam:ListAttachedRolePolicies"
],
"effect": "allow",
"resource": [
"*"
]
}
],
"version": "2.0"
}

Minimum Permissions for Kafka Protocol Consumption (Non-Console, API Calls)

{
"version": "2.0",
"statement": [
{
"action": [
"cls:OpenKafkaConsumer"
],
"effect": "allow",
"resource": [
"*"
]
}
]
}

Shipping Metric Topics

Management Permission: Shipping All Metric Topics

{
"statement": [
{
"action": [
"cls:DescribeRemoteWriteTask",
"cls:DescribeTopics",
"cls:CreateRemoteWriteTask",
"cls:ModifyRemoteWriteTask",
"cls:DescribeLogsets",
"cls:DeleteRemoteWriteTask",
"cls:CheckRemoteWriteTaskConnect"
],
"effect": "allow",
"resource": [
"*"
]
}
],
"version": "2.0"
}

Management Permission: Shipping Metric Topics with Specific Tags

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:DescribeRemoteWriteTask",
"cls:DescribeTopics",
"cls:CreateRemoteWriteTask",
"cls:ModifyRemoteWriteTask",
"cls:DescribeLogsets",
"cls:DeleteRemoteWriteTask",
"cls:CheckRemoteWriteTaskConnect"
],
"resource": [
"*"
],
"condition": {
"string_equal": {
"qcs:resource_tag": "key:value"
}
}
}
]
}

Custom Consumption

Management Permission: Custom Consumption of All Metric Topics

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:CreateConsumerGroup",
"cls:ModifyConsumerGroup",
"cls:DescribeConsumerGroups",
"cls:DeleteConsumerGroup",
"cls:DescribeConsumerOffsets",
"cls:CommitConsumerOffsets",
"cls:SendConsumerHeartbeat",
"cls:pullLog"
],
"resource": [
"*"]
}
]
}

DataSight Permissions

Management Permission: Operations on All Independent DataSight Consoles

Users can create, modify, view, and delete DataSight consoles in the Tencent Cloud console.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:CreateConsole",
"cls:DeleteConsole",
"cls:DescribeConsoles",
"vpc:DescribeSubnetEx",
"vpc:DescribeVpcEx",
"cls:ModifyConsole"
],
"resource": [
"*"
]
}
]
}

Management Permission: Operations on Specific Independent DataSight Consoles

Users can create, modify, view, and delete specific DataSight consoles in the Tencent Cloud console.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:CreateConsole",
"cls:DeleteConsole",
"cls:DescribeConsoles",
"vpc:DescribeSubnetEx",
"vpc:DescribeVpcEx",
"cls:ModifyConsole"
],
"resource": [
"qcs::cls::uin/100******123:datasight/clsconsole-1234abcd"
]
}
]
}

Management Permission: Operations on Independent DataSight Consoles with Specific Tags

Users can create, modify, view, and delete DataSight consoles with specific tags in the Tencent Cloud console.
{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:CreateConsole",
"cls:DeleteConsole",
"cls:DescribeConsoles",
"vpc:DescribeSubnetEx",
"vpc:DescribeVpcEx",
"cls:ModifyConsole"
],
"resource": [
"*"
],
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
}
]
}

Read-Only Permission: Operations on All Independent DataSight Consoles

Users can view relevant information on DataSight consoles in the Tencent Cloud console.
{
"statement": [
{
"action": [
"cls:DescribeConsoles"
],
"effect": "allow",
"resource": [
"*"
]
}
],
"version": "2.0"
}

Read-Only Permission: Operations on Specific Independent DataSight Consoles

Users can view relevant information on specific DataSight consoles in the Tencent Cloud console.
{
"statement": [
{
"action": [
"cls:DescribeConsoles"
],
"effect": "allow",
"resource": [
"qcs::cls::uin/100******123:datasight/clsconsole-1234abcd"
]
}
],
"version": "2.0"
}

Read-Only Permission: Operations on Independent DataSight Consoles with Specific Tags

Users can view relevant information on DataSight consoles with specific tags in the Tencent Cloud console.
{
"statement": [
{
"action": [
"cls:DescribeConsoles"
],
"effect": "allow",
"resource": [
"*"
],
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
}
],
"version": "2.0"
}

Developer

Using CLS Through Grafana

Displaying Data of All Topics Through Grafana

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:SearchLog",
"cls:DescribeTopics",
"cls:MetricsSeries",
"cls:MetricsQueryExemplars",
"cls:MetricsLabelValues",
"cls:MetricsQueryRange",
"cls:MetricsLabels",
"cls:MetricsQuery"
],
"resource": [
"*"
]
}
]
}

Displaying Data of Topics with Specified Tags Through Grafana

{
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"cls:SearchLog",
"cls:DescribeTopics",
"cls:MetricsSeries",
"cls:MetricsQueryExemplars",
"cls:MetricsLabelValues",
"cls:MetricsQueryRange",
"cls:MetricsLabels",
"cls:MetricsQuery"
],
"resource": [
"*"
],
"condition": {
"for_any_value:string_equal": {
"qcs:resource_tag": [
"key&value"
]
}
}
}
]
}


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백