V-Spark Online Help

Using the /sysinfo API with cURL

If you are unfamiliar with the cURL command, see Using cURL for REST API Testing for a short introduction and an explanation of how cURL examples are displayed. See Tips for Debugging and Managing cURL Calls for suggestions about how to debug and manage cURL calls.

Retrieve basic system information by using a GET call to the /sysinfo API. The following command demonstrates retrieving basic system information from a V‑Spark server. The JSON that is retrieved is written to a JSON file named Sysinfo-Test.json:

curl -s "http://HOSTNAME/sysinfo?token=TOKEN" > Sysinfo-Test.json

Retrieve full system information including service status and the version levels of all installed packages by using the full switch on a GET call to the /sysinfo API. The following command demonstrates retrieving full system information from a V‑Spark server. The JSON that is retrieved is written to a JSON file named Sysinfo-Full-Test.json:

curl -s "http://HOSTNAME/sysinfo?full&token=TOKEN" > Sysinfo-Full-Test.json