tencent cloud

TencentDB for TcaplusDB

Release Notes
Product Introduction
Product Overview
Benefits
Use Cases
Architecture
Regions
Purchase Guide
Product Pricing
Payment Overdue
Getting Started
Basic Concepts
Creating Cluster
Creating Table Group
Creating Table
Get Connection Information
Accessing TcaplusDB
Operation Guide
Managing Cluster and Table Group
Managing Table
Monitoring and Alarming
Access Management
Tag
Task List
TcaplusDB Client
Accessing by Client Tool
Client Tool Commands
TcaplusDB SDK
Release History
SDK Download
C++ SDK API
TcaplusDB Error Codes
SDK Installation
Directions for Protobuf Table SDK for C++
Directions for TDR Table SDK for C++
TcaplusDB RESTful APIs
Description
Go
Java
PHP
Python
Downloading RESTful API Samples in Multiple Languages
Practical Tutorial
Best Practice for Table Structure Design
Best Practice for Database Interaction
FAQs
Database Features
Database Use
Database Principles
API Documentation
History
Introduction
API Category
Making API Requests
Table Group APIs
Other APIs
Table APIs
Cluster APIs
Data Types
Error Codes
Service Agreement
Service Level Agreement
Terms of Service
Glossary
Contact Us

TcaplusDB Access Control Examples

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-12-04 10:12:05

Operation Scenarios

You can grant a user the permission to view and use specific resources in the TcaplusDB Console by using a CAM policy. This document describes how to grant the permission to view and use specified resources, thereby showing you how to use certain policies in the console.

Directions

Full access policy in TcaplusDB

To grant a user the permission to create and manage TcaplusDB instances, associate the QcloudTcaplusDBFullAccess policy with the user. This policy grants the user the permission to manipulate all resources in TcaplusDB. The steps are as follows: Authorize the default policy QcloudTcaplusDBFullAccess with the user as instructed in Authorization Management.

Read-only policy in TcaplusDB

To grant a user the permission to view TcaplusDB instances but not create, delete, or modify them, you can associate the QcloudTcaplusDBReadOnlyAccess policy with the user. This policy grants the user the permissions of all operations in TcaplusDB that begin with the word "Describe" or "Inquiry". The steps are as follows: Authorize the default policy TcaplusDB with the user as instructed in Authorization Management.

Policy for granting user permission to manipulate a specific cluster

To grant a user the permission to manipulate a specific TcaplusDB cluster, you can associate the following policy with the user. The steps are as follows:
1. Create a custom policy as instructed in Policy. This policy grants the user the permission to perform all operations on the TcaplusDB cluster whose ID is 19168929215. The policy content can be set by referring to the following policy syntax:
{
"version": "2.0",
"statement": [
{
"action": "tcaplusdb:*",
"resource": "qcs::tcaplusdb:ap-shanghai:uin/1231xxx166:cluster/19168929215",
"effect": "allow"
}
]
}
2. Find the created policy and click Associate User/Group in the "Operation" column.
3. In the "Associate User/User Group" window that pops up, select the user/group you want to authorize and click Confirm.

Policy for granting user permission to manipulate all TcaplusDB resources

To grant a user the permission to manipulate all TcaplusDB resources, associate the following policy with the user. The steps are as follows:
1. Create a custom policy as instructed in Policy. This policy grants the user the permission to manipulate all TcaplusDB resources. The policy content can be set by referring to the following policy syntax:
{
"version": "2.0",
"statement": [
{
"action": "tcaplusdb:*",
"resource": "qcs::tcaplusdb:::*",
"effect": "allow"
}
]
}
2. Find the created policy and click Associate User/Group in the "Operation" column.
3. In the "Associate User/User Group" window that pops up, select the user/group you want to authorize and click Confirm.

Policy for denying user all permissions of certain TcaplusDB tables

To deny a user the permission to manipulate certain TcaplusDB tables, associate the following policy with the user. The steps are as follows:
1. Create a custom policy as instructed in Policy. This policy denies the user the permission to manipulate tables (ID: tcaplus-c8d1caa4 and tcaplus-d8d1cbb4). The policy content can be set by referring to the following policy syntax:
{
"version": "2.0",
"statement": [
{
"action": "tcaplusdb:*",
"resource": [
"qcs::tcaplusdb::uin/16xxx472:table/tcaplus-c8d1caa4",
"qcs::tcaplusdb::uin/16xxx472:table/tcaplus-d8d1cbb4",
],
"effect": "deny"
}
]
}
2. Find the created policy and click Associate User/Group in the "Operation" column.
3. In the "Associate User/User Group" window that pops up, select the user/group you want to authorize and click Confirm.

Custom policy

If preset policies cannot meet your requirements, you can create custom policies as needed. For detailed directions, please see Policy. For more TcaplusDB policy syntax, please see Authorization Policy Syntax.

도움말 및 지원

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

피드백