Quantcast
Channel: Siggi Gladitsch Tracker
Viewing all articles
Browse latest Browse all 426

Re: Example REST API Call for SiteScope 11.31.491

$
0
0

Hi Robert,

I guess you need to explain your issue in greater detail.

The article at
/t5/SiteScope-Support-Customer-Forum/SiteScope-REST-Examples/td-p/6864596
states as URL for the POST request
http://localhost:8080/SiteScope/api/monitors/monitor/run
plus all the parameter required.

Do you write your own code, or do you use a browser to access the URLs?

You can access the API via a client like Chrome and the POSTMAN Add-On, or other extensions / tools,
or the command line toolset under
<SiteScope>\examples\integrations\api\bin
which is usually my way to start.

For example by executing
C:\SiteScope\examples\integrations\api\bin>get_full_configuration.bat -host myhost -port myport -useSSL false -login myuser -password mypass
..
_enabled: true

_ownerID: 200981110
-----------------------------------------------------

Entity name : CPU sov02bac29.eu.hpecorp.net
-----------------------------------------------------

Entity properties:

_prioritySelection: MEASURMENT

_prevKeyAttrMap: -84.-19.0.5.115.114.0.19.106.97.118.97.46.117.116.105.108.46.65.114.114.97.121.76.105.115.116.120.-127.-46.29.-103.-57.97.-99.3.0.1.73.0.4.115.105.122.101.120.112.0.0.0.0.119.4.0.0.0.10.120.
..

When I use IE I only get this message

Click here to navigate to SiteScope home page

when using the wrong entry point, for example

http://<my_sitescope>.<port_it_runs_on>/api/admin/monitors/status
("/api/admin/monitors/status" instead of "/SiteScope/api/admin/monitors/status")

When I use

http://<my_sitescope>.<port_it_runs_on>/SiteScope/api/admin/monitors/status

I don't get anything back, because the SiteScope API doesn't know what you want,

as "behind" "api/admin/monitors/status" it expects the method / end point, for example
getSiteScopeMonitoringStatusWithIdentifier
and the parameters required,
but that cannot be provided via a plain browser.

Does this help?

Greetings
Siggi


Viewing all articles
Browse latest Browse all 426

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>