...
Code Block |
---|
POST /restconf/operations/data-provider:get-entity { "filter":[], "sortorder":[{ "property":"timeStamp", "sortorder":"descending" }, { "property":"nodeName", "sortorder":"ascending" }], "pagination":{ "size":20, "page":1 } } Response: { "pagination":{ "size":20, "page":1, "total": 3 }, "data": [ { "_id": "Sim2230/LP-MWPS-TTP-RADIO/signalLost", "nodeName": "Sim2230", "counter": "4", "timeStamp": "2017-01-01T03:00:00.0Z", "objectId": "LP-MWPS-TTP-RADIO", "problem": "signalLost", "severity": "Major", "type": "ProblemNotificationXml" }, { "_id": "Sim2231/LP-MWPS-TTP-RADIO/rslIsExceeded", "nodeName": "Sim2231", "counter": "3", "timeStamp": "2017-01-01T02:00:00.0Z", "objectId": "LP-MWPS-TTP-RADIO", "problem": "rslIsExceeded", "severity": "Critical", "type": "ProblemNotificationXml" }, { "_id": "Sim2230/LP-MWPS-TTP-RADIO/rslIsExceeded", "nodeName": "Sim2230", "counter": "2", "timeStamp": "2017-01-01T01:00:00.0Z", "objectId": "LP-MWPS-TTP-RADIO", "problem": "rslIsExceeded", "severity": "Critical", "type": "ProblemNotificationXml" } ] } |
Entities
NetworkElementConnection
...
Code Block |
---|
{
"id": "safnoincaosnf",
"node-id": "sim2",
"host": "10.20.5.2",
"port": 12600,
"status": "connected",
"core-model-capability":"2017-03-20",
"device-type":"wireless transport",
"node-details": {
"available-capabilites": [
{
"capability-origin": "device-advertised",
"capability": "urn:ietf:params:netconf:base:1.0"
}
],
"unavailable-capabilities": [
{
"capability": "(urn:ietf:params:xml:ns:yang:ietf-system?revision=2014-08-06)ietf-system",
"failure-reason": "unable-to-resolve"
}
]
}
} |
create:
Code Block |
---|
POST /restconf/operations/data-provider:create-network-element-connection
{
"input": {
"id": "safnoincaosnf",
"node-id": "sim2",
"host": "10.20.5.2",
"port": 12600,
"username":"user",
"password":"password",
"status": "connected",
"core-model-capability":"2017-03-20",
"device-type":"wireless transport",
}
} |
NetworkElementConnectionLog
...