A cURL commands
The HP VAN SDN Controller provides a restful web service API. There are several tools available for accessing restful web service APIs, one of which is cURL. This sppendix shows examples of accessing the HP VAN SDN Controller's restful web service API with cURL. For details on installing the curl application, see http://curl.haxx.se/download.html.
The cURL application has many options, which are described in detail in the cURL manual (run "curl
CAUTION: Credential information (user name, password, domain, and authentication tokens) used in cURL commands may be saved in the command history. For security reasons, HP recommends that you disable command history prior to executing commands containing credential information.
NOTE: The
NOTE: Examples of cURL commands in this guide use the
A.1 Export audit log data as a CSV file
To export the audit log use the following command:
curl [options]
https://<controller_ip>:8443/sdn/v2.0/auditlog \
To acquire the token for the command, see “Installing, activating, uninstalling, or transferring licenses” (page 34).
For example, to export the current content in the controller audit log in a file named auditlogExport.CSV inside a zip file:
curl
A.2 Licensing actions
A.2.1 Obtaining an install ID
To acquire the token for the command, see “Installing, activating, uninstalling, or transferring licenses” (page 34).
To obtain an Install ID:
112 cURL commands