There is no request body for this API.
{ "alerts": [ { "desc": "NEW_LEADER, ID: Id[value=c8f698b9-bfce-4c17-9e9c-3180033b1ad7]", "org": "TeamingManager", "sev": "INFO", "state": true, "system_uid": "669aa151-2790-4cb0-9656-75e9651893ee", "topic": "teaming", "ts": "2013-10-16T21:14:29.704Z", "uid": "2237dab8-c5e0-4a43-83ba-60b318741450" }, { "desc": "BECOME_MEMBER, ID: Id[value=669aa151-2790-4cb0-9656-75e9651893ee]", "org": "TeamingManager", "sev": "INFO", "state": true, "system_uid": "669aa151-2790-4cb0-9656-75e9651893ee", "topic": "teaming", "ts": "2013-10-16T21:14:29.717Z", "uid": "d5704bb5-3415-484c-94d3-d57d1d334b2a" } ] }
Normal: OK (200)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
List all alert topics filtered by the given origin:
There is no request body for this API.
{ "alert_topics": [ { "desc": "Alerts associated with license compliance", "org": "compliance-manager", "topic": "licensing" }, { "desc": "Alerts from the Controller", "org": "OF-Controller", "topic": "of_controller" }, { "desc": "Alerts associated with links", "org": "OF-Controller", "topic": "of_controller_link" }, { "desc": "Alerts associated with path diagnostic", "org": "OF-Controller", "topic": "of_controller_pathdiag" }, { "desc": "Alerts associated with controller teaming", "org": "Controller-teaming", "topic": "teaming" } ] }
Normal: OK (200)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
There is no request body for this API.
{ "alert_topic_listeners":[ { "uid":"cb0f4bf2-a8f5-4b06-8937-abfc79d33423", "app_id":"imc", "name":"IMC OpenFLow Listener", "callbacks":[ { "topics":[ "of_controller", "of_controller_link" ], "uri":"http://imc.h3c.com/sdn" } ] } ] }
Normal: OK (200)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Create an alert listener (including topic subscription):
{ "alert_topic_listener":{ "app_id":"imc", "name":"IMC OpenFLow Listener", "callbacks":[ { "topics":[ "of_controller", "of_controller_link" ], "uri":"http://imc.h3c.com/sdn" } ] } }
{ "alert_topic_listener":{ "uid":"cb0f4bf2-a8f5-4b06-8937-abfc79d33423", "app_id":"imc", "name":"IMC OpenFLow Listener", "callbacks":[ { "topics":[ "of_controller", "of_controller_link" ], "uri":"http://imc.h3c.com/sdn" } ] } }
Location header: http://<controller>/sdn/v2.0/alerts/listeners/{listener_uid}
Normal: Created (201)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Get details on an alert listener:
There is no request body for this API.
{ "alert_topic_listener":{ "uid":"cb0f4bf2-a8f5-4b06-8937-abfc79d33423", "app_id":"imc", "name":"IMC OpenFLow Listener", "callbacks":[ { "topics":[ "of_controller ", "of_controller_link" ], "uri":"http://imc.h3c.com/sdn" } ] } }
Normal: OK (200)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Update an alert listener (including changing topic subscription):
{ "alert_topic_listener":{ "uid":"cb0f4bf2-a8f5-4b06-8937-abfc79d33423", "app_id":"imc", "name":"IMC OpenFLow Listener", "callbacks":[ { "topics":[ "of_controller ", "of_controller_link" ], "uri":"http://imc.h3c.com/sdn" } ] } }
{ "alert_topic_listener":{ "uid":"cb0f4bf2-a8f5-4b06-8937-abfc79d33423", "app_id":"imc", "name":"IMC OpenFLow Listener", "callbacks":[ { "topics":[ "of_controller", "of_controller_link" ], "uri":"http://imc.h3c.com/sdn" } ] } }
Normal: OK (200)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)