You need to enable JavaScript to run this app.
Torch Log Service

Torch Log Service

Copy page
Download PDF
Permission management
Examples of custom permission policy
Copy page
Download PDF
Examples of custom permission policy
Before using TLS as an IAM user, you must first use your Volcano Engine account to grant the required permissions. TLS supports custom permission policies. This topic provides examples of custom access policies for various common scenarios in TLS.​
​
​
Basic resources​
View project information​
With the following permission policy, IAM users can view all project information under the current account.​
​
{​
"Statement": [​
{​
"Effect": "Allow",​
"Action": [​
"tls:DescribeProjects"​
],​
"Resource": [​
"trn:tls:*:*:project/*"​
]​
}​
]​
}​
​
Star TLS resources​
With the following permission policy, IAM users can mark the specified TLS resources as favorites.​
​
{​
"Statement": [​
{​
"Effect": "Allow",​
"Action": [​
"tls:CreateSavedSearch",​
"tls:DescribeSavedSearches",​
"tls:DeleteSavedSearch"​
],​
"Resource": [​
"*"​
]​
}​
]​
}​
​
Manage projects and topics​
With the following permission policy, IAM users can manage all projects and topics under the current account, including creating, querying, deleting, and updating topics and projects.​
​
{​
"Statement": [​
{​
"Effect": "Allow",​
"Action": [​
"tls:CreateProject",​
"tls:CreateTopic",​
"tls:PutLogs",​
"tls:WebTracks",​
"tls:DeleteTopic",​
"tls:ModifyTopic",​
"tls:DescribeDownloadTasks",​
"tls:DescribeShards",​
"tls:DescribeTopic",​
"tls:DescribeTopics",​
"tls:DeleteProject",​
"tls:ModifyProject",​
"tls:DescribeProject",​
"tls:DescribeConsumerGroups",​
"tls:DescribeProjects",​
"tls:DescribeRules"​
],​
"Resource": [​
"*"​
]​
}​
]​
}​
​
Data collection​
Access key configuration for collection​
LogCollector requires access keys with at least the following permissions for collection configuration.​
​
{​
"Statement": [​
{​
"Effect": "Allow",​
"Action": [​
"tls:PutLogs",​
"tls:GetLogCollectorConfig",​
"tls:LogCollectorHeartbeat",​
"tls:RemoteWrite"​
],​
"Resource": [​
"*"​
]​
}​
]​
}​
​
Collect Trace data​
After receiving the following permission policies, IAM users can manage Trace instances, write collected Trace data to the corresponding log topic, and query and analyze Trace data via API.​
​
{​
"Statement": [​
{​
"Effect": "Allow",​
"Action": [​
"tls:CreateIndex",​
"tls:CreateTopic",​
"tls:PutLogs",​
"tls:ModifyIndex",​
"tls:ModifyTopic",​
"tls:DescribeTopic",​
"tls:CreateTraceInstance",​
"tls:ModifyTraceInstance",​
"tls:DeleteTraceInstance",​
"tls:DescribeTraceInstance",​
"tls:DescribeTraceInstances",​
"tls:SearchLogs"​
],​
"Resource": [​
"*"​
]​
}​
]​
}​
​
Manage collection configurations and host groups​
After receiving the following permission policies, IAM users can manage collection configurations and host groups, including the followings: querying the project list and topic list; creating, deleting, modifying, and querying collection configurations or host groups; and binding or unbinding collection configurations to host groups.​
​
{​
"Statement": [​
{​
"Effect": "Allow",​
"Action": [​
"tls:DescribeProjects",​
"tls:DescribeProject",​
"tls:DescribeTopics",​
"tls:DescribeTopic"​
],​
"Resource": [​
"*"​
]​
},​
{​
"Effect": "Allow",​
"Action": [​
"tls:CreateRule",​
"tls:DeleteRule",​
"tls:ModifyRule",​
"tls:DescribeRule",​
"tls:DescribeRules",​
"tls:ApplyRuleToHostGroups",​
"tls:DeleteRuleFromHostGroups",​
"tls:CreateHostGroup",​
"tls:DeleteHostGroup",​
"tls:ModifyHostGroup",​
"tls:DescribeHostGroup",​
"tls:DescribeHostGroups",​
"tls:DescribeHosts",​
"tls:DeleteHost",​
"tls:DescribeHostGroupRules",​
"tls:ModifyHostGroupsAutoUpdate",​
"tls:DeleteAbnormalHosts"​
],​
"Resource": [​
"*"​
]​
}​
]​
}​
​
Query and analysis​
Query and analyze logs​
After receiving the following permission policies, IAM users can query log data via OpenAPI or the console. In this example, the specified IAM user can only query and analyze the c425****83d7 project in the Beijing region and the 6b30****4888 log topic.​
​
{​
"Statement": [​
{​
"Effect": "Allow",​
"Action": [​
"tls:DescribeProjects",​
"tls:DescribeProject",​
"tls:DescribeTopics",​
"tls:DescribeTopic"​
],​
"Resource": [​
"*"​
]​
},​
{​
"Effect": "Allow",​
"Action": [​
"tls:SearchLogs",​
"tls:DescribeIndex",​
"tls:DescribeSavedSearches",​
"tls:DescribeHistogram",​
"tls:DescribeHistogramV1"​
],​
"Resource": [​
"trn:tls:cn-beijing:21****96:project/c425****83d7/topic/6b30****4888"​
]​
},​
{​
"Effect": "Allow",​
"Action": [​
"tls:CreateSavedSearch",​
"tls:DescribeSavedSearches",​
"tls:DeleteSavedSearch"​
],​
"Resource": [​
"*"​
]​
}​
]​
}​
​
All permissions for query module​
After being granted the following permission policies, IAM users can manage index, query logs, download logs, and other query-related permissions.​
​
{​
"Statement": [​
{​
"Effect": "Allow",​
"Action": [​
"tls:DescribeProjects",​
"tls:DescribeProject",​
"tls:DescribeTopics",​
"tls:DescribeTopic"​
],​
"Resource": [​
"*"​
]​
},​
{​
"Effect": "Allow",​
"Action": [​
"tls:DescribeIndex",​
"tls:CreateIndex",​
"tls:DeleteIndex",​
"tls:ModifyIndex",​
"tls:SearchLogs",​
"tls:DescribeHistogram",​
"tls:DescribeHistogramV1",​
"tls:DescribeLogContext"​
],​
"Resource": [​
"*"​
]​
},​
{​
"Effect": "Allow",​
"Action": [​
"tls:CreateDownloadTask",​
"tls:DescribeDownloadTasks",​
"tls:DescribeDownloadUrl",​
"tls:CancelDownloadTask"​
],​
"Resource": [​
"*"​
]​
},​
{​
"Effect": "Allow",​
"Action": [​
"tls:CreateSavedSearch",​
"tls:DescribeSavedSearches",​
"tls:DeleteSavedSearch"​
],​
"Resource": [​
"*"​
]​
}​
]​
}​
​
TLS Agent​
After being granted the following permission policies, IAM users can use TLS Agent feature.​
​
{​
"Statement": [​
{​
"Effect": "Allow",​
"Action": [​
"tls:CreateAppInstance",​
"tls:DescribeAppInstances",​
"tls:CreateAppSceneMeta",​
"tls:DescribeAppSceneMetas",​
"tls:ModifyAppSceneMeta",​
"tls:DeleteAppSceneMeta",​
"tls:DescribeSessionAnswer"​
],​
"Resource": [​
"*"​
]​
}​
]​
}​
​
Dashboard​
Manage dashboard​
After being granted the following permission policies, IAM users can manage all dashboards under the current account, including creating, deleting, modifying, and querying dashboards.​
​
{​
"Statement": [​
{​
"Effect": "Allow",​
"Action": [​
"tls:CreateDashboard",​
"tls:DeleteDashboard",​
"tls:ModifyDashboard",​
"tls:DescribeDashboard",​
"tls:DescribeDashboards"​
],​
"Resource": [​
"*"​
]​
}​
]​
}​
​
Alert​
Manage alarm policies and notification groups​
After being granted the following permission policies, IAM users can manage all alarm policies and notification groups under the current account, including querying projects and log topics, as well as creating, deleting, modifying, and querying alarm policies and notification groups.​
​
{​
"Statement": [​
{​
"Effect": "Allow",​
"Action": [​
"tls:DescribeProjects",​
"tls:DescribeProject",​
"tls:DescribeTopics",​
"tls:DescribeTopic",​
"tls:SearchLogs"​
],​
"Resource": [​
"*"​
]​
},​
{​
"Effect": "Allow",​
"Action": [​
"tls:CreateAlarmNotifyGroup",​
"tls:DeleteAlarmNotifyGroup",​
"tls:DescribeAlarmNotifyGroups",​
"tls:ModifyAlarmNotifyGroup",​
"tls:DescribeAlarmNotifyGroup",​
"tls:CreateAlarm",​
"tls:DeleteAlarm",​
"tls:DescribeAlarms",​
"tls:DescribeAlarm",​
"tls:ModifyAlarm",​
"tls:DescribeAlarmLogs",​
"tls:ManualTriggerAlarm",​
"tls:DescribeManualTriggerAlarmTask",​
"tls:ModifyAlarmIncident",​
"tls:DescribeAlarmIncident",​
"tls:DisableAlarm",​
"tls:EnableAlarm",​
"tls:CreateAlarmContentTemplate",​
"tls:DeleteAlarmContentTemplate",​
"tls:DescribeAlarmContentTemplates",​
"tls:ModifyAlarmContentTemplate",​
"tls:CreateAlarmWebhookIntegration",​
"tls:DeleteAlarmWebhookIntegration",​
"tls:DescribeAlarmWebhookIntegrations",​
"tls:ModifyAlarmWebhookIntegration"​
],​
"Resource": [​
"*"​
]​
}​
]​
}​
​
Data processing​
Manage data transformation tasks​
After being granted the following permission policies, IAM users can manage all data transformation tasks under the current account, including querying projects and log topics, and creating, deleting, modifying, and querying data transformation tasks.​
​
{​
"Statement": [​
{​
"Effect": "Allow",​
"Action": [​
"tls:DescribeProjects",​
"tls:DescribeProject",​
"tls:DescribeTopics",​
"tls:DescribeTopic",​
"tls:SearchLogs"​
],​
"Resource": [​
"*"​
]​
},​
{​
"Effect": "Allow",​
"Action": [​
"tls:CreateETLTask",​
"tls:DeleteETLTask",​
"tls:DescribeETLFunctions",​
"tls:DescribeETLLogDataInfo",​
"tls:DescribeETLPreviewDataInfo",​
"tls:DescribeETLTask",​
"tls:DescribeETLTasks",​
"tls:ModifyETLTask",​
"tls:ModifyETLTaskStatus"​
],​
"Resource": [​
"*"​
]​
}​
]​
}​
​
Data consumption and shipping​
Has TOS shipping management permission for all log topics​
After being granted the following permission policies, IAM users can operate TOS shipping features, including querying projects and log topics, and creating, modifying, querying, deleting, and retrying shipping tasks.​
​
{​
"Statement": [​
{​
"Effect": "Allow",​
"Action": [​
"tls:DescribeProjects",​
"tls:DescribeTopics",​
"iam:Createrole",​
"tos:ListBuckets"​
],​
"Resource": [​
"*"​
]​
},​
{​
"Effect": "Allow",​
"Action": [​
"tls:CreateShipper",​
"tls:DeleteShipper",​
"tls:DescribeShipper",​
"tls:DescribeShipperTasks",​
"tls:DescribeShippers",​
"tls:ModifyShipper",​
"tls:RetryShipperTask"​
],​
"Resource": [​
"*"​
]​
}​
]​
}​
​
Data import​
After being granted the following permission policies, IAM users can manage all data import tasks under the current account, including querying projects and log topics, as well as creating, deleting, modifying, and querying data import tasks.​
​
{​
"Statement": [​
{​
"Effect": "Allow",​
"Action": [​
"tls:DescribeProjects",​
"tls:DescribeProject",​
"tls:DescribeTopics",​
"tls:DescribeTopic",​
"tos:ListBuckets",​
"tos:ListBucket"​
],​
"Resource": [​
"*"​
]​
},​
{​
"Effect": "Allow",​
"Action": [​
"tls:CreateImportTask",​
"tls:DeleteImportTask",​
"tls:DescribeImportTask",​
"tls:DescribeImportTasks",​
"tls:ModifyImportTask",​
"tls:PreviewImportTask"​
],​
"Resource": [​
"*"​
]​
}​
]​
}​
​
Log application​
Access log application tasks​
After being granted the following permission policies, IAM users can manage all log application tasks under the current account, including creating, deleting, modifying, and querying log application tasks. Data pivot tasks can also be created and managed for CloudLens for TOS.​
​
{​
"Statement": [​
{​
"Effect": "Allow",​
"Action": [​
"tls:DescribeProjects",​
"tls:DescribeProject",​
"tls:DescribeTopics",​
"tls:DescribeTopic",​
"tls:SearchLogs"​
],​
"Resource": [​
"*"​
]​
},​
{​
"Effect": "Allow",​
"Action": [​
"tls:CreateApp",​
"tls:ModifyApp",​
"tls:DescribeApp",​
"tls:DescribeApps",​
"tls:DeleteApp",​
"tls:ModifyCloudLensInstanceStatus",​
"tls:DescribeCloudLensInstances",​
"tls:DescribeCloudLensInstanceStatus",​
"tls:DescribeCloudLensTargetTopics",​
"tls:DescribeCloudLensOverview",​
"tls:CreateTosLensTask",​
"tls:ModifyTosLensTask",​
"tls:DescribeTosLensTasks",​
"tls:DescribeTosLensTask",​
"tls:DeleteTosLensTask"​
],​
"Resource": [​
"*"​
]​
}​
]​
}​
​
Last updated: 2026.09.11 10:55:21