List Role Module Permissions
Queries the module permission list of a specified role.
Request URL: /openapi/v1/role/module/list
Request Method: GET
Request Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| roleId | String | Yes | Role ID. You can call List Roles to obtain it. | 2394 |
Request Example
{
"roleId": "2394"
}
Response Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| success | Boolean | Whether the request is successful. | true |
| requestId | String | Request ID. | Rp2h5BDD-GMMMtMFnJIHs0DMdJHg2FVL |
| data | Array | List of role module permissions, including action and access. | {<br/> "action": "SQLTask",<br/> "access": true<br/>} |
Module Permission Fields
| Parameter | Type | Description |
|---|---|---|
| action | String | Module permission action identifier. |
| access | Boolean | Whether the permission has been granted. |
Successful Invocation Example
{
"success": true,
"requestId": "Rp2h5BDD-GMMMtMFnJIHs0DMdJHg2FVL",
"data": [
{
"action": "SQLEditor",
"access": false
},
{
"action": "SQLTask",
"access": true
},
{
"action": "Monitor",
"access": true
}
]
}