Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20490

How to query the SWIS JSON interface using curl?

$
0
0

I thought I'd try curl before implementing it in the client, but all queries end in

curl: (7) Failed connect to myserver:17778; Connection timed out

 

I've read the "SWIS REST/JSON API" thread, but can't figure out, why it doesn't work.

 

This is what I tried on a laptop in the server network:

curl --user myuser:mypass https://myserver:17778/SolarWinds/InformationService/v3/Json/Query?query=SELECT+NodeID+FROM+Orion.Nodes

 

I can connect in and run the query from SWQL Studio (same user, pass, server) just fine. Does the user have to have a special permission or is there a special setting to enable the query-interface, maybe?

 

Update:

If I try to connect to https://myserver:17778/SolarWinds/InformationService in a Browser, I get "The connection has timed out, The server at myserver is taking too long to respond.", but both SWIS and SWIS V3 Services are running.


Viewing all articles
Browse latest Browse all 20490

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>