mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
added rest API mac traffic information (#8885)
* added asset management utils * added rest API mac traffic information
This commit is contained in:
parent
60123b0217
commit
3969fc9d9e
2 changed files with 109 additions and 0 deletions
|
|
@ -11595,6 +11595,46 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/lua/rest/v2/get/mac/data.lua":{
|
||||
"get":{
|
||||
"tags": [
|
||||
"Macs"
|
||||
],
|
||||
"summary": "Get Macs traffic information",
|
||||
"operationId": "get_macs_traffic_information",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "ifid",
|
||||
"in": "query",
|
||||
"description": "Interface identifier",
|
||||
"required": true,
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
{
|
||||
"name": "mac",
|
||||
"in": "query",
|
||||
"description": "Mac Address to get information",
|
||||
"required": false,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"0": {
|
||||
"description": "OK"
|
||||
},
|
||||
"-1": {
|
||||
"description": "NOT_FOUND"
|
||||
},
|
||||
"-2": {
|
||||
"description": "INVALID_INTERFACE"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/lua/rest/v2/get/mac/alert/list.lua": {
|
||||
"get": {
|
||||
"tags": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue