获取场景信息列表
POST
/api/v1/things/rule/scene/info/index
things/rule/scene/infothingsRuleSceneInfo
请求参数
Header 参数
Ithings-Project-Id
string
可选
默认值:
{{Ithings-Project-Id}}
Ithings-Token
string
可选
默认值:
{{iThings-token}}
app-code
string
可选
默认值:
{{appCode}}
device-id
string
可选
Body 参数application/json
page
object (PageInfo)
可选
page
integer <int64>
页码
size
integer <int64>
每页大小
orders
array[object (OrderBy) {2}]
排序
name
string
场景名模糊查询
tag
string
可选
areaID
string
可选
sceneIDs
array[integer <int64>]
根据场景ID来过滤
type
string
可选
status
integer <int64>
可选
alarmID
integer <int64>
告警id
deviceMode
string
设备模式
productID
string
产品id
deviceName
string
设备名
deviceFilterMode
integer <int64>
可选
hasActionType
string
过滤有某个执行类型
isCommon
integer <int64>
是否是常用的
isOnlyCore
integer <int64>
可选
示例
{
"page": {
"page": 0,
"size": 0,
"orders": [
{
"field": "string",
"sort": 0
}
]
},
"name": "string",
"tag": "string",
"areaID": "string",
"sceneIDs": [
0
],
"type": "string",
"status": 0,
"alarmID": 0,
"deviceMode": "string",
"productID": "string",
"deviceName": "string",
"deviceFilterMode": 0,
"hasActionType": "string",
"isCommon": 0,
"isOnlyCore": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/things/rule/scene/info/index' \
--header 'Ithings-Project-Id: {{Ithings-Project-Id}}' \
--header 'Ithings-Token: {{iThings-token}}' \
--header 'app-code: {{appCode}}' \
--header 'device-id;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
返回code
默认值:
200
msg
string
返回的消息
data
object (SceneInfoIndexResp)
可选
list
array[object (SceneInfo) {24}]
场景信息
page
integer <int64>
页码
pageSize
integer <int64>
每页大小
total
integer <int64>
可选
num
integer <int64>
返回的数量
示例
{
"code": "200",
"msg": "string",
"data": {
"list": [
{
"id": 0,
"name": "string",
"areaID": "string",
"status": 0,
"reason": "string",
"tag": "string",
"isCommon": 0,
"type": "string",
"flowPath": [
{
"type": "string",
"subType": "string",
"info": "string"
}
],
"desc": "string",
"createdTime": 0,
"if": "string",
"when": "string",
"then": "string",
"headImg": "string",
"isUpdateHeadImg": true,
"logo": "string",
"lastRunTime": 0,
"productID": "string",
"deviceName": "string",
"deviceAlias": "string",
"deviceMode": "string",
"body": "string",
"updatedTime": 0
}
],
"page": 0,
"pageSize": 0,
"total": 0,
"num": 0
}
}
修改于 2025-03-25 08:05:06