5. The Reference for RPCM REST API
API-Unavailability-Timeout-Seconds-Hasrate-value
— control interval (delay) in seconds
before the notification, an integer from 1 to 99999, or the default service word for the default
value.
IP-Address-Value
— the IP address of the device to be checked for availability.
Connect-Timeout-Value
— allowable timeout of the device before sending a response over the
network, the availability of which must be checked as an integer from 1 to 99999.
Upper-Limit-Milliseconds-Value
— maximum ICMP packet transit time (Max. Latency limit,
ms), an integer from 1 to 99999.
Alarm-Packet-Loss-Percentage-Value
— the maximum allowed number of lost packets in% for
notification.
Restart-Packet-Loss-Percentage-Value
— the maximum allowable number of lost packets in%
for reboot.
Alarm-Seconds-Value
— alarm delay time in seconds, an integer from 1 to 99999.
Restart-Seconds-Value
— restart grace period in seconds, an integer from 1 to 99999.
TCP-Port-Value
— TCP port of a network device for checking the availability of a TCP service,
which must be checked, an integer up to 65535.
5.2.10.2 Adding Automation Test Settings
Command:
POST /api/automation/name/Automation-Name-value/device-type-name/Device-Type-Name-value/
outputs/Outlets-Numbers-value/description/Description-Text-value/check-interval-seconds/
Сheck-Interval-Seconds-value/inter-restart-interval-seconds/Restart-Interval-Seconds-value
Example:
curl -X POST http://192.168.1.24:8888/api/automation/name/Automation1/device-type-name/
Bitmain_D3/outputs/1/description/desc/check-interval-seconds/2/inter-restart-interval-
seconds/300
5.2.10. 3 Adding Automation Test Settings with Default Values
Command:
POST /api/automation/name/Automation-Name-value/device-type-name/Device-Type-Name-value/
outputs/Outlets-Numbers-value
Example:
curl -X POST http://192.168.1.24:8888/api/automation/name/Automation1/device-type-name/
Bitmain_D3/outputs/2
5.2.10.4 Changing the Settings of Automation Test Settings to Default Values
Command:
PUT /api/automation/name/Automation-Name-value/default
212