To do this, theres an excellent free cross-platform utility called Postman from Postdot Technologies, Inc.This is no different than a regular user, but its a good idea since you can limit the users access to just the minimum that you need without giving it carte blanche to your entire system ( as it would have if you used your own credentials).When youre just starting with this, start without the node management rights so you dont do anything youll regret.Well ask it for the captions and IP addresses of all of the nodes in our inventory.
When you start it you should start out with a new tab with no information. Populate it with the URL ( using your IP address, of course), and then choose Basic Auth from the drop down that currently is currently set to No Auth. Make sure you dont share that with anyone because its simple to convert this back to plain text. Also, you really should only be having these conversations inside your own network. Based on the example above, we need to provide a query parameters with the value set to the query that we want to run. To do that, click the Params button to expand the parameters interface. ![]() You can see that the URL was automatically adjusted to include a mark to start the query string portion which is made up of our key ( query) and value ( the actual query above). If everything went well, you should see results like the ones below. First, the result has its own headers section that you can click on to see what information came along with the result ( content length, content type, date, and server type). Second, the formatter being used to display the results is JSON of course because thats what we asked for in the query ( see the json portion above). This will require us to step it up from a GET request to a POST so we have more wiggle room. To save time, copy the query URL below to the new tab and set the request type to POST. Click Update Request to add that authorization header to your new request. Lets see what they say about doing this on the SolarWinds wiki. As long as its valid JSON ( youll see a little red checkbox if it isnt) its fair game. Solarwinds Orion Api Examples How To Make SomeNext well talk about how to make some minor changes to your SolarWinds environment including managingunmanaging devices, adjusting custom properties, adding nodes, assigning templates, and whatever else comes up. If you have a request, please feel free to shoot me an email at sklassenloop1.com. ![]() Solarwinds Orion Api Examples Software Automation AndHe has more than 20 years of experience in software automation and technical training.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |