Greetings all,
It's taking SolarWinds 5 days to answer and help me with API problem, my basic question is - Is REST API supported/available on 2024?
Thank you,
Girban
Greetings all,
It's taking SolarWinds 5 days to answer and help me with API problem, my basic question is - Is REST API supported/available on 2024?
Thank you,
Girban
Hi Girban,
REST API is available on all versions of the Orion Platform, 2024 included.
Have a look in the OrionSDK landing page: https://github.com/solarwinds/OrionSDK
Schemas available per version: https://solarwinds.github.io/OrionSDK/
Swagger: https://solarwinds.github.io/OrionSDK/swagger-ui/
Wiki: https://github.com/solarwinds/OrionSDK/wiki
What API problem are you trying to solve?
Regards,
Antonis
Thank you Antonis for the reply.
We are try to execute a simple query to test API, nothing seems to work. We tried with a Python script, direct URL and Postman, the error is the same - "405Method Not Allowed". We can't even confirm if the feature is working, and there is not indication what possibly is going wrong.
Thank you,
Girban
GirbanG In 2024.2, the SWIS API port was officially moved from 17778 to 17774. If you are script is still utilizing 17778, you want to switch it to 17774 or use the workaround stated in the release notes: https://documentation.solarwinds.com/en/success_center/orionplatform/content/release_notes/solarwinds_platform_2024-2_release_notes.htm
Hello Kita,
This is much better now, I am at least getting the enter username/password from a browser :)
However, I am getting a forbidden error message now for this basic query from Postman:
https://192.168.255.122:17774/SolarWinds/InformationService/v3/Json/Query?query=SELECT+NodeID,Caption,IP_Address+FROM+Orion.Nodes
I double checked the username and password, I deleted and created a new one just in case but the error still there.
Thanks,
Girban
what's the specific error message you're seeing in postman?
configuring the Authorization tab with Basic Auth should be enough, just tried with the query you commented, only changed the IP address to my environment and it worked
Hello Antonis,
It appears we needed to create the same API username and password under Managed Accounts, the API user alone doesn't work. Is that expected?
Regards,
Girban
Agreed. I am seeing the same behavior in my lab. I am using a local admin account that I've created under Manage Accounts with has admin privs. We are working on update the release notes and have a document KCS article to point out the same / similar error message. When using the older port of TCP port 17778, it is responding with 405 Method Not Allowed
Great. Thank you Kita!
For now we will create an internal api user account with restricted access to validate our work, hopefully this will be updated to eliminate confusion.
Thank you both for the help.
Girban
Great. Thank you Kita!
For now we will create an internal api user account with restricted access to validate our work, hopefully this will be updated to eliminate confusion.
Thank you both for the help.
Girban
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 195,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.