SiteScope (Monitoring) - Delete monitor using REST API

by
Jeremy Canfield |
Updated: March 03 2023
| SiteScope (Monitoring) articles
You may want to first check out my article on Getting Started with the SiteScope REST API and this MicroFocus PDF.
A GET request can be made to endpoint /api/monitors to return the full list of monitors. For example, here is how you could submit the GET request using curl on Linux.
curl --request GET --user <username>:<password> --url http://<SiteScope hostname or IP address>:<port>/SiteScope/api/monitors
And here is a practical example.
~]# curl --request GET --user john.doe:itsasecret --url http://sitescope.example.com:8080/SiteScope/api/monitors
Something like this should be returned.
- sis_path_delimiter often maps to a forward slash, which means the foo monitor is at production/foo/https://foo.example.com/
{
"production": "Group",
"production_sis_path_delimiter_foo_sis_path_delimiter_https://foo.example.com/": "Monitor",
"production_sis_path_delimiter_bar_sis_path_delimiter_https://bar.example.com/": "Monitor"
}
Here is how you could delete a monitor.
- fullPathToMonitor is required and must be an exact match of the monitor returned by the prior command, with %20 used for whitespace
~]# curl --request DELETE --user john.doe:itsasecret --url http://sitescope.example.com:8080/SiteScope/api/monitors/monitor?fullPathToMonitor=<monitor name from prior command>
Did you find this article helpful?
If so, consider buying me a coffee over at