Preset policy | Permissions granted |
QcloudTATReadOnlyAccess | TAT read-only permission |
QcloudTATFullAccess | TAT read/write permission |
Resource Type | Resource Description Method in Authorization Policy |
Remote command-related | qcs::tat:$region:$account:command/$commandId |
API name | Description | Resource |
CreateCommand | Create a command | * |
API nameAPI description | Resource type | Resource (in six-segment format) |
DeleteCommandDelete a command | Command | qcs::tat:$region:$account:command/$commandId |
DescribeAutomationAgentsQuery the agent running status | CVM instances, Lighthouse instances | qcs::cvm:$region:$account:instance/$instanceIdqcs::lighthouse:$region:$account:instance/$instanceId |
DescribeCommandsQuery a command | Command | qcs::tat:$region:$account:command/$commandId |
DescribeInvocationsQuery the execution result | Command | qcs::tat:$region:$account:command/$commandId |
DescribeInvocationTasksQuery the execution tasks | Command, CVM instances, Lighthouse instances | qcs::tat:$region:$account:command/$commandIdqcs::cvm:$region:$account:instance/$instanceIdqcs::lighthouse:$region:$account:instance/$instanceId |
InvokeCommandInvoke a command | Command, CVM instances, Lighthouse instances | qcs::tat:$region:$account:command/$commandIdqcs::cvm:$region:$account:instance/$instanceIdqcs::lighthouse:$region:$account:instance/$instanceId |
ModifyCommandModify a command | Command | qcs::tat:$region:$account:command/$commandId |
PreviewReplacedCommandContentQuery the command after rendering | Command | qcs::tat:$region:$account:command/$commandId |
RunCommandRun a command | Command, CVM instances, Lighthouse instances | qcs::tat:$region:$account:command/$commandIdqcs::cvm:$region:$account:instance/$instanceIdqcs::lighthouse:$region:$account:instance/$instanceId |
$account
with the Tencent Cloud root account of the user.cmd-xxxxxxxx
{"version": "2.0","statement": [{"effect": "allow","resource": ["qcs::tat:ap-guangzhou:$account:command/cmd-xxxxxxxx"],"action": ["tat:ModifyCommand","tat:DeleteCommand"]}]}
cmd-xxxxxxxx
{"version": "2.0","statement": [{"effect": "allow","resource": ["qcs::tat:ap-guangzhou:$account:command/cmd-xxxxxxxx"],"action": ["tat:DescribeCommands"]}]}
cmd-xxxxxxxx
{"version": "2.0","statement": [{"effect": "allow","resource": ["qcs::tat:ap-guangzhou:$account:command/cmd-xxxxxxxx"],"action": ["tat:DescribeInvocations","tat:DescribeInvocationTasks"]}]}
cmd-xxxxxxxx
{"version": "2.0","statement": [{"effect": "deny","resource": ["qcs::tat:ap-guangzhou:$account:command/cmd-xxxxxxxx"],"action": ["tat:InvokeCommands"]}]}
{"version": "2.0","statement": [{"effect": "deny","resource": ["qcs::tat:ap-guangzhou:$account:command/*"],"action": ["tat:InvokeCommand","tat:RunCommand"]}]}
ins-xxxxxxxx
{"version": "2.0","statement": [{"effect": "deny","resource": ["qcs::cvm:ap-guangzhou:$account:instance/ins-xxxxxxxx"],"action": ["tat:InvokeCommand","tat:RunCommand"]}]}
{"version": "2.0","statement": [{"effect": "deny","resource": ["qcs::cvm:ap-guangzhou:$account:instance/*"],"action": ["tat:InvokeCommand","tat:RunCommand"]}]}
lhins-xxxxxxxx
{"version": "2.0","statement": [{"effect": "deny","resource": ["qcs::lighthouse:ap-guangzhou:$account:instance/lhins-xxxxxxxx"],"action": ["tat:InvokeCommand","tat:RunCommand"]}]}
{"version": "2.0","statement": [{"effect": "deny","resource": ["qcs::lighthouse:ap-guangzhou:$account:instance/*"],"action": ["tat:InvokeCommand","tat:RunCommand"]}]}
cmd-xxxxxxxx
or cmd-yyyyyyyy
on the CVM ins-xxxxxxxx
{"version": "2.0","statement": [{"effect": "allow","resource": ["qcs::cvm:ap-guangzhou:$account:instance/ins-xxxxxxxx","qcs::tat:ap-guangzhou:$account:command/cmd-xxxxxxxx","qcs::tat:ap-guangzhou:$account:command/cmd-yyyyyyyy"],"action": ["tat:InvokeCommand"]}]}
cmd-xxxxxxxx
or cmd-yyyyyyyy
on the Lighthouse instance lhins-xxxxxxxx
{"version": "2.0","statement": [{"effect": "allow","resource": ["qcs::lighthouse:ap-guangzhou:$account:instance/lhins-xxxxxxxx","qcs::tat:ap-guangzhou:$account:command/cmd-xxxxxxxx","qcs::tat:ap-guangzhou:$account:command/cmd-yyyyyyyy"],"action": ["tat:InvokeCommand"]}]}
ins-xxxxxxxx
{"version": "2.0","statement": [{"effect": "deny","resource": ["qcs::cvm:ap-guangzhou:$account:instance/ins-xxxxxxxx"],"action": ["tat:DescribeInvocationTasks"]}]}
lhins-xxxxxxxx
{"version": "2.0","statement": [{"effect": "deny","resource": ["qcs::lighthouse:ap-guangzhou:$account:instance/lhins-xxxxxxxx"],"action": ["tat:DescribeInvocationTasks"]}]}
ins-xxxxxxxx
{"version": "2.0","statement": [{"effect": "deny","resource": ["qcs::cvm:ap-guangzhou:$account:instance/ins-xxxxxxxx"],"action": ["tat:DescribeAutomationAgentStatus"]}]}
lhins-xxxxxxxx
{"version": "2.0","statement": [{"effect": "deny","resource": ["qcs::lighthouse:ap-guangzhou:$account:instance/lhins-xxxxxxxx"],"action": ["tat:DescribeAutomationAgentStatus"]}]}
Was this page helpful?