How to add agent to SolarWinds using API (Agent is already installed on the server manually by other methods)

Hi,

I have a bunch of Linux servers which we have installed the SolarWinds agent on and they were configured for server initiated connection.

Now I would like to use the Solar Winds API so I can add these agents into the console. Same as how we would do it manually on the web interface like the below:

pastedImage_0.png

pastedImage_1.png

Is there such API available? (preferably using PowerShell or Python)..

I've tried looking at this schema reference SolarWinds Information Service v3.0 Schema Documentation  and also referred to the SWQL Studio but I cannot seem to right the right method/function to call?..

Thanks in advance guys!