...
Code Block |
---|
# no properties specified, all data is returned, this will have some common data structures and some specific to the node / model # GET /omk/opCharts/v2/nodes/UUID1 { "uuid": "$UUID1", "name": "node1" "configuration": { ... data from this nodes configuration section ... }, "summary": { ... data from this nodes summary ... }, "cluster_id" : { ... uuid of which opHA server the node belongs to} ... } # properties=["configuration.services", "uuid", "catchall.data.last_poll", "catchall.data.nodestatus"] # GET /omk/opCharts/v2/nodes/UUID1?properties=["configuration.services", "uuid", "catchall.data.last_poll", "catchall.data.nodestatus"] { "catchall": { "data": { "last_poll": 1572835884.17908, "nodestatus": "degraded" } }, "configuration": { "services": [ "http_server", "nmis cgi", "port80" ] }, "uuid": "44406ddf-8424-4f01-8314-9606911e5a05" } |
Show Interface (Get)
GET /nodes/#uuid/interfaces/#index
Retrieves the specified node interface object (hash) and returns all known info about it (so it may be large).
Successful Response
Code Block |
---|
# GET /omk/opCharts/v2/nodes/UUID1/interfaces/IFINDEX
{
"@nodes_interface_url": "/en/omk/opCharts/nodes/NODEUUID/resources/interface/indicies/10",
"info": {
"Description": "Connection to ...",
"collect": "true",
"event": "true",
"ifAdminStatus": "up",
"ifDescr": "Tunnel100",
"ifHighSpeed": 0,
"ifIndex": 10,
"ifLastChange": "0:00:25",
"ifLastChangeSec": 25,
"ifOperStatus": "up",
"ifPhysAddress": "",
"ifSpeed": 9000,
"ifType": "tunnel",
"index": 10,
"interface": "tunnel100",
"ip": [
{
"ipAdEntAddr": "...",
"ipAdEntNetMask": "...",
"ipSubnet": "...",
"ipSubnetBits": 30
}
],
"ipAdEntAddr1": "...",
"ipAdEntNetMask1": "...",
"ipSubnet1": "...",
"ipSubnetBits1": 30,
"nocollect": "Collecting: Collection Policy",
"real": "true",
"setlimits": "normal",
"threshold": "true"
},
"name": "Eth1",
"node": {
"name": "nodeNAME",
"uuid": "NODEUUID"
},
"status": {
"discards_out": -1,
"errors_in": -1,
"util_in": 0,
"util_out": 0.45
}
}
|