Basic Concepts in CAM
The root account authorizes sub-accounts by associating them with policies. The policies can be configured to the granularity of API, Resource, User/User Group, Allow/Deny, and Condition.
Account System
Root Account: Possesses all Tencent Cloud resources and has the capability to access any of its resources.
Sub-account: Comprised of sub-users and collaborators.
Sub-user: Created and fully owned by a root account.
Collaborator: Possesses the identity of a root account. If an account is added as a collaborator to a current root account, it is one of the sub-accounts and can switch back to its original root account identity.
Identity Credentials: Includes both login credentials and access certificates. Login Credentials refer to usernames and passwords, and Access Certificates refer to API keys (SecretId and SecretKey).
Resources and Permissions
Resources: An object within the cloud service that is subjected to operations, such as a CVM instance, a COS bucket, and a VPC instance.
Permissions: Permissions refer to allowing or rejecting certain users to perform certain actions. By default, the root account has unrestricted access to all resources under it, and a sub-account possesses no access to any resources under its root account.
Policy: A syntactical guideline that defines and describes one or more permissions. The root account performs authorization by associating policies with users/user groups.
Sub-account Using RocketMQ
To ensure that a sub-account can successfully use RocketMQ, the root account must grant authorization to the sub-account.
Use the root account to log in to the CAM console, locate the appropriate sub-account within the sub-account list, and then click on Authorize in the action column. RocketMQ offers two preset policies for sub-accounts: QcloudTrocketReadOnlyaccess and QcloudTrocketFullAccess. The former only allows viewing related information in the console, and the latter allows read and write operations on the product console.
Apart from the preceding preset policies, the root account also needs to grant the sub-account permissions to call other cloud services as needed to better usage. The use of RocketMQ involves the following corresponding API permissions of cloud services:
|
TCOP (Monitor) | GetMonitorData | Queries monitoring metric data | Views corresponding monitoring metrics displayed in the console |
TCOP (Monitor) | DescribeDashboardMetricData | Queries monitoring metric data | Views corresponding monitoring metrics displayed in the console |
Resource tags | DescribeResourceTagsByResourceIds | Queries resource tags | Views resource tags of the cluster |
To grant the preceding permissions to a sub-account, the root account needs to perform the Create Custom Policy operation on Policies page of the CAM Console. After clicking Create by syntax for creation, select a Blank Template and enter the following policy syntax: {
"version": "2.0",
"statement": [
{
"effect": "allow",
"action": [
"monitor:GetMonitorData",
"monitor:DescribeDashboardMetricData",
"tag:DescribeResourceTagsByResourceIds"
],
"resource": [
"*"
]
}
]
}
After creating the policy, associate the newly created policy with the sub-account under the operation column. See the following figure:
##Related Documents
Was this page helpful?