I hope this is the right forum to start with.
I'm not super skilled with APIs more broadly but I've done a couple things with them. My tool of choice is PowerShell because that's what I've used in the past and I'm skilled with it.
My immediate goal is to take a list of server names (which are all nodes in Orion by the same name) and schedule an "unmanaged period" ahead of maintenance. This will save me from clicking every server and unmanaging them, then setting the same exact same time period one-by-one. My problem is how to get started with this.
I didn't find a good article in the customer portal/documentation. The best link I found is this swagger UI which is better than nothing, but not far from: Swagger UI (solarwinds.github.io). I feel like there's got to be better documentation for the API than this but I haven't found it.
What I think I need is the following questions answered:
- How do I authenticate to my Orion instance's API? We use SAML authentication, so basic auth isn't going to work here. I need this answered first before I can truly think about anything else.
- I found the URI `/Invoke/Orion.Nodes/Unmanage` in the Swagger resource. But it has an odd attribute - isRelative. But 0 documentation on what this means. I assume it has something to do with timezones but it's not obvious. Is there any exhaustive documentation on the API?
- The same JSON references a netObjectId property. I'm assuming this is the same ID that shows up in a browser's address bar (e.g. `/Orion/NetPerfMon/NodeDetails.aspx?NetObject=N:20`). Is there a URI to return all nodes in the Orion environment and their objectIds? Or how would I go about getting this netObjectId property so I can properly unmanage nodes? Maybe I'm processing the logic badly/incompletely.