Querying Authorization
Function
This API is used to query all label and property permissions of the current user.
URI
- URI formatGET /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. For details about how to obtain the project ID, see Obtaining a Project ID.
graph_name
Yes
String
Graph name
Request
- Request exampleGET http://{SERVER_URL}/ges/v1.0/{project_id}/graphs/{graph_name}/rbacNote
SERVER_URL: Address for accessing a graph. For details about its value, see 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"}]}}
Status Code
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. |
Error Code
See Error Code.
Parent topic: Granular Permission Control APIs
- Function
- URI
- Request
- Response
- Status Code
- Error Code