Querying User Permissions
Function
This API is used to query user permissions.
User management is supported only when SASL is enabled for the Kafka instance.
URI
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. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
name |
String |
Topic name. |
topic_type |
Integer |
Topic type. |
policies |
Array of PolicyEntity objects |
Permission list. |
Example Requests
Querying user permissions for a topic.
GET https://{endpoint}/v1/{project_id}/instances/{instance_id}/topics/{topic_name}/accesspolicy
Example Responses
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 Codes
Status Code |
Description |
---|---|
200 |
The query is successful. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.