mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Update nedge API doc
This commit is contained in:
parent
0eac289ecd
commit
6d8b6e74e9
1 changed files with 93 additions and 0 deletions
|
|
@ -10,6 +10,10 @@
|
|||
"name": "Interfaces",
|
||||
"description": "Everything about interfaces"
|
||||
},
|
||||
{
|
||||
"name": "Users",
|
||||
"description": "Everything about nEdge users"
|
||||
},
|
||||
{
|
||||
"name": "Policy",
|
||||
"description": "Traffic enforcement policies"
|
||||
|
|
@ -43,6 +47,72 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/lua/pro/rest/v2/get/nedge/gateways/status.lua": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Interfaces"
|
||||
],
|
||||
"summary": "Get gateways status information",
|
||||
"description": "Read information about gateways",
|
||||
"operationId": "get_nedge_gateways_status",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"parameters": [
|
||||
],
|
||||
"responses": {
|
||||
"0": {
|
||||
"description": "OK"
|
||||
},
|
||||
"-3": {
|
||||
"description": "NOT_GRANTED"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/lua/pro/rest/v2/set/nedge/interface/state.lua": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"Policy"
|
||||
],
|
||||
"summary": "Enable or disable a WAN interface",
|
||||
"description": "Set the state (enabled or disabled) of a WAN interface",
|
||||
"operationId": "set_nedge_interface_state",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "interface",
|
||||
"in": "formData",
|
||||
"description": "WAN interface name",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "enabled",
|
||||
"in": "formData",
|
||||
"description": "New interface enable state: 'true' or 'false'",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"0": {
|
||||
"description": "OK"
|
||||
},
|
||||
"-5": {
|
||||
"description": "INVALID_ARGUMENTS"
|
||||
},
|
||||
"-6": {
|
||||
"description": "INTERNAL_ERROR"
|
||||
},
|
||||
"-7": {
|
||||
"description": "BAD_FORMAT"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/lua/pro/rest/v2/get/nedge/physical/interface/data.lua": {
|
||||
"get": {
|
||||
"tags": [
|
||||
|
|
@ -100,6 +170,29 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/lua/pro/rest/v2/get/nedge/gateways/status.lua": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Users"
|
||||
],
|
||||
"summary": "Get users stats",
|
||||
"description": "Read traffic stats about users",
|
||||
"operationId": "get_nedge_users_status",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"parameters": [
|
||||
],
|
||||
"responses": {
|
||||
"0": {
|
||||
"description": "OK"
|
||||
},
|
||||
"-3": {
|
||||
"description": "NOT_GRANTED"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/lua/pro/rest/v2/get/nedge/policy/default.lua": {
|
||||
"get": {
|
||||
"tags": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue