Role
Overview
Different account roles correspond to different functional permissions. A role is only effective in one system. If it needs to be used in different systems, please assign the roles in the corresponding systems respectively.
Notes:
- Creating roles is currently not supported. Only roles that exist in the system can be used. For details, please contact your Customer Success Manager (CSM).
- If an existing role does not meet the requirements, you can contact your Customer Success Manager (CSM) to modify it.
System List
Description
Query the list of systems.
Notes:
- This interface only returns a list of systems to which the customer has permission. Please contact your Customer Success Manager (CSM) for details.
Request Config
| Config | Definition |
|---|---|
| URL | /system/list |
| Method | GET |
Response
Schema of data
| Name | Type | Description |
|---|---|---|
| systems | []object | System list |
| + id | int64 | System Id |
| + name | string | System name |
| + domain | string | System domain |
Response Body Sample
json
{
"code": 0,
"message": "",
"data": {
"systems": [
{
"id": 467,
"name": "H5",
"domain": "smartview.clobotics.cn"
}
]
}
}Role List
Description
Query role list in the specified system.
Request Config
| Config | Definition |
|---|---|
| URL | /role/list?system_id=123 |
| Method | GET |
Params
| Name | Type | Description | Required |
|---|---|---|---|
| system_id | int64 | System id | Yes |
Response
Schema of data
| Name | Type | Description |
|---|---|---|
| roles | []object | Role list |
| + id | int64 | Role id |
| + name | string | Role name |
| + system_id | int64 | System id |
| + order | int32 | Order |
| + description | string | Description |
Response Body Sample
json
{
"code": 0,
"message": "",
"data": {
"roles": [
{
"id": 1256,
"name": "admin",
"system_id": 343,
"order": 1,
"description": "test"
}
]
}
}