Updated on 2024-01-04 GMT+08:00

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. For details about how to obtain the project ID, 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 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.