Action
更新时间:2019-06-14
下发配置
接口描述
将所有资源的配置下发到gateway上。
如果gateway的状态是DISABLED,就会下发一个空list
如果gateway的状态是ENABLED,就会按照网关的需求把其下所有的device,parser,object等配置项。
相对URI | HTTP 方式 |
---|---|
/v1/action/deploy-config | POST |
输出
201: 成功
返回一个以下数据结构的list
名称 | 类型 | 说明 |
---|---|---|
gatewayUuid | String | 所下发的网关的uuid |
gatewayCode | String | 所下发的网关的code |
result | String | null表示下发成功,否则是异常的说明字符串 |
其他: 失败
请求示例
Plain Text
1POST /v1/action/deploy-config
返回示例
Plain Text
1[
2 {
3 "result": null,
4 "gatewayUuid": "32b189ef-24f3-4a48-8f66-80eab6e7d5a2",
5 "gatewayCode": "name"
6 },
7 {
8 "result": null,
9 "gatewayUuid": "c6f9cbc2-1626-4901-b15d-1efcfff78a05",
10 "gatewayCode": "new"
11 },
12 {
13 "result": null,
14 "gatewayUuid": "99fce486-8ac8-4491-b337-c41ae5737eb5",
15 "gatewayCode": "old01"
16 },
17 {
18 "result": null,
19 "gatewayUuid": "b04e5a6d-8062-4057-8b5d-53e6b67686fd",
20 "gatewayCode": "old03"
21 }
22]