Skip to main content

Retrieve Role Information

Paginated query of the list of roles created in the NineData system, supporting the retrieval of role ID, name, and type.

Request URL: /openapi/v1/role/list

Request Method: GET

Request Parameters

ParameterTypeRequiredDescriptionExample
currentIntegerNoCurrent page number, starting from 1, default is 1.1
pageSizeIntegerNoPage size, default is 10.10

Response Parameters

ParameterTypeDescriptionExample
successBooleanWhether the request is successful.true
dataArrayRole list, including the following fields:
  • roleId: Role ID.
  • name: Role name.
  • type: Role type.
    Possible values:
    • system: System administrator
    • custom: Regular role
{
"roleId": "16",
"name": "System Administrator",
"type": "system"
}
currentIntegerCurrent page number.1
pageSizeIntegerPage size.10
totalIntegerTotal number of records.2

Successful Invocation Example

{
"success": true,
"requestId": "Uz2t8YEJ-JPNMyCXnOLQk1DUdQKq3VFS",
"data": [{
"roleId": "16",
"name": "System Administrator",
"type": "system"
}, {
"roleId": "17",
"name": "Regular Member",
"type": "custom"
}, {
"roleId": "40",
"name": "Production Environment Administrator",
"type": "custom"
}, {
"roleId": "41",
"name": "Production Environment Read-Only",
"type": "custom"
}, {
"roleId": "42",
"name": "Development Environment Administrator",
"type": "custom"
}, {
"roleId": "160",
"name": "Development Role",
"type": "custom"
}, {
"roleId": "1259",
"name": "A Business-DBA",
"type": "custom"
}, {
"roleId": "1260",
"name": "Security Auditor",
"type": "custom"
}, {
"roleId": "1261",
"name": "Test Role Permissions",
"type": "custom"
}, {
"roleId": "1371",
"name": "Test Role_new",
"type": "custom"
}],
"current": 1,
"pageSize": 10,
"total": 16
}