HP VAN SDN Controller REST API Guide

Config/{component}
List config for a given component
Sample request
Get configuration for the "com.hp.sdn.net" component:
GET /sdn/v2.0/configs/com.hp.sdn.adm.alert.impl.AlertManager
There is no request body for this API.
Sample response
{
"config": {
"com.hp.sdn.adm.alert.impl.AlertManager": {
"trim.alert.age": {
"def_val": "14",
"desc": "Days an alert remains in storage (1 - 31)",
"val": "14"
},
"trim.enabled": {
"def_val": "true",
"desc": "Allow trim operation (true/false)",
"val": "true"
},
"trim.frequency": {
"def_val": "24",
"desc": "Frequency in hours of trim operations (8 - 168)",
"val": "24"
}
}
}
}
Response codes
Normal: OK (200)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Update (partial) config for a given component
Sample request
Update configuration for the "com.hp.sdn.adm.alert.impl.AlertManager" component:
PUT /sdn/v2.0/configs/com.hp.sdn.adm.alert.impl.AlertManager
{"config":{"trim.frequency":"12"}}
Sample response
{
"config": {
"com.hp.sdn.adm.alert.impl.AlertManager": {
"trim.alert.age": {
"def_val": "14",
"desc": "Days an alert remains in storage (1 - 31)",
"val": "14"
},
"trim.enabled": {
"def_val": "true",
"desc": "Allow trim operation (true/false)",
Config 23