5. The Reference for RPCM REST API
Examples:
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/consumption/restart-
seconds/120
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/consumption/restart-
seconds/default
5.2.10.19 Configuring a Hash-Rate Test in One Command
Command:
PUT /api/automation/name/Automation-Name-value/hash-rate/enabled/Enabled-value/alarm-
bottom-limit/Alarm-Bottom-Limit-Hashrate-Value/restart-bottom-limit/Restart-Bottom-Limit-
Hashrate-Value/alarm-seconds/Timeout-Alarm-Seconds-value/restart-seconds/Timeout-Restart-
Seconds-value/api-ip-address/API-IP-Address-Value/api-port/API-TCP-Port-Value/api-
unavailability-timeout-seconds/API-Unavailability-Timeout-Seconds-Hasrate-value
Example:
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/hash-rate/enabled/
on/alarm-bottom-limit/default/restart-bottom-limit/default/alarm-seconds/20/restart-
seconds/40/api-ip-address/192.168.0.1/api-port/default/api-unavailability-timeout-
seconds/default
5.2.10.20 Setting Hash Rate with Default Parameters
Command:
PUT /api/automation/name/Automation-Name-value/hash-rate/defaults/enabled/Enabled-value/
api-ip-address/API-IP-Address-Value
Example:
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/hash-rate/defaults/
enabled/on/api-ip-address/192.168.0.2
5.2.10.21 Enabling / Disabling a Hash-Rate Test
Command:
PUT /api/automation/name/Automation-Name-value/hash-rate/enabled/Enabled-value
Examples:
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/hash-rate/enabled/on
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/hash-rate/enabled/off
5.2.10.22 Configuring the Alarm Bottom Limit for a Hash-Rate Test
Command:
PUT /api/automation/name/Automation-Name-value/hash-rate/alarm-bottom-limit/Alarm-Bottom-
Limit-Hashrate-Value
216