solarwinds / OrionSDK

SDK for the SolarWinds Orion platform, including tools, documentation, and samples in PowerShell, C#, Go, Perl, and Java.
https://thwack.com/OrionSDK
Apache License 2.0
397 stars 139 forks source link

Orion.ADM.NodeInventory.Disable Not Working in SwisPowerShell, Works in REST/SWQL Studio #312

Open martincrothers opened 2 years ago

martincrothers commented 2 years ago

I'm experiencing an issue with the PowerShell module using the Invoke-SwisVerb commandlet. This seems to be similar to issue #234

I am trying to perform the following: Invoke-SwisVerb -SwisConnection $swis -EntityName "Orion.ADM.NodeInventory" -Verb "Disable" -Arguments @{nodeIds = @(6414)} I get a result returned that appears to indicate a successful result: powershell_result but it doesn't actually apply the change.

It works successfully if I use SWQL Studio, or even if I perform via cURL/REST: SWQL_Studio postman

Attempting it this way causes an error: Invoke-SwisVerb -SwisConnection $swis -EntityName "Orion.ADM.NodeInventory" -Verb "Disable" -Arguments @(6414)