5. The Reference for RPCM REST API
Example:
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/hash-rate/api-ip-
address/192.168.1.1
5.2.10.27 Configuring API Port for a Hash-Rate Test
Command:
PUT /api/automation/name/Automation-Name-value/hash-rate/api-port/API-TCP-Port-Value
Examples:
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/hash-rate/api-port/
123
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/hash-rate/api-port/
default
5.2.10.28 Configuring the API Unavailability Timeout Seconds Parameter for
a Hash-Rate Test
Command:
PUT https://192.168.1.24:8888/api/automation/name/Automation-Name-value/hash-rate/api-
unavailability-timeout-seconds/API-Unavailability-Timeout-Seconds-Hasrate-value
Examples:
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/hash-rate/api-
unavailability-timeout-seconds/100
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/hash-rate/api-
unavailability-timeout-seconds/default
5.2.10.29 Single Command for a Ping Test Setup
Command:
PUT /api/automation/name/Automation-Name-value/ping/enabled/Enabled-value/ip-address/IP-
Address-Value/connect-timeout-seconds/Сonnect-Timeout-Value/upper-limit-milliseconds/
Upper-Limit-Milliseconds-Value/alarm-packet-loss-percentage/Alarm-Packet-Loss-Percentage-
Value/restart-packet-loss-percentage/Restart-Packet-Loss-Percentage-Value/alarm-seconds/
Alarm-Seconds-Value/restart-seconds/Restart-Seconds-Value
Example:
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/ping/enabled/on/ip-
address/192.168.0.1/connect-timeout-seconds/30/upper-limit-milliseconds/20/alarm-packet-
loss-percentage/30/restart-packet-loss-percentage/70/alarm-seconds/30/restart-seconds/60
5.2.10.30 Enabling / Disabling Ping Test
Command:
PUT /api/automation/name/Automation-Name-value/ping/enabled/Enabled-value
218