List visible roles
GET/role
Lists the visible roles.
Request
Query Parameters
Possible values: >= 1
Default value: 10
The number of items displayed per page.
Possible values: >= 1
Default value: 1
The sequence number of the current page.
The name of the role.
The name of the role.
Header Parameters
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
The response code.
data
object
The paginated list of roles.
The sequence number of current page.
The number of items returned per page.
records
object[]
The records in the current page.
The creation timestamp of the role.
The description of the role.
The ID of the role.
Whether the role is a system role.
The name of the role.
privilegeList
object[]
The privileges of the role.
The description of the privilege.
The ID of the privilege.
The name of the privilege.
The sort order.
The number of pages in total.
The response message.
{
"code": 0,
"data": {
"pageNumber": 0,
"pageSize": 0,
"records": [
{
"createTimestamp": 1685510869834,
"description": "granted full privileges to use, manage, and control data warehouse units",
"id": "role-100001",
"isSystem": true,
"name": "SYSTEMADMIN",
"privilegeList": [
{
"description": "create account",
"id": "100001",
"name": "CREATE_ACCOUNT",
"sortValue": 1
}
]
}
],
"total": 0
},
"msg": "string"
}