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-05-09 02:56:08", "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-05-09 02:56:08", "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