HP VAN SDN Controller Administrator Guide v3

{"app": {"uid":"com.geewiz", "name":"GeeWiz", "version":"1.0.0",
"desc":"Gee Wiz event production", "vendor":"Gee Wiz, Inc.",
"state":"ACTIVE", "deployed":"2014-02-26T01:00:58:111Z"}}
A.3.6 Upgrade an application
curl --noproxy <controller_ip> --header X-Auth-Token:<auth_token>
-ksSL --request POST--url
https://<controller_ip>:8443/sdn/v2.0/apps/<app_id>/action -d upgrade
Example of upgrading an application
curl --noproxy 15.255.125.107 --header X-Auth-Token:<auth_token> -ksSL
--request POST--url
https://15.255.125.107:8443/sdn/v2.0/apps/com.geewiz/action -d upgrade
Example output:
{"app": {"uid":"com.geewiz", "name":"GeeWiz", "version":"2.0.0",
"desc":"Gee Wiz event production", "vendor":"Gee Wiz, Inc.",
"state":"ACTIVE", "deployed":"2014-02-26T01:00:58:111Z"}}
A.3.7 Disable an application
curl --noproxy <controller_ip> --header X-Auth-Token:<auth_token>
-ksSL --request POST--url
https://<controller_ip>:8443/sdn/v2.0/apps/<app_id>/action -d disable
Example of disabling an application
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 disable
Example output:
{"app": {"uid":"com.geewiz", "name":"GeeWiz", "version":"2.0.0",
"desc":"Gee Wiz event production", "vendor":"Gee Wiz, Inc.",
"state":"DISABLED", "deployed":"2014-02-26T01:00:58:111Z"}}
A.3.8 Enable an application
curl --noproxy <controller_ip> --header X-Auth-Token:<auth_token>
-ksSL --request POST--url
https://<controller_ip>:8443/sdn/v2.0/apps/<app_id>/action -d enable
Example of disabling an application
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 enable
Example output:
{"app": {"uid":"com.geewiz", "name":"GeeWiz", "version":"2.0.0",
"desc":"Gee Wiz event production", "vendor":"Gee Wiz, Inc.",
"state":"ACTIVE", "deployed":"2014-02-26T01:00:58:111Z"}}
A.3.9 Remove a staged application
This curl request is used to remove a newly uploaded application before it is installed or upgraded.
It has no output.
curl --noproxy <controller_ip> --header X-Auth-Token:<auth_token>
-ksSL --request POST--url
https://<controller_ip>:8443/sdn/v2.0/apps/<app_id>/action -d cancel
Example of removing a staged application
118 cURL Commands