5. The Reference for RPCM REST API
PUT /api/automation/name/Automation-Name-value/ping/restart-packet-loss-percentage/
Restart-Packet-Loss-Percentage-Value
Example:
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/ping/restart-packet-
loss-percentage/77
5.2.10.36 Configuring Alarm Seconds for a Ping
Command:
PUT /api/automation/name/Automation-Name-value/ping/alarm-seconds/Alarm-Seconds-Value
Example:
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/ping/alarm-seconds/32
5.2.10.37 Configuring Restart Seconds for a Ping
Command:
PUT /api/automation/name/Automation-Name-value/ping/restart-seconds/Restart-Seconds-Value
Example:
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/ping/restart-
seconds/62
5.2.10.38 Configuring TCP Port Availability Test in One Command
Command:
PUT /api/automation/name/Automation-Name-value/tcp-port-availability/enabled/Enabled-
value/ip-address/IP-Address-Value/port/TCP-Port-Value/connect-timeout-seconds/Сonnect-
Timeout-Value/alarm-seconds/Alarm-Seconds-Value/restart-seconds/Restart-Seconds-Value
Example:
curl -X PUT htts://192.168.1.24:8888/api/automation/name/Automation1/tcp-port-
availability/enabled/on/ip-address/192.168.0.1/port/3333/connect-timeout-seconds/20/alarm-
seconds/30/restart-seconds/60
5.2.10.39 Enabling / Disabling the TCP Port Availability Test
Command:
PUT /api/automation/name/Automation-Name-value/tcp-port-availability/enabled/Enabled-value
Examples:
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/tcp-port-
availability/enabled/on
curl -X PUT http://192.168.1.24:8888/api/automation/name/Automation1/tcp-port-
availability/enabled/off
220