Hi,
I would like to add volumes to be monitored in solarwinds using the rest api (not the swis sdk)
Thanks
When making /Invoke/ calls, the POST body is always a JSON array of the arguments. In this case the verb only has one parameter, so this will be an array of one item. Wrap it in [ ] and try again.
This can be done using the Discovery API. The page describing this (https://github.com/solarwinds/OrionSDK/wiki/Discovery) has PowerShell examples, but there is also an example Python script (https://github.com/solarwinds/orionsdk-python/blob/master/samples/discover_one_node.py ) that uses the same API via REST.
Hi Tdanner,
I am attempting to use the api using powershell without the SDK but with the rest api. However I am getting this error
"Verb Orion.Discovery.CreateCorePluginConfiguration requires 1 parameters not 0"
Rest variable is
$json =
{
"BulkList": [
"Address": "xx.x.x.xx"
}
],
"WmiRetriesCount": 1,
"WmiRetryIntervalMiliseconds": 1000,
"Credentials": [
"CredentialID": "x",
"Order": 1
]
then running
Invoke-RestMethod -Uri $url -Credential $supersupersecretcreds -Method Post -Body $json -ContentType application/json
$url = "https://$($hostname):17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.NPM.Interfaces/DiscoverInterfacesOnNode"
Any help is appreciated.
I will post my script once its done, this was eventually successful, I need to take the XML response I received from the document call and place them in the discovery call. Works well