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
in addition to @antonis.athanasiou , API related questions are only supported via THWACK or on Github.
Or is your REST API Question related to SAM API Polling? Going into the same direction as antonis, can you elaborate on your request
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.
@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 HerrDoktor,
We have exhausted all the links and references above, all we are trying to figure out is why it's not working.If the this only supported via Thwack and Github, it would have been nice for support to mention that instead of sitting on the ticket for 5 days
Regards,
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,
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?
are you definitely relying on REST or are PowerShell Scripts also an option. I have come across some minor limitations with REST API as opposed to the PowerShell Commandlets
@GirbanG , can you elaborate here?
@chad.every According to the documentation, to use the API, simply create the API username under "Manage API Poller Credentials." However, this is not sufficient; the account must also be created under the "Manage Accounts" section. Without creating the account under "Managed Accounts,” we received a failure.
@HerrDoktor REST is our only option, we are starting with very basic calls for a larger automation effort.
@GirbanG We went back to test 2024.1 with an API Poller Credential and received the forbidden message. I am not sure if this worked at some point in time before so we will need to do more testing. The API Poller Credential should only be used for the API poller itself. The SWIS API should be using only the Web Console credential under Managed Accounts.
You are mixing up things! API poller credentials are for gathering information from other devices (monitoring the devices via API). From your current explanation I am assuming that you are looking for interaction with the SolarWinds Platform.
@GirbanG you need to create the SWIS API Account ONLY under manage accounts.
please elaborate further, so we know what you are trying to achieve. At the moment it seems to be a guessing game for us.