A root account authorizes sub-accounts by binding policies. The policy settings can be specific to the level of API, Resource, User/User Group, Allow/Deny, and Condition.
SecretId
and SecretKey
).Document Description | Link |
---|---|
Relationship between policy and user | Policy |
Basic policy structure | Policy Syntax |
CAM-Enabled products | CAM-Enabled Products |
TDMQ supports resource-level authorization. You can grant a specified sub-account the API permission of a specified resource.
APIs supporting resource-level authorization include:
API | Description | Resource Type | Six-Segment Example of Resource |
---|---|---|---|
ResetRocketMQConsumerOffSet | Resets RocketMQ consumption offset | consumer | qcs::tdmq:${region}:uin/${uin}:consumer/${clusterId}/${namespaceId}/${topic}/${groupId} |
DescribeRocketMQClusters | Gets the list of RocketMQ clusters | cluster | qcs::tdmq:${region}:uin/${uin}:cluster/${clusterId} |
DeleteRocketMQCluster | Deletes RocketMQ cluster | cluster | qcs::tdmq:${region}:uin/${uin}:cluster/${clusterId} |
DescribeRocketMQCluster | Gets the information of specific RocketMQ cluster | cluster | qcs::tdmq:${region}:uin/${uin}:cluster/${clusterId} |
CreateRocketMQNamespace | Creates RocketMQ namespace | cluster | qcs::tdmq:${region}:uin/${uin}:cluster/${clusterId} |
ModifyRocketMQNamespace | Updates RocketMQ namespace | namespace | qcs::tdmq:${region}:uin/${uin}:namespace/${clusterId}/${namespace} |
DeleteRocketMQNamespace | Deletes RocketMQ namespace | namespace | qcs::tdmq:${region}:uin/${uin}:namespace/${clusterId}/${namespace} |
CreateRocketMQGroup | Creates RocketMQ consumer group | namespace | qcs::tdmq:${region}:uin/${uin}:namespace/${clusterId}/${namespace} |
ModifyRocketMQGroup | Updates RocketMQ consumer group | group | qcs::tdmq:${region}:uin/${uin}:group/${clusterId}/${namespaceId}/${groupId} |
DescribeRocketMQGroups | Gets the list of RocketMQ consumer groups | group | qcs::tdmq:${region}:uin/${uin}:group/${clusterId}/${namespaceId}/${groupId} |
DeleteRocketMQGroup | Deletes RocketMQ consumer group | group | qcs::tdmq:${region}:uin/${uin}:group/${clusterId}/${namespaceId}/${groupId} |
CreateRocketMQTopic | Creates RocketMQ topic | namespace | qcs::tdmq:${region}:uin/${uin}:namespace/${clusterId}/${namespace} |
ModifyRocketMQTopic | Updates RocketMQ topic | topic | qcs::tdmq:${region}:uin/${uin}:topic/${clusterId}/${namespaceId}/${topicName} |
DeleteRocketMQTopic | Deletes RocketMQ topic | topic | qcs::tdmq:${region}:uin/${uin}:topic/${clusterId}/${namespaceId}/${topicName} |
DescribeRocketMQTopics | Gets the list of RocketMQ topics | topic | qcs::tdmq:${region}:uin/${uin}:topic/${clusterId}/${namespaceId}/${topicName} |
DescribeRocketMQTopicsByGroup | Gets the list of topics subscribed to specified consumer group | topic | qcs::tdmq:${region}:uin/${uin}:topic/${clusterId}/${namespaceId}/${topicName} |
DescribeRocketMQConsumerConnections | Gets the current client connection status under specified consumer group | group | qcs::tdmq:${region}:uin/${uin}:group/${clusterId}/${namespaceId}/${groupId} |
DescribeRocketMQConsumerConnectionDetail | Gets the details of online consumers | group | qcs::tdmq:${region}:uin/${uin}:group/${clusterId}/${namespaceId}/${groupId} |
ModifyRocketMQCluster | Modifies RocketMQ cluster | cluster | qcs::tdmq:${region}:uin/${uin}:cluster/${clusterId} |
API Name | Description | Six-Segment Resource |
---|---|---|
CreateRocketMQCluster | Creates RocketMQ cluster | * |
Grant a sub-user full access to the TDMQ for RocketMQ service (for creating, managing, etc.).
The following uses granting the read-only permission of a cluster as an example.
Parameter | Description |
---|---|
Effect | Select Allow |
Service | Select TDMQ |
Action | Select Read operation |
Resource | Select Specific resources and click Add six-segment resource description |
Condition | Allow access to specified operations only when the request is from the specified IP range |
Was this page helpful?