This API is used to query the list of users granted permissions for a consumer group.
GET /v2/{project_id}/rocketmq/instances/{instance_id}/groups/{group}/accesspolicy
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Definition Project ID. For details about how to obtain it, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
instance_id |
Yes |
String |
Definition Instance ID. You can call the API for querying all instances to obtain the instance ID. The instance ID is in the response body. Constraints N/A Range N/A Default Value N/A |
group |
Yes |
String |
Definition Consumer group. Constraints N/A Range N/A Default Value N/A |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
offset |
No |
Integer |
Definition Offset, which is the position where the query starts. The value must be no less than 0. Constraints N/A Range N/A Default Value N/A |
limit |
No |
Integer |
Definition Number of records to query. Constraints N/A Range N/A Default Value N/A |
None
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
policies |
Array of policies objects |
Definition User list. Constraints N/A Range N/A Default Value N/A |
total |
Number |
Definition Total number of users. Constraints N/A Range N/A Default Value N/A |
name |
String |
Definition Name of the topic or consumer group. Constraints N/A Range N/A Default Value N/A |
Parameter |
Type |
Description |
|---|---|---|
access_key |
String |
Definition Username. Constraints N/A Range N/A Default Value N/A |
white_remote_address |
String |
Definition IP address whitelist. Constraints N/A Range N/A Default Value N/A |
admin |
Boolean |
Definition Whether the user is an administrator. Constraints N/A Range
Default Value N/A |
perm |
String |
Definition User permissions. Constraints N/A Range
Default Value N/A |
Querying the list of users granted permissions for a consumer group
GET https://{endpoint}/v2/{project_id}/rocketmq/instances/{instance_id}/groups/{group}/accesspolicy
Status code: 200
List of users granted permissions for a consumer group queried.
{
"policies" : [ {
"access_key" : "test_01",
"white_remote_address" : "",
"admin" : false,
"perm" : ""
} ],
"total" : 1,
"name" : "test"
}
Status Code |
Description |
|---|---|
200 |
List of users granted permissions for a consumer group queried. |
See Error Codes.