nodes
Requests
HTTP verb | Endpoint | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
Getting the list of nodes
Request
Name | Type | Description |
---|---|---|
|
|
Filter by field values. |
|
|
List of fields to output. Available fields for output: name, fullName, ipAddress, site, server, isSystem, type, dtStart, upTimeSec, status, maxLogLevel, roles. |
|
|
Offset in the list of resources to be issued. |
|
|
The maximum number of resources in the list. |
|
|
The sort order of the resources in the list. |
|
|
Conversion to flat form of composite fields. |
GET /rest/v1/master/nodes?offset=38&limit=4 HTTP/1.1
Response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
[
{
"dtStart": "2023-03-22T08:06:18Z",
"fullName": "testserv@192.168.0.112",
"ipAddress": "192.168.0.112",
"isSystem": true,
"maxLogLevel": "info",
"name": "testserv",
"server": "testserv",
"site": "main_site",
"status": "active",
"type": "supervisor",
"upTimeSec": 9487
},
{
"dtStart": "2023-03-22T08:07:13Z",
"fullName": "vmail1@192.168.0.112",
"ipAddress": "192.168.0.112",
"maxLogLevel": "info",
"name": "vmail1",
"roles": [
"voicemail"
],
"server": "testserv",
"site": "main_site",
"status": "active",
"type": "role",
"upTimeSec": 9432
},
{
"dtStart": "2023-03-22T08:37:14Z",
"fullName": "ws1@192.168.0.112",
"ipAddress": "192.168.0.112",
"maxLogLevel": "info",
"name": "ws1",
"roles": [
"webserver"
],
"server": "testserv",
"site": "main_site",
"srvIdx": 2525,
"status": "active",
"type": "role",
"upTimeSec": 7631
},
{
"dtStart": "2023-03-22T08:06:41Z",
"fullName": "wssubscr1@192.168.0.112",
"ipAddress": "192.168.0.112",
"maxLogLevel": "info",
"name": "wssubscr1",
"roles": [
"mnesia",
"wssubscr"
],
"server": "testserv",
"site": "main_site",
"status": "active",
"type": "role",
"upTimeSec": 9464
}
]
Getting node data
Request
Name | Type | Description |
---|---|---|
|
|
A list of fields to output. |
|
|
Conversion to flat form of composite fields. |
GET /rest/v1/master/node/ws1 HTTP/1.1
Response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"dtStart": "2023-03-22T08:37:14Z",
"fullName": "ws1@192.168.0.112",
"ipAddress": "192.168.0.112",
"maxLogLevel": "info",
"name": "ws1",
"roles": [
"webserver"
],
"server": "testserv",
"site": "main_site",
"srvIdx": 2525,
"status": "active",
"type": "role",
"upTimeSec": 7631
}
Changing node properties
Fields prohibited for modification: id
Request
PATCH /rest/v1/master/nodes/ws1 HTTP/1.1
Content-Type: application/json; charset=utf-8
{
"maxLogLevel": "debug"
}
Response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"dtStart": "2023-03-22T08:37:14Z",
"fullName": "ws1@192.168.0.112",
"ipAddress": "192.168.0.112",
"maxLogLevel": "debug",
"name": "ws1",
"roles": [
"webserver"
],
"server": "testserv",
"site": "main_site",
"srvIdx": 2525,
"status": "active",
"type": "role",
"upTimeSec": 7631
}
Entity fields
Field | Description |
---|---|
|
The short name of the node. Can be used as an identifier. |
|
The full name of the node. Can be used as an identifier. |
|
IP-node/server address |
|
The server name from the configuration. |
|
The site to which the server refers. |
|
An indication of the systematicity of the node. |
|
Node Type:
* |
|
Maximum logging level set.
Options:
* Important! When logging is turned off, some of the entries in the logfile will still be placed. The point is that not every entry is provided with a level indication. |
|
Node Status:
* |
|
Time of startup or last restart in time zone UTC. |
|
Uptime. Operating time without rebooting in seconds. |
|
The node index from the configuration assigned to the microservice (role). |