HP VAN SDN Controller REST API Guide
8 "uri" : "http://imc.h3c.com/sdn"
9 } ]
10 }
11 }
Response codes
• Normal: OK (200)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Delete an alert listener
Sample request
Delete an alert listener:
DELETE /sdn/v2.0/alerts/listeners/{listener_uid}
There is no request body for this API.
Sample response
There is no response data for this API.
Response codes
• Normal: No Content (204)
• Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Northbound metering REST API examples
Applications
Sample request
Get all applications with persisted metering data currently on disk:
GET /sdn/v2.0/metrics/apps
Sample response
1 {"apps": [
2 {
3 "app_id": "com.hp.sdn.cloud"
4 "app_name": "HP VAN SDN Cloud Controller",
5 },
6 {
7 "app_id": "com.hp.sdn"
8 "app_name": "HP VAN SDN Controller",
9 }
10 ]}
Metrics
Sample request
Get all metrics registered by an application:
GET /sdn/v2.0/metrics/apps/{app_id}
Northbound metering REST API examples 45