You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although I almost always use the SwisPowerShell module, there's always a chance that I'll encounter a system where it cannot be installed. As a workaround, can we add an option to use the native Invoke-RestMethod PowerShell function as opposed to the Get-SwisData function from the SwisPowerShell module?
Although I almost always use the
SwisPowerShell
module, there's always a chance that I'll encounter a system where it cannot be installed. As a workaround, can we add an option to use the nativeInvoke-RestMethod
PowerShell function as opposed to theGet-SwisData
function from theSwisPowerShell
module?Syntax construction would be roughly like this:
What's copied to clipboard:
Invoke-RestMethod -Uri 'https://solarwinds.domain.local:17778/SolarWinds/InformationService/v3/Json/Query?query=SELECT+TOP+10+Caption+%2c+IP+%2c+CONCAT(Caption%2c%27%22%2f%22%27%2cIP)+AS+%5bComboName%5d+%2c+GETUTCDATE()+AS+%5bRightNow%5d+FROM+Orion.Nodes+WHERE+IP+LIKE+%27192.168.%25.%25%27' -Authentication Basic -Method Get -SkipCertificateCheck -Credential ( New-Object System.Management.Automation.PSCredential -ArgumentList ( "MyUsername", ( "MyC0mpl3xP@ssw0rd" | ConvertTo-SecureString -AsPlainText ) ) )
The text was updated successfully, but these errors were encountered: