We have a script to mute Nodes via node custom property, but when we try to setup a similar process to mute an interface, it gives an error. Does anyone know what the syntax is to mute an interface via API?
Looking at the Alert Suppression table, interfaces require both the nodeID and the interfaceID, but when we match the formatting of already muted interfaces, we get an error that implies it doesn't understand the URI....
PS C:\Users\me> $EndResults
swis://ORION.ExampleDom.com/Orion/Orion.Nodes/NodeID=15365/Interfaces/InterfaceID=66709
PS C:\Users\me> $Start = [datetime]::Today.AddHours(12); $End = [datetime]::Today.AddHours(15)
PS C:\Users\me> Invoke-SwisVerb $swis Orion.AlertSuppression SuppressAlerts @($EndResults, $Start, $End ) | Out-Null
Invoke-SwisVerb : Verb Orion.AlertSuppression.SuppressAlerts cannot unpackage parameter 0 of type System.String[]
At line:1 char:5
+ Invoke-SwisVerb $swis Orion.AlertSuppression SuppressAlerts @($En ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Invoke-SwisVerb], FaultException`1
+ FullyQualifiedErrorId : SwisError,SwisPowerShell.InvokeSwisVerb