cancel
Showing results for 
Search instead for 
Did you mean: 

Help on accessing HiveManager NG on premise API

Help on accessing HiveManager NG on premise API

wies_hays
New Contributor III

Hello,

 

I need some help on accessing the HiveManager NG API.

 

First I generated an access token for "client-id: myClient".... which is XXX_YYYmyClient

 

How can I talk to the API now?

 

I tried:

curl -v -X GET --noproxy myhivemanger.my.domain -k -H 'X-AH-API-CLIENT-SECRET: XXX__YYYmyClient' -H 'X-AH-API-CLIENT-ID: myClient' -H 'X-AH-API-CLIENT-REDIRECT-URI: https://myhivemanager.my.domain' https://myhivemanager.my.domain/xapi/v1/monitor/devices

 

but it's returning:

 

{"data":null,"error":{"status":400,"code":"GatewayErrorCode.ACCESS_TOKEN_MISSING","message":"Calls must include Authorization header with a valid Bearer access token.","rawMessage":"moPLiqZNJB","errorParams":null,"validationErrors":null,"moreInfo":null}}

 

What am I doing wrong?

5 REPLIES 5

weekdaysailor
Contributor

owner_id maybe?

 

https://thehivecommunity.aerohive.com/s/question/0D50c00005kwJoRCAU/are-the-instructions-on-the-aerohive-developer-site-for-setting-up-api-connections-the-same-for-both-cloud-and-on-prem-instances?language=en_US

GTM-P2G8KFN