05-02-2018 03:08 PM
I am currently trying to setup API integration with our on prem instance and I am unable to get things working. Any suggestions?
Solved! Go to Solution.
06-13-2019 03:46 PM
This took awhile to figure out but figure it may help someone else down the road. In order to gain access to the API for the on-prem version of HiveManager... This example is using the Postman app to do API requests
Go to Global Settings > API Token Management
Fire up Postman and generate a new basic request. In this example we are doing a GET request.
The URL we're are going to send the request to is:
https://YOURLOCALVM.com/xapi/v1/monitor/devices?ownerId=2
The "?ownerID=2" section is very important and referrers to the local version of HiveManager, do not delete this!
THE REQUEST:
Under the "Authorization" tab - set this to "No Authorization"
Under the "Headers" tab is where you do most of the configuration:
06-19-2019 02:38 PM
Excellent answer. It took me a couple weekends a few months ago to figure all that out.
Postman also has a great Environments feature where you can create collections of different key-value pairs and then use those variables to pull the values into your header or content fields later. This makes updating your HiveManager API keys really quick. Just edit them once and all your saved calls get updated without displaying the value to onlookers. And, as the name implies, if you have different environments you can switch between them quickly to target your code at dev, test, prod, or whatever else you've got.
Being able to update the different header values was a big time saver when I was trying to sort out which ones to use and then the API calls I wanted to make.
06-13-2019 03:46 PM
This took awhile to figure out but figure it may help someone else down the road. In order to gain access to the API for the on-prem version of HiveManager... This example is using the Postman app to do API requests
Go to Global Settings > API Token Management
Fire up Postman and generate a new basic request. In this example we are doing a GET request.
The URL we're are going to send the request to is:
https://YOURLOCALVM.com/xapi/v1/monitor/devices?ownerId=2
The "?ownerID=2" section is very important and referrers to the local version of HiveManager, do not delete this!
THE REQUEST:
Under the "Authorization" tab - set this to "No Authorization"
Under the "Headers" tab is where you do most of the configuration:
05-03-2018 07:03 PM
The two are mostly similar with two major differences:
Also, the URLs to call the APIs are constructed slightly differently. The endpoints are found at https://<FQDN_of_the_onprem_VA>/ + endpoint. For example, the monitor/devices endpoint on the VA will be at:
https://<FQDN>/xapi/v1/monitor/devices.