MXS-3245: Document /v1/maxscale/ REST API responses
This commit is contained in:
@ -25,7 +25,7 @@ file locations, configuration options and version information.
|
|||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
"attributes": {
|
"attributes": {
|
||||||
"parameters": {
|
"parameters": { // Core MaxScale parameters
|
||||||
"libdir": "/usr/lib64/maxscale",
|
"libdir": "/usr/lib64/maxscale",
|
||||||
"datadir": "/var/lib/maxscale",
|
"datadir": "/var/lib/maxscale",
|
||||||
"process_datadir": "/var/lib/maxscale/data16218",
|
"process_datadir": "/var/lib/maxscale/data16218",
|
||||||
@ -58,11 +58,11 @@ file locations, configuration options and version information.
|
|||||||
"dump_last_statements": "never",
|
"dump_last_statements": "never",
|
||||||
"load_persisted_configs": false
|
"load_persisted_configs": false
|
||||||
},
|
},
|
||||||
"version": "2.3.6",
|
"version": "2.3.6", // The MaxScale version
|
||||||
"commit": "47158faf12c156775c39388652a77f8a8c542d28",
|
"commit": "47158faf12c156775c39388652a77f8a8c542d28", // Commit that MaxScale was built from
|
||||||
"started_at": "Thu, 04 Apr 2019 21:04:06 GMT",
|
"started_at": "Thu, 04 Apr 2019 21:04:06 GMT", // The time when MaxScale was started
|
||||||
"activated_at": "Thu, 04 Apr 2019 21:04:06 GMT",
|
"activated_at": "Thu, 04 Apr 2019 21:04:06 GMT", // The last time when the `passive` parameter was set to `false`
|
||||||
"uptime": 337
|
"uptime": 337 // How many seconds MaxScale has been running
|
||||||
},
|
},
|
||||||
"id": "maxscale",
|
"id": "maxscale",
|
||||||
"type": "maxscale"
|
"type": "maxscale"
|
||||||
@ -300,7 +300,7 @@ location where the log files are stored.
|
|||||||
},
|
},
|
||||||
"data": {
|
"data": {
|
||||||
"attributes": {
|
"attributes": {
|
||||||
"parameters": {
|
"parameters": { // Logging parameters
|
||||||
"highprecision": false,
|
"highprecision": false,
|
||||||
"maxlog": true,
|
"maxlog": true,
|
||||||
"syslog": true,
|
"syslog": true,
|
||||||
@ -315,8 +315,8 @@ location where the log files are stored.
|
|||||||
"log_debug": false,
|
"log_debug": false,
|
||||||
"log_to_shm": false
|
"log_to_shm": false
|
||||||
},
|
},
|
||||||
"log_file": "/home/markusjm/build/log/maxscale/maxscale.log",
|
"log_file": "/home/markusjm/build/log/maxscale/maxscale.log", // The file MaxScale is logging into if `maxlog` is enabled
|
||||||
"log_priorities": [
|
"log_priorities": [ // Active log priorities
|
||||||
"error",
|
"error",
|
||||||
"warning",
|
"warning",
|
||||||
"notice",
|
"notice",
|
||||||
@ -410,22 +410,22 @@ valid loaded module.
|
|||||||
"description": "Firewall Filter",
|
"description": "Firewall Filter",
|
||||||
"api": "filter",
|
"api": "filter",
|
||||||
"status": "GA",
|
"status": "GA",
|
||||||
"commands": [
|
"commands": [ // List of module commands
|
||||||
{
|
{
|
||||||
"id": "rules/reload",
|
"id": "rules/reload", // Name of the command
|
||||||
"type": "module_command",
|
"type": "module_command",
|
||||||
"links": {
|
"links": {
|
||||||
"self": "http://localhost:8989/v1/modules/dbfwfilter/rules/reload"
|
"self": "http://localhost:8989/v1/modules/dbfwfilter/rules/reload"
|
||||||
},
|
},
|
||||||
"attributes": {
|
"attributes": {
|
||||||
"method": "POST",
|
"method": "POST", // Whether POST or GET should be used to call this command
|
||||||
"arg_min": 1,
|
"arg_min": 1, // Minimum number of arguments
|
||||||
"arg_max": 2,
|
"arg_max": 2, // Maximum number of arguments
|
||||||
"parameters": [
|
"parameters": [ // Parameter types for the command
|
||||||
{
|
{
|
||||||
"description": "Filter to reload",
|
"description": "Filter to reload", // Parameter description
|
||||||
"type": "FILTER",
|
"type": "FILTER", // Value type
|
||||||
"required": true
|
"required": true // Whether the parameter is required
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Path to rule file",
|
"description": "Path to rule file",
|
||||||
@ -436,15 +436,15 @@ valid loaded module.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"parameters": [
|
"parameters": [ // Module parameters
|
||||||
{
|
{
|
||||||
"name": "rules",
|
"name": "rules", // Parameter name
|
||||||
"type": "path"
|
"type": "path" // Parameter type
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "log_match",
|
"name": "log_match",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
"default_value": "false"
|
"default_value": "false" // Default value of the parameter
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "log_no_match",
|
"name": "log_no_match",
|
||||||
@ -455,7 +455,7 @@ valid loaded module.
|
|||||||
"name": "action",
|
"name": "action",
|
||||||
"type": "enum",
|
"type": "enum",
|
||||||
"default_value": "block",
|
"default_value": "block",
|
||||||
"enum_values": [
|
"enum_values": [ // Accepted enumeration values
|
||||||
"allow",
|
"allow",
|
||||||
"block",
|
"block",
|
||||||
"ignore"
|
"ignore"
|
||||||
@ -563,7 +563,7 @@ Command with output:
|
|||||||
"links": {
|
"links": {
|
||||||
"self": "http://localhost:8989/v1/maxscale/modules/dbfwfilter/rules/json"
|
"self": "http://localhost:8989/v1/maxscale/modules/dbfwfilter/rules/json"
|
||||||
},
|
},
|
||||||
"meta": [
|
"meta": [ // Output of module command (module dependent)
|
||||||
{
|
{
|
||||||
"name": "test3",
|
"name": "test3",
|
||||||
"type": "COLUMN",
|
"type": "COLUMN",
|
||||||
|
Reference in New Issue
Block a user