
Example 8 Displaying the application IDs
The metrics/apps command will display the application IDs for applications – including the
controller itself – that have persisted metrics to disk. In this example, only the base controller
itself has persisted metrics to disk.
Curl equivalent command
curl --noproxy
<controller_ip>
-X GET --header
"X-Auth-Token:
<token>
" --fail -ksSfL --url
"https://
<controller_ip>
:8443/sdn/v2.0/metrics/apps"
Curl output
{"apps":[{"app_id":"com.hp.sdn",
"app_name":"HP VAN SDN Controller"}]}
Result
The application ID for the controller is
com.hp.sdn
. It can be plugged into other
metric REST API calls that require an
{app_id}
value in their URL.
214
Examples of Metrics