5. The Reference for RPCM REST API
5.2.10.10 Changing Inter Restart Interval Seconds (Value or Default)
Command:
PUT /api/automation/name/Automation-Name-value/inter-restart-interval-seconds/Restart-
Interval-Seconds-value
Examples:
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/inter-restart-
interval-seconds/120
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/inter-restart-
interval-seconds/default
5.2.10.11 Deleting Automation Test Settings by Name
Command:
DELETE /api/automation/name/Automation-Name-value
Example:
curl -X DELETE http://192.168.1.24:8888/api/automation/name/AntMiner-1
5.2.10.12 Setting a Consumption test in One Command
Command:
PUT /api/automation/name/Automation-Name-value/consumption/enabled/Enabled-value/alarm-
bottom-limit-milliamps/Alarm-Bottom-Limit-Milliamps-value/restart-bottom-limit-milliamps/
Restart-Bottom-Limit-Milliamps-value/alarm-seconds/Timeout-Alarm-Seconds-value/restart-
seconds/Timeout-Restart-Seconds-value
Example:
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/consumption/enabled/
on/alarm-bottom-limit-milliamps/default/restart-bottom-limit-milliamps/default/alarm-
seconds/30/restart-seconds/60
5.2.10.13 Setting the Consumption Test with Default Parameters
Command:
PUT /api/automation/name/Automation-Name-value/consumption/defaults/enabled/Enabled-value
Examples:
сurl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/consumption/
defaults/enabled/on
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/consumption/
defaults/enabled/off
5.2.10.14 Enabling / Disabling the Consumption Test
Command:
PUT /api/automation/name/Automation-Name-value/consumption/enabled/Enabled-value
214