This API is used to query user permissions.
User management is supported only when SASL is enabled for the Kafka instance.
GET /v1/{project_id}/instances/{instance_id}/topics/{topic_name}/accesspolicy
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID. |
instance_id |
Yes |
String |
Instance ID. |
topic_name |
Yes |
String |
Topic name. |
None
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
name |
String |
Topic name. |
topic_type |
Integer |
Topic type. |
policies |
Array of PolicyEntity objects |
Permission list. |
Querying user permissions for a topic.
GET https://{endpoint}/v1/{project_id}/instances/{instance_id}/topics/{topic_name}/accesspolicy
Status code: 200
The query is successful.
{
"name" : "topic-test",
"policies" : [ {
"owner" : false,
"user_name" : "xxxa",
"access_policy" : "pub"
}, {
"owner" : false,
"user_name" : "root",
"access_policy" : "all"
} ],
"topic_type" : 0
}
Status Code |
Description |
|---|---|
200 |
The query is successful. |
See Error Codes.