tencent cloud

TencentDB for SQL Server

Release Notes and Announcements
Release Notes
Product Announcements
User Guide
Product Introduction
Overview
Product Architecture
Strengths
Use Cases
Regions and AZs
Major Version Lifecycle Explanation
Features and Differences
Instance Types
Instance Specifications
Storage Types
Common Concepts
Network Environment
License Statement
Purchase Guide
Billing Overview
Product Pricing
Purchase Methods
Renewal Instructions
Payment Overdue
Refund
From Pay-as-You-Go to Monthly Subscription
Instance Adjustment Fees Description
Local Backup Space Billing
Cross-Region Backup Billing
Viewing Bill Details
Getting Started
Creating TencentDB for SQL Server Instance
Connecting to TencentDB for SQL Server Instance
Managing TencentDB for SQL Server Instance
Operation Guide
Constraints and Limits
Usage Specifications and Suggestions
Maintaining Instance
Adjusting Instance Configuration
Read-Only Instance
Network and Security
Account Management
Database Management
Data Security
Parameter Configuration
Monitoring and Alarms
Backup and Restoration 
Log Management
Publish-Subscribe
SSIS
Data Migration (New)
Data Migration (Legacy)
Data Synchronization (DTS) 
Practical Tutorial
TencentDB for SQL Server Methods for Regular Maintenance
TencentDB for SQL Server Optimization of Slow SQL
How to Better Use Tempdb
Cross-Account Backup Restoration
Creating VPC for TencentDB for SQL Server
Connecting Kingdee K/3 WISE to TencentDB for SQL Server
Account Permissions and Permission Control
Enabling and Disabling the CDC Feature
Shrinking a Database
API Documentation
History
Introduction
API Category
Making API Requests
Sales and fee related APIs
Instance Management related APIs
Operation and maintenance management related APIs
Network management related APIs
Account management related APIs
Database management related APIs
Security group management related APIs
Data security encryption related APIs
Parameter configuration related APIs
Extended Event related APIs
Log management related APIs
Read only instance management related APIs
Publish and subscribe related APIs
Backup related APIs
Rollback related APIs
Data migration (cold standby migration) related APIs
SQL Server Integration Services (SSIS) related APIs
Data migration (DTS old version) related APIs
Data Types
Error Codes
FAQs
Overview
Model Selection
Pricing and Selection
Connection and Network
Account and Permission
Backup and Rollback
Data Migration
Publish/Subscribe
Read-Only Instance
Version and Architecture Upgrade
Disk Space and Specification Adjustment
Monitoring and Alarms
Log-Related
Parameter Modification
Features
Performance, Space, and Memory-Related FAQs
Service Agreement
Service Level Agreement
Terms of Service
Performance Evaluation
Performance Test Report
Glossary
Contact Us

Authorization Policy Syntax

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-01-18 17:23:30

Policy Syntax

CAM Policy:
{
"version":"2.0",
"statement":
[
{
"effect":"effect",
"action":["action"],
"resource":["resource"],
"condition": {"key":{"value"}}
}
]
}
Version: This field must be filled in; currently only the value 2.0 is acceptable.
Statement: Describes the detailed information of one or multiple permissions. It comprises permissions or collections of permissions for multiple other elements like effect, action, resource, and condition. Each policy contains just one statement element.
Effect: This field must be filled in. It describes whether the outcome of a statement is Allow or Explicitly Deny. The outcome only includes these two scenarios.
Action: This field must be filled in. It is used to describe the operation of Allow or Deny. An operation can be a API, which is prefixed with sqlserver:.
Resource: This field must be filled in. It describes the specific data of authorization. The resource is described in a six-segment format. Detailed resource outlines can vary with different products.
Condition: This field must be filled in. It describes the conditions under which the policy comes into effect. The conditions include an operator, an action key, and an action value. Condition values encompass time and IP addresses. Certain services also permit users to specify different values within these conditions.

SQL Server Operations

In the SQL Server policy statement, you can specify any API operation from any service supporting SQL Server. APIs prefixed with sqlserver: should be used for SQL Server, such as sqlserver:DescribeDBInstances or sqlserver:CreateAccount.
To specify multiple operations within a single statement, please separate them with a comma as demonstrated below:
"action":["sqlserver:action1","sqlserver:action2"]
You may also use an asterisk wildcard to specify multiple operations. For instance, you can designate all the operations with the name beginning with Describe, as shown below:
"action":["sqlserver:Describe*"]
To specify all the operations in SQL Server, please use an asterisk wildcard (*), as indicated below:
"action":["sqlserver:*"]

SQL Server Resources

Each CAM policy statement has its own resources. The typical format of resources is as follows:
qcs:project_id:service_type:region:account:resource
project_id: Describes the project information, which is only used to enable compatibility with legacy CAM logic and can be left empty.
service_type: The product's abbreviation, such as sqlserver.
region: Describes the regional information, such as ap-guangzhou.
account: The root account information of the resource owner, such as uin/65xxx763.
resource: Indicates the detailed resource information of each product, such as instance/instance_id1 or instance/*.
For instance, you may use the specific instance (mssql-m8oh024t) to specify a resource in the statement as demonstrated below:
"resource":[ "qcs::sqlserver:ap-guangzhou:uin/65xxx763:instance/mssql-m8oh024t"]
You could also employ an asterisk wildcard (*) to designate all instances pertaining to a certain account, as shown below:
"resource":[ "qcs::sqlserver:ap-guangzhou:uin/65xxx763:instance/*"]
If you want to specify all the resources or if a specific API operation does not support resource-level permissions, you can utilize an asterisk wildcard (*) within the resource element as shown below:
"resource": ["*"]
To specify multiple resources concurrently within a single command, segregate them with commas. The example of designation of two resources are as follows:
"resource":["resource1","resource2"]
The table below describes the resources that can be utilized by SQL Server and their corresponding description methods. In this context, words prefixed with $ are considered placeholders. Region refers to a geographical area. Account signifies the account ID.
Resources
Resource Description Method in Authorization Policies
Instances
qcs::sqlserver:$region:$account:instance/$instanceId
VPC
qcs::vpc:$region:$account:vpc/$vpcId
DFW
qcs::cvm:$region:$account:sg/$sgId


도움말 및 지원

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

피드백