The following example is shown in the REST API docs for creating a single poller @ https://github.com/solarwinds/OrionSDK/wiki/REST
POST localhost:17778/.../Orion.Pollers HTTP/1.1
{"PollerType":"hi from curl 2", "NetObject":"N:123", "NetObjectType":"N", "NetObjectID":123}
RESPONSE:
"swis:\/\/tdanner-dev.swdev.local\/Orion\/Orion.Pollers\/PollerID=19"
Then some examples of bulk actions for updates and deletes:
POST localhost:17778/.../BulkUpdate HTTP/1.1
POST localhost:17778/.../BulkDelete HTTP/1.1
Is there an equivalent BulkCreate REST API where you could pass something like the following:
POST localhost:17778/.../BulkCreate HTTP/1.1
{
"pollers": [
{"PollerType": "N.Status.ICMP.Native", "NetObject": "N:123", "NetObjectType": "N", "NetObjectID": "123", "Enabled": "True"},
{"PollerType": "N.ResponseTime.ICMP.Native", "NetObject": "N:123", "NetObjectType": "N", "NetObjectID": "123", "Enabled": "True"}
]
}
And get the following response back:
{
"results": [
{ "Uri": "swis://tdanner-dev.swdev.local/Orion/Orion.Pollers/PollerID=6" },
{ "Uri": "swis://tdanner-dev.swdev.local/Orion/Orion.Pollers/PollerID=7" }
]
}