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.
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.
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.
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:
{
"version": "2.0",
"statement": [
{
"action": "tcaplusdb:*",
"resource": "qcs::tcaplusdb:ap-shanghai:uin/1231xxx166:cluster/19168929215",
"effect": "allow"
}
]
}
To grant a user the permission to manipulate all TcaplusDB resources, associate the following policy with the user. The steps are as follows:
{
"version": "2.0",
"statement": [
{
"action": "tcaplusdb:*",
"resource": "qcs::tcaplusdb:::*",
"effect": "allow"
}
]
}
To deny a user the permission to manipulate certain TcaplusDB tables, associate the following policy with the user. The steps are as follows:
{
"version": "2.0",
"statement": [
{
"action": "tcaplusdb:*",
"resource": [
"qcs::tcaplusdb::uin/16xxx472:table/tcaplus-c8d1caa4",
"qcs::tcaplusdb::uin/16xxx472:table/tcaplus-d8d1cbb4",
],
"effect": "deny"
}
]
}
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.
Was this page helpful?