Describe Role
This operation describes the details of a specified role.
The base URL for this API is in the following format:
http://localhost:19530
export CLUSTER_ENDPOINT="http://localhost:19530"
The timeout duration for this operation. Setting this to None indicates that this operation times out when any response returns or an error occurs.
The authentication token should be a pair of colon-joined username and password, like username:password
.
The name of the role.
export TOKEN="root:Milvus"
curl --request POST \--url "${CLUSTER_ENDPOINT}/v2/vectordb/roles/describe" \--header "Request-Timeout: 0" \--header "Authorization: Bearer ${TOKEN}" \--header "Content-Type: application/json" \-d '{ "roleName": "root"}'
A success response.
Response code.
Response payload which is a list of privilege items.
A privilege item.
The type of the object to which the privilege belongs.
The privilege that is granted to the role.
The name of the object to which the role is granted the specified privilege.
The name of the database in which this operation has been executed.
The name of the user who granted a specific role to a user.
A failure response.
Response code.
Error message.
{ "code": 0, "data": [ { "dbName": "*", "grantor": "root", "objectName": "*", "objectType": "Collection", "privilege": "IndexDetail" }, { "dbName": "*", "grantor": "root", "objectName": "*", "objectType": "Global", "privilege": "DescribeCollection" }, { "dbName": "*", "grantor": "root", "objectName": "*", "objectType": "Global", "privilege": "ShowCollections" } ]}