added rest API mac traffic information (#8885)

* added asset management utils

* added rest API mac traffic information
This commit is contained in:
YellowMan 2025-01-13 17:56:27 +01:00 committed by GitHub
parent 60123b0217
commit 3969fc9d9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 109 additions and 0 deletions

View file

@ -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": [