- Revenera Community
- :
- FlexNet Operations
- :
- FlexNet Operations Forum
- :
- How to get list of HOSTIDS for all Cloud License Servers?
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
How to get the list of all hostids for all of our servers hosted in the cloud, using the REST API?
The documentation says to use global level "/hostids" which works on local license servers BUT NOT with FNO. The problem is not "authentication" but rather, what's the correct endpoint URL for "global level REST API to FNO", not a specific cloud server?
The following tests should make the problem clear:
https://flexXXXX-uat.compliance.flexnetoperations.com/api/1.0/hostids (with appropriate ID for 'XXXX') | Fails with "Not found". In fact this doesn't even seem to be a valid REST endpoint. |
http://localserverUrl/api/1.0/hostids | Works. This validates that "/hostids" works. But I want the same thing for CLOUD SERVERS, not local servers. |
https://flexXXXX-uat.compliance.flexnetoperations.com/api/1.0/instances/XYZ10203040/ | Works. This validates that I have the correct path for a specific cloud server. But I want 'hostids' FOR ALL cloud servers, not a specific one. |
https://flexXXXX-uat.compliance.flexnetoperations.com/api/1.0/instances/XYZ10203040/hostids/ | Fails, which proves the "/hostids" REST command is not supported even for a specific cloud license server, like it is on a local license server. |
All my other REST calls work perfectly (authorize, features, etc.) so this is a specific problem for the '/hostids' endpoint only.
Any help appreciated.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @kiangorji ,
You can use the REST API from the "manage-device-service-rest-controller" to obtain a list of all Server IDs.
The link to the Swagger page is here: https://flexNNNN.flexnetoperations.com/flexnet/swagger-ui.html#/manage45device45service45rest45controller
Send a POST to https://flexNNNN.flexnetoperations.com/flexnet/operations/manageDevice/1.0/devices
with the following query
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @kiangorji ,
You can use the REST API from the "manage-device-service-rest-controller" to obtain a list of all Server IDs.
The link to the Swagger page is here: https://flexNNNN.flexnetoperations.com/flexnet/swagger-ui.html#/manage45device45service45rest45controller
Send a POST to https://flexNNNN.flexnetoperations.com/flexnet/operations/manageDevice/1.0/devices
with the following query