5. The Reference for RPCM REST API
tcpPortAvailabilityIPAddress
— IP address or FQDN;
tcpPortAvailabilityPort
— TCP port;
tcpPortAvailabilityConnectTimeout
— the time interval during which the service has to
respond, s (from 1 to 5 digits);
tcpPortAvailabilityAlarmSeconds
— stabilization delay in seconds for alarm, s (from 1 to 5
digits);
tcpPortAvailabilityRestartSeconds
— stabilization delay in seconds for restart, s (from 1 to
5 digits);
outputs
— (an array)
REPLY:
{ "id":1947 }
Example:
curl -X POST http://192.168.1.42:8888/api/automation -d
'{"tcpPortAvailabilityEnabled":true,"consumptionEnabled":true,"deviceType":"8201","checkIn
tervalSeconds":6,"consumptionAlarmBottomLimitMilliamps":4500,"consumptionAlarmSeconds":60,
"consumptionRestartBottomLimitMilliamps":4300,"consumptionRestartSeconds":300,"hashRateApi
Port":4028,"hashRateApiUnavailabilityTimeoutSeconds":3,"hashRateAlarmBottomLimit":16700,"h
ashRateAlarmSeconds":60,"hashRateRestartBottomLimit":16500,"hashRateRestartSeconds":300,"i
nterRestartIntervalSeconds":600,"name":"test","outputs":
[8],"hashRateEnabled":true,"hashRateApiIPAddress":"127.0.0.1","tcpPortAvailabilityIPAddres
s":"127.0.0.1","tcpPortAvailabilityPort":"80","tcpPortAvailabilityConnectTimeout":"3","tcp
PortAvailabilityAlarmSeconds":"60","tcpPortAvailabilityRestartSeconds":"300","pingEnabled"
:false}
'
5.2.9.5. Automation Configuration Setting
Command:
PUT /api/automation
Parameters:
id
— ID automation
deviceType
— ID deviceType;
name
—name (digitals, letters, symbols [-_] from 0 to 25 characters);
description
— comment(digitals, letters, grammatical symbols from 0 to 255 characters);
checkIntervalSeconds
— checking timeout, s (number 1 to 5 digits);
interRestartIntervalSeconds
— min. timeout to restart, s (number 1 to 5 digits);
consumptionEnabled
— circumstance monitoring (true/false).
208