tencent cloud

Tencent Cloud Smart Advisor

Release Notes
Product Introduction
Overview
Features
Product Strengths
Scenarios
Customer Cases
Purchase Guide
Getting Started
Using TSA to Perform a Cloud Risk Assessment
Using TSA to Execute a Chaos Experiment on CFG
Operation Guide
Operation Guide to TSA-Cloud Architecture
Operation Guide to TSA-Cloud Risk Assessment
Operation Guide to TSA-Chaotic Fault Generator
Operation Guide to TSA-Digital Assets
Permission Management
API Documentation
History
Introduction
API Category
Making API Requests
Other APIs
Task APIs
Cloud Architecture Console APIs
Data Types
Error Codes
FAQs
FAQs: TSA
FAQs: TSA-Cloud Risk Assessment
FAQs: TSA-Cloud Architecture
FAQs: TSA-Chaotic Fault Generator
Related Protocol
Tencent Cloud Smart Advisor Service Level Agreement
PRIVACY POLICY MODULE CHAOTIC FAULT GENERATOR
DATA PRIVACY AND SECURITY AGREEMENT MODULE CHAOTIC FAULT GENERATOR
Contact Us

Authorization Policy Syntax

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-03-31 22:07:27

Policy Syntax

Cloud Access Management (CAM) policy:
{
"version":"2.0",
"statement":
[
{
"effect":"effect",
"action":["action"],
"resource":["resource"]
}
]
}
version: Required. Currently, only the value 2.0 is allowed.
statement: This element describes the detailed information of one or more permissions and covers permissions or permission sets of several other elements such as effect, action, resource, and condition. A policy has only one statement element.
effect: Required. This element describes the statement results. Value values: allow and deny.
action: Required. This element describes the allowed or denied actions. Actions can be APIs (prefixed with cfg:).
resource: Required. This element describes the specific data of authorization. The resources are described in a six-segment format and the resource definition details vary by product.

TSA-CFG Operations

In the policy statement of TSA-Chaotic Fault Generator (TSA-CFG), you can specify any API operation from any service that supports TSA-CFG. For TSA-CFG, use APIs prefixed with cfg:. Example: cfg:CreateTask or cfg:CreateTemplate.
To specify multiple operations in a single statement, separate them with commas, as shown below:
"action":["cfg:action1","cfg:action2"]
You can also use wildcards to specify multiple operations. For example, you can specify all operations that begin with Describe, as shown below:
"action":["cfg:Describe*"]
If you want to specify all operations in the cloud database, use the * wildcard, as shown below:
"action":["cfg:*"]

TSA-CFG Resources

Each CAM policy statement is applicable to specific resources. The general format of resources is as follows:
qcs:project_id:service_type:region:account:resource
project_id: project information. This element is only for compatibility with early CAM logic and does not need to be filled in.
service_type: product abbreviation. Example: cfg.
region: region information. Example: ap-guangzhou.
account: root account of the resource owner. Example: uin/653339763.
resource: specific resource details of each product. Example: instanceId/instance_id1 or instanceId/*.
For example, you can specify the specific task ID (1) in the statement, as shown below:
"resource":[ "qcs::cfg:ap-guangzhou:uin/11111:taskid/1"]
You can also use the * wildcard to specify all instances belonging to a specific account, as shown below:
"resource":[ "qcs::cfg:ap-guangzhou:uin/11111:taskid/*"]
If you want to specify all resources or if a particular API action does not support resource-level authorization, use the * wildcard in the resource element, as shown below:
"resource": ["*"]
To specify multiple resources in one instruction, separate them with commas. The following is an example of specifying two resources:
"resource":["resource1","resource2"]
The following table describes the resources available for TSA-CFG and the corresponding resource description methods. Words prefixed with $ are placeholders. For example, $region represents a region and $account represents an account ID.
Resource
Resource Description Method in Authorization Policy
Experiment
qcs::cfg:$region:$account:taskid/$TaskId
Template library
qcs::cfg::$account:templateid/$TemplateId
Custom action
qcs::cfg::$account:actionid/$ActionId

도움말 및 지원

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

피드백