GET v2/CtrlMachine/GetSceneInfoList?num={num}&Timeout={Timeout}
获取中控机的所有情景模式
请求信息
URI参数
| 字段名称 | 描述 | 类型 | 约束 |
|---|---|---|---|
| num |
中控机机身号 |
string |
必须 |
| timeout |
超时的秒数 如果在Timeout秒之后才收到数据则不处理 |
integer |
范围 [1, 30] |
Body参数
无
响应信息
返回类型
ApiResultOfSceneInfo[]| 字段名称 | 描述 | 类型 | 约束 |
|---|---|---|---|
| code |
错误码 |
ErrorCode |
必填 |
| msg |
相关提示信息 |
string |
必填 |
| data |
业务数据 |
SceneInfo[] |
必填 |
响应格式
application/json, text/json
例子:
{
"code": 0,
"msg": "sample string 1",
"data": [
{
"id": "sample string 1",
"name": "sample string 2",
"enable": true,
"isCurrent": true,
"lastExecTime": "2025-11-02 07:18:36",
"schedules": [
{
"id": "sample string 1",
"name": "sample string 2",
"enable": true,
"week": [
1,
2
],
"time": "sample string 4"
},
{
"id": "sample string 1",
"name": "sample string 2",
"enable": true,
"week": [
1,
2
],
"time": "sample string 4"
}
],
"events": [
{
"id": "sample string 1",
"name": "sample string 2",
"isImplicit": true
},
{
"id": "sample string 1",
"name": "sample string 2",
"isImplicit": true
}
],
"condition": {},
"actions": [
{
"type": 1,
"targetId": "sample string 1",
"action": {
"op": "sample string 1",
"path": "sample string 2",
"value": {}
}
},
{
"type": 1,
"targetId": "sample string 1",
"action": {
"op": "sample string 1",
"path": "sample string 2",
"value": {}
}
}
]
},
{
"id": "sample string 1",
"name": "sample string 2",
"enable": true,
"isCurrent": true,
"lastExecTime": "2025-11-02 07:18:36",
"schedules": [
{
"id": "sample string 1",
"name": "sample string 2",
"enable": true,
"week": [
1,
2
],
"time": "sample string 4"
},
{
"id": "sample string 1",
"name": "sample string 2",
"enable": true,
"week": [
1,
2
],
"time": "sample string 4"
}
],
"events": [
{
"id": "sample string 1",
"name": "sample string 2",
"isImplicit": true
},
{
"id": "sample string 1",
"name": "sample string 2",
"isImplicit": true
}
],
"condition": {},
"actions": [
{
"type": 1,
"targetId": "sample string 1",
"action": {
"op": "sample string 1",
"path": "sample string 2",
"value": {}
}
},
{
"type": 1,
"targetId": "sample string 1",
"action": {
"op": "sample string 1",
"path": "sample string 2",
"value": {}
}
}
]
}
]
}
接口调试
Authorization
AppId
Token
URI
GET
请求header
响应body