HP VAN SDN Controller Administrator Guide v3

curl --noproxy 15.255.125.107 --header X-Auth-Token:
85f7c48b65394afc97de434b5aa8fe05 -ksSL --request POST --url
https://15.255.125.107:8443/sdn/v2.0/apps/com.geewiz/action -d cancel
A.3.10 Delete an application
This curl request is used to shutdown and completely remove all application versions. It has no
output.
curl --noproxy <controller_ip> --header X-Auth-Token:<auth_token>
-ksSL url https://<controller_ip>:8443/sdn/v2.0/apps/<app_id>/request
DELETE
Example of removing a staged application:
curl --noproxy 15.255.125.107 --header X-Auth-Token:
85f7c48b65394afc97de434b5aa8fe05 -ksSL --request DELETE --url
https://15.255.125.107:8443/sdn/v2.0/apps/com.geewiz
A.4 Backup and Restore Actions
A.4.1 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>"}}'
A.4.2 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>"}}'
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 default "<domain>" value is "sdn".
A.4.3 Acquire the controller uid for the controller backup
curl --noproxy controller_ip> --header
"X-Auth-Token:<auth_token>" --fail -ksS -L -f --request GET
--url "https://<controller_ip>:8443/sdn/v2.0/systems"
A.4.4 Perform the actual backup using the following cURL command
curl --noproxy controller_ip> --header
"X-Auth-Token:<auth_token>" --fail -ksS --request POST --url
"https://<controller_ip>:8443/sdn/v2.0/systems/<controller_uid>/action"
--data-binary "backup"
A.4.5 Verify Controller Status
curl --noproxy <controller_ip> --header
"X-Auth-Token:<auth_token>" --fail -ksS -L -f --request GET
--url "https:// <controller_ip>:8443/sdn/v2.0/system"
A.4 Backup and Restore Actions 119