HP VAN SDN Controller Administrator Guide

78
Example of Starting a Stopped Application:
curl --noproxy 192.168.49.86 --header X-Auth-Token:c405ff2d249c4a609229466c32932a82 -
ksS --fail --url
https://192.168.49.86:8443/sdn/v2.0/apps/com.hp.sdn.ctl.nodemgr/action/ -d start --
request POST
Stop a Running (ACTIVE) Application
curl --noproxy <controller_ip> --header X-Auth-Token:<authentication_token> -ksS --
fail --url https://<controller_ip>:<port>/sdn/v2.0/apps/<AppId>/action/ -d stop --
request POST
Example of Stopping a Running Application
curl --noproxy 192.168.49.86 --header X-Auth-Token:c405ff2d249c4a609229466c32932a82 -
ksS --fail --url
https://192.168.49.86:8443/sdn/v2.0/apps/com.hp.sdn.ctl.nodemgr/action/ -d stop --
request POST
Uninstall an Application
curl --noproxy <controller_ip> --header X-Auth-Token:<authentication_token> -ksS --
fail --url https://<controller_ip>:<port>/sdn/v2.0/apps/<AppId> --request DELETE
Example of Uninstalling an Application
curl --noproxy 192.168.49.86 --header X-Auth-Token:c405ff2d249c4a609229466c32932a82 -
ksS --fail --url https://192.168.49.86:8443/sdn/v2.0/apps/com.golly.gee --request
DELETE
Backup and Restore Actions
Set the Controller IP Address
curl --noproxy <controller_ip> --header "X-Auth-Token:<auth_token>" --fail -ksS -L -f
--request PUT "https://<controller_ip>:8443/sdn/v2.0/systems/<controller_uid>" --data-
binary '{"system":{"ip":"<controller_ip>"}}'
Acquire an Authentication Token
curl --noproxy <controller_ip> -X POST --fail -ksSfL --url
"https://<controller_ip>:8443/sdn/v2.0/auth" -H "Content-Type: application/json --
data-binary '{"login": {"domain": "<domain>","user": "<user>","password":
"<password>"}}'
Note
The default “<domain>” value is “sdn”.
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.