更新时间:2025-03-05 GMT+08:00
查询授权
功能介绍
查询当前用户拥有的所有Label/属性权限。
URI
- URI 格式
GET /ges/v1.0/{project_id}/graphs/{graph_name}/rbac - 参数说明
表1 URI参数说明 参数
是否必选
类型
说明
project_id
是
String
项目ID。获取方法请参见获取项目ID。
graph_name
是
String
图名称。
请求
- 请求样例
GET http://{SERVER_URL}/ges/v1.0/{project_id}/graphs/{graph_name}/rbac
响应
{
"data": {
"acl": [
{
"detail": [],
"type": "traverse"
},
{
"detail": [
{
"label": "movie",
"properties": [
"movieid",
"title"
]
},
{
"label": "user",
"properties": [
"gender",
"age",
"userid"
]
}
],
"type": "read"
},
{
"detail": [],
"type": "write"
}
]
}
}
状态码
|
返回值 |
说明 |
|---|---|
|
400 Bad Request |
请求错误。 |
|
401 Unauthorized |
鉴权失败。 |
|
403 Forbidden |
没有操作权限。 |
|
404 Not Found |
找不到资源。 |
|
500 Internal Server Error |
服务内部错误。 |
|
503 Service Unavailable |
服务不可用。 |
错误码
请参见错误码。
父主题: 细粒度权限控制API
