Appendix 1 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

The cURL application has many options, which are described in detail in the cURL manual (run "curl --manual") and at The examples in this appendix use minimal options and assume a non-scripted, command line mode of execution and no conflicts with a web proxy. Additional options can be used to customize your experience for your environment.

NOTE: The '-k' option should only be used when issuing the request against an HP VAN SDN Controller with a self-signed certificate, which is installed by default. If a CA signed certificate is installed, the '-k' option should not be used. See for further details.

CAUTION: Credential information (user name, password, domain, and authentication tokens) used in cURL commands might be saved in the command history. For security reasons, HP recommends that you disable command history prior to executing commands containing credential information.

NOTE: Examples of cURL commands in this guide use the "--noproxy" option, which is appropriate where execution of cURL commands does not need a proxy to access controllers. If your network is set up such that a proxy is needed to access controllers, use the "--proxy" option. For details on cURL proxy options, visit