
MajaHamer asked a question.
A Project is looking for information about API we can use for direct integration with a Surface Command solution. Is there any documentation we can use?

MajaHamer asked a question.
A Project is looking for information about API we can use for direct integration with a Surface Command solution. Is there any documentation we can use?

bsoer2212 asked a question.
We have the Snow Lincense Manager and i want to pull some data with the api, which according to the documentation should be at slm.<company.com>/api, and that you should supply the username and password as base64 encoded. When i do so i get error code 500 saying: "Salt is not at least eight bytes". I have also tried accessing the /api endpoint through the browser and encountering the same problem.

Ensure your request includes a properly formatted Authorization header:
Authorization: Basic <base64(username:password)>
The username:password string must be correctly base64-encoded.
Avoid encoding just the username or password separately.
If Windows Authentication is enabled for the SLM site, it can interfere with API access.

kmore asked a question.
Hello there,
I have an API query that gathers the computer's. The challenge is that the query defaults to an output of 100 items on the page. Is there a way to output 'all' of the computer objects instead of having to loop through each 100?
The code is written in powershell.
Thanks for the help!

Hi @Kelly Moore​ ,
no. That's how those API works.
Have a look on a some code i've written to deal with it.
https://gist.github.com/snowliver/97e7f4e8952e96ecdc7680f543ce51b4
gives you a nice Hashtable with all Computers in the end.
Maybe it helps you.
Cheers Oliver
This is quite an old post so not sure if you still need this info, but in general - no. There is some documentation on the Snow License Manager Web API here: Introduction | Snow product documentation
But it's not great. It basically tells you how to connect to it and what's available, but not much else other than that. If you still need more info - let me know and I can try give you a hand.