cURL utility
Alternatively to the GUI, the cURL command-line system utility (available on Linux, on Windows 10 version 1803 or later and on Windows Server 2019 or later) can be used to try out the REST API communication and functions. The command-line cURL calls have to look like this:
Instead of <instruction_parameters> in the command above, URL encoded parameters (param1=val1¶m2=val2&…) of a concrete REST API function have to be specified.
The parameter --insecure at the end of the command avoids that the execution ends with an error because the CA certificates are unknown, so the server certificate issuer cannot be verified. Alternatively, the CA certificates can be provided in the command in further parameters. For the full list of the parameters accepted by cURL, execute
from the command-line.
The first REST API function called has to be a login, which creates on success a new session and returns an authentication token for the session. The token has to be passed to every further REST API function in a parameter. At the end, the session can be closed by calling the function logout.
The following example makes a REST API login, calls two further REST API functions and closes the session. Beware, that the session authentication tokens are in the reality longer (128 characters) than in the example.
Last updated