Unable to execute REST API for SiteScope

  • KM03687795
  • 31-Jul-2020
  • 31-Jul-2020

Summary

Unable to execute REST API for SiteScope

Question

Unable to execute rest api

API(from Postman and as POST) to disable to a monitor and see the error code as 403 Method not allowed.URI Issued "http://:8080/api/monitors/monitor/status", with following request body.

1) fullPathToMonitor : Test\Test12) enable : false3) timePeriod: 300

SiteScope version : 11.91OS: Windows 2012 R2.

Answer

Background: Customer is trying to execute the API(from Postman and as POST) to disable to a monitor and see the error code as 403 Method not allowed.URI I sued "http://:8080/api/monitors/monitor/status", with following request body.1) fullPathToMonitor : Test\Test12) enable : false3) timePeriod: 300

SiteScope version : 11.91OS: Windows 2012 R2.
Customer was trying to work with API using POSTMAN with a POST but it was failing by : HTTP Status 405 – Method Not Allowed

Solution suggested:

Provided a document with the guidelines to configure a REST API monitor: KM02609569
you can find the steps to configure REST API monitor properly: https://docs.microfocus.com/itom/SiteScope:2019.11/RESTAPIMonitor

Solution That worked:
Actions:

• We changed the value from the parameter “fullPathToMonitor” from “Test/Test1” to “Test_sis_path_delimiter_Test1” and the URL: http://SiS:8080/api/monitors/monitor/status was changed to: http://SiS:8080/SiteScope/api/monitors/group/status
Monitors were successfully disabled.
Documentation: https://docs.microfocus.com/itom/SiteScope:2019.11/DisableGroupFullPath