Querying Authorization
Function
This API is used to query all label and property permissions of the current user.
URI
- URI format
GET /ges/v1.0/{project_id}/graphs/{graph_name}/rbac - Parameter description
Table 1 URI parameter description Parameter
Mandatory
Type
Description
project_id
Yes
String
Project ID, which is used for resource isolation. For details, see Obtaining a Project ID.
graph_name
Yes
String
Graph name
Request
- Request example
GET http://{SERVER_URL}/ges/v1.0/{project_id}/graphs/{graph_name}/rbac
SERVER_URL: Address for accessing a graph. For details about its value, see Constraints of Using Service Plane APIs.
Response
{
"data": {
"acl": [
{
"detail": [],
"type": "traverse"
},
{
"detail": [
{
"label": "movie",
"properties": [
"movieid",
"title"
]
},
{
"label": "user",
"properties": [
"gender",
"age",
"userid"
]
}
],
"type": "read"
},
{
"detail": [],
"type": "write"
}
]
}
}
Response Code
- Normal
- Abnormal
Table 2 Return code for failed requests Response Code
Description
400 Bad Request
Request error.
401 Unauthorized
Authentication failed.
403 Forbidden
No operation permission.
404 Not Found
The requested resource was not found.
500 Internal Server Error
Internal service error.
503 Service Unavailable
Service unavailable.
Last Article: Canceling Authorization
Next Article: Permissions Policies and Supported Actions
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.