enable/disable sentinel modules and options for minipot protocols
Blocked by turris/foris-controller/foris-controller-sentinel-module!7 (merged)
Please see on below picure. Design may change.
{
"sentinel_modules": {
"type": "object",
"description": "Configurable sentinel modules",
"properties": {
"minipot": {
"type": "object",
"properties": {
"enabled": {"type": "boolean"},
"installed": {"type": "boolean"},
"protocols": {
"type": "object",
"description": "Enabled minipot protocols",
"properties": {
"ftp": {"type": "boolean"},
"http": {"type": "boolean"},
"smtp": {"type": "boolean"},
"telnet": {"type": "boolean"}
},
"additionalProperties": false,
"required": ["ftp", "http", "smtp", "telnet"]
},
"additionalProperties": false,
"required": ["enabled", "protocols"]
},
"nikola": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"installed": {
"type": "boolean"
}
},
"additionalProperties": false,
"required": ["enabled", "installed"]
},
"survey":{
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"installed": {
"type": "boolean"
}
},
"additionalProperties": false,
"required": ["enabled", "installed"]
}
},
"additionalProperties": false,
"required": ["minipot", "nikola", "survey"]
}
Above definition is for get_settings
API action, just as an example. Data for protocols and modules are basically same in update_settings
.
Edited by Filip Hron