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
394 stars 139 forks source link

Changes to SWIS REST endpoint #333

Closed petr-jancik-swi closed 1 year ago

petr-jancik-swi commented 1 year ago

Change HTTPS endpoint port Add HTTPS endpoint for legacy SWIS REST endpoint Keep curl query export to clipboard for new and legacy port

kmsigma commented 1 year ago

Confirmed after compilation that the new ports are reflecting correctly in the "Copy As" fields

Legacy curl (cmd)
curl.exe -k -u MyUsername:MyC0mpl3xP@ssw0rd https://192.168.21.217:17778/SolarWinds/InformationService/v3/Json/Query?query=SELECT+TOP+1+ExecutedAt%2c+EndpointServiceID%2c+ProbeID%2c+ProbeStatus%2c+CompletionRatio%2c+UniqueEdgeCount%2c+UniquePathCount%2c+TotalTraceCount%2c+TotalEdgeCount%2c+PortClosedTraceCount%2c+DestUnreachedTraceCount%2c+DnsFailureTraceCount%2c+RouteChangeCount%2c+EdgeChangeCount%2c+SentPackets%2c+LostPackets%2c+ConnectionBased%2c+Rtt%2c+RttMin%2c+PacketLoss%2c+Status%2c+DisplayName%2c+Description%2c+InstanceType%2c+Uri%2c+InstanceSiteId%2c+SentPackets+-+LostPackets+AS+%5bPayload%5d+FROM+Orion.NetPath.Tests+WHERE+EndpointServiceId+%3d+9+AND+ProbeId+%3d+1+AND+ExecutedAt+%3e%3d+GETUTCDATE()+-+1+AND+Length(Graph)%3e0+ORDER+BY+ExecutedAt+DESC

Legacy curl (bash)
curl -k -u MyUsername:MyC0mpl3xP@ssw0rd https://192.168.21.217:17778/SolarWinds/InformationService/v3/Json/Query?query=SELECT+TOP+1+ExecutedAt%2c+EndpointServiceID%2c+ProbeID%2c+ProbeStatus%2c+CompletionRatio%2c+UniqueEdgeCount%2c+UniquePathCount%2c+TotalTraceCount%2c+TotalEdgeCount%2c+PortClosedTraceCount%2c+DestUnreachedTraceCount%2c+DnsFailureTraceCount%2c+RouteChangeCount%2c+EdgeChangeCount%2c+SentPackets%2c+LostPackets%2c+ConnectionBased%2c+Rtt%2c+RttMin%2c+PacketLoss%2c+Status%2c+DisplayName%2c+Description%2c+InstanceType%2c+Uri%2c+InstanceSiteId%2c+SentPackets+-+LostPackets+AS+%5bPayload%5d+FROM+Orion.NetPath.Tests+WHERE+EndpointServiceId+%3d+9+AND+ProbeId+%3d+1+AND+ExecutedAt+%3e%3d+GETUTCDATE()+-+1+AND+Length(Graph)%3e0+ORDER+BY+ExecutedAt+DESC

Current curl (cmd)
curl.exe -k -u MyUsername:MyC0mpl3xP@ssw0rd https://192.168.21.217:17774/SolarWinds/InformationService/v3/Json/Query?query=SELECT+TOP+1+ExecutedAt%2c+EndpointServiceID%2c+ProbeID%2c+ProbeStatus%2c+CompletionRatio%2c+UniqueEdgeCount%2c+UniquePathCount%2c+TotalTraceCount%2c+TotalEdgeCount%2c+PortClosedTraceCount%2c+DestUnreachedTraceCount%2c+DnsFailureTraceCount%2c+RouteChangeCount%2c+EdgeChangeCount%2c+SentPackets%2c+LostPackets%2c+ConnectionBased%2c+Rtt%2c+RttMin%2c+PacketLoss%2c+Status%2c+DisplayName%2c+Description%2c+InstanceType%2c+Uri%2c+InstanceSiteId%2c+SentPackets+-+LostPackets+AS+%5bPayload%5d+FROM+Orion.NetPath.Tests+WHERE+EndpointServiceId+%3d+9+AND+ProbeId+%3d+1+AND+ExecutedAt+%3e%3d+GETUTCDATE()+-+1+AND+Length(Graph)%3e0+ORDER+BY+ExecutedAt+DESC

Current curl (bash)
curl -k -u MyUsername:MyC0mpl3xP@ssw0rd https://192.168.21.217:17774/SolarWinds/InformationService/v3/Json/Query?query=SELECT+TOP+1+ExecutedAt%2c+EndpointServiceID%2c+ProbeID%2c+ProbeStatus%2c+CompletionRatio%2c+UniqueEdgeCount%2c+UniquePathCount%2c+TotalTraceCount%2c+TotalEdgeCount%2c+PortClosedTraceCount%2c+DestUnreachedTraceCount%2c+DnsFailureTraceCount%2c+RouteChangeCount%2c+EdgeChangeCount%2c+SentPackets%2c+LostPackets%2c+ConnectionBased%2c+Rtt%2c+RttMin%2c+PacketLoss%2c+Status%2c+DisplayName%2c+Description%2c+InstanceType%2c+Uri%2c+InstanceSiteId%2c+SentPackets+-+LostPackets+AS+%5bPayload%5d+FROM+Orion.NetPath.Tests+WHERE+EndpointServiceId+%3d+9+AND+ProbeId+%3d+1+AND+ExecutedAt+%3e%3d+GETUTCDATE()+-+1+AND+Length(Graph)%3e0+ORDER+BY+ExecutedAt+DESC