rest api help

I need to create a powershell script {later a function} that interfaces with our monitoring software.
it uses rest api, but nothing I do will let me actually send the query. here is the documentation
https://kb.groundworkopensource.com/display/DOC70/RESTful+Services#RESTfulServices-2.0HostAPIs

I just want to query hosts for right now, and cannot figure out the syntax for invoke-restrequest nor invoke-webrequest

does any one have any insight to atleast get me started?

the pretend url to the server will be http://groundwork for any examples

This is driving me crazy. I just keep getting a landing page returned to me

*edit /u/HeuristicBishop noticed that I have to authenticate first, then act on the api! woot Thank you guys!

submitted by /u/mimic751
[link] [comments]

Leave a Reply