- Product
- Category
- _User
- _Installation
- Evidence
- Rule
- Device
- _Role
- License
- View
- Crond
- ProductTemplet
- Channel
- LogLevel
- Wechat
- Instruct
- App
- METER
- Gb26875
- System
- Log
- Project
- Group
- Data
- Notification
- TOPO
- _Session
- Menu
- Maintenance
- Timescale
- Permission
- Dict
- Decoder
- OPC
- Devicelog
- aliyun
- FFMPEG
- Article
- Basic
- Dlink
- BACnet
- UniApp
查询角色管理
正式环境
https://prod.iotn2n.com
正式环境
https://prod.iotn2n.com
GET
/iotapi/classes/_Role
_Role
where支持:[lt,lte, gt,gte, ne,in, nin,exists, select,dontSelect, all,regex, $text]
请求参数
Query 参数
order
string
可选
limit
integer
可选
skip
integer
skip
count
string
可选
keys
string
可选
include
string
include
where
string
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://prod.iotn2n.com/iotapi/classes/_Role'
返回响应
🟢200返回角色管理记录数
application/json
Body
results
array[object (_Role) {20}]
可选
ACL
object
可选
示例值:
{"*":{"read":true,"write":false}}
alias
string
可选
createdAt
string
可选
depname
string
可选
desc
string
可选
leafnode
boolean
可选
level
number
可选
menus
object
可选
name
string
可选
objectId
string
可选
order
number
可选
org_type
string
可选
parent
object
可选
roles
object
可选
rules
object
可选
tag
object
可选
updatedAt
string
可选
users
object
可选
views
object
可选
views1
object
可选
示例
{
"results": [
{
"ACL": {
"*": {
"read": true,
"write": false
}
},
"alias": "string",
"createdAt": "string",
"depname": "string",
"desc": "string",
"leafnode": true,
"level": 0,
"menus": {
"__type": "Relation",
"className": "Menu"
},
"name": "string",
"objectId": "string",
"order": 0,
"org_type": "string",
"parent": {
"__type": "Pointer",
"className": "_Role",
"objectId": "string"
},
"roles": {
"__type": "Relation",
"className": "_Role"
},
"rules": {
"__type": "Relation",
"className": "Permission"
},
"tag": {},
"updatedAt": "string",
"users": {
"__type": "Relation",
"className": "_User"
},
"views": {
"__type": "Relation",
"className": "View"
},
"views1": {
"__type": "Relation",
"className": "View"
}
}
]
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🔴500Server Internal error