NPG 1.0.0
NPG server API
List all projects
Payload
Name |
Title |
Type |
Format |
Default |
Description |
Message Payload |
|
|
|
|
|
Project list
Payload
Name |
Title |
Type |
Format |
Default |
Description |
Message Payload |
|
array
(object)
|
|
|
|
id |
|
string
|
uuid |
|
|
name (Required) |
|
string
|
|
|
|
topology |
|
object
|
|
|
|
backends |
|
array
(object)
|
|
|
|
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
nodes |
|
array
(object)
|
|
|
|
backend (Required) |
|
object
|
|
|
|
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
name (Required) |
|
string
|
|
|
|
image (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
links |
|
array
(object)
|
|
|
|
node (Required) |
|
object
|
|
|
|
backend (Required) |
|
object
|
|
|
|
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
name (Required) |
|
string
|
|
|
|
image (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
bridge (Required) |
|
object
|
|
|
|
name (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
up |
|
object
|
|
|
|
bw |
|
integer
|
|
|
|
delay |
|
integer
|
|
|
|
down |
|
object
|
|
|
|
bw |
|
integer
|
|
|
|
delay |
|
integer
|
|
|
|
Example of payload (generated)
[
{
"id": "string",
"name": "string",
"topology": {
"backends": [
{
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
}
],
"nodes": [
{
"backend": {
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
},
"name": "string",
"image": "string",
"x": 0,
"y": 0
}
],
"links": [
{
"node": {
"backend": {
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
},
"name": "string",
"image": "string",
"x": 0,
"y": 0
},
"bridge": {
"name": "string",
"x": 0,
"y": 0
},
"up": {
"bw": 0,
"delay": 0
},
"down": {
"bw": 0,
"delay": 0
}
}
]
}
}
]
Add a new project
Payload
Name |
Title |
Type |
Format |
Default |
Description |
id |
|
string
|
uuid |
|
|
name (Required) |
|
string
|
|
|
|
topology |
|
object
|
|
|
|
backends |
|
array
(object)
|
|
|
|
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
nodes |
|
array
(object)
|
|
|
|
backend (Required) |
|
object
|
|
|
|
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
name (Required) |
|
string
|
|
|
|
image (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
links |
|
array
(object)
|
|
|
|
node (Required) |
|
object
|
|
|
|
backend (Required) |
|
object
|
|
|
|
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
name (Required) |
|
string
|
|
|
|
image (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
bridge (Required) |
|
object
|
|
|
|
name (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
up |
|
object
|
|
|
|
bw |
|
integer
|
|
|
|
delay |
|
integer
|
|
|
|
down |
|
object
|
|
|
|
bw |
|
integer
|
|
|
|
delay |
|
integer
|
|
|
|
Example of payload (generated)
{
"id": "string",
"name": "string",
"topology": {
"backends": [
{
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
}
],
"nodes": [
{
"backend": {
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
},
"name": "string",
"image": "string",
"x": 0,
"y": 0
}
],
"links": [
{
"node": {
"backend": {
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
},
"name": "string",
"image": "string",
"x": 0,
"y": 0
},
"bridge": {
"name": "string",
"x": 0,
"y": 0
},
"up": {
"bw": 0,
"delay": 0
},
"down": {
"bw": 0,
"delay": 0
}
}
]
}
}
Result of project addition
Payload
Name |
Title |
Type |
Format |
Default |
Description |
code (Required) |
|
integer
|
|
|
|
message |
|
string
|
|
|
|
Example of payload (generated)
{
"code": 0,
"message": "string"
}
Load a project
Payload
Name |
Title |
Type |
Format |
Default |
Description |
id |
|
string
|
uuid |
|
|
Example of payload (generated)
{
"id": "string"
}
Loaded project information
Payload
Name |
Title |
Type |
Format |
Default |
Description |
id |
|
string
|
uuid |
|
|
name (Required) |
|
string
|
|
|
|
topology |
|
object
|
|
|
|
backends |
|
array
(object)
|
|
|
|
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
nodes |
|
array
(object)
|
|
|
|
backend (Required) |
|
object
|
|
|
|
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
name (Required) |
|
string
|
|
|
|
image (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
links |
|
array
(object)
|
|
|
|
node (Required) |
|
object
|
|
|
|
backend (Required) |
|
object
|
|
|
|
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
name (Required) |
|
string
|
|
|
|
image (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
bridge (Required) |
|
object
|
|
|
|
name (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
up |
|
object
|
|
|
|
bw |
|
integer
|
|
|
|
delay |
|
integer
|
|
|
|
down |
|
object
|
|
|
|
bw |
|
integer
|
|
|
|
delay |
|
integer
|
|
|
|
Example of payload (generated)
{
"id": "string",
"name": "string",
"topology": {
"backends": [
{
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
}
],
"nodes": [
{
"backend": {
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
},
"name": "string",
"image": "string",
"x": 0,
"y": 0
}
],
"links": [
{
"node": {
"backend": {
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
},
"name": "string",
"image": "string",
"x": 0,
"y": 0
},
"bridge": {
"name": "string",
"x": 0,
"y": 0
},
"up": {
"bw": 0,
"delay": 0
},
"down": {
"bw": 0,
"delay": 0
}
}
]
}
}
Delete a project
Payload
Name |
Title |
Type |
Format |
Default |
Description |
id |
|
string
|
uuid |
|
|
Example of payload (generated)
{
"id": "string"
}
Result of project deletion
Payload
Name |
Title |
Type |
Format |
Default |
Description |
code (Required) |
|
integer
|
|
|
|
message |
|
string
|
|
|
|
Example of payload (generated)
{
"code": 0,
"message": "string"
}
Get server version
Payload
Name |
Title |
Type |
Format |
Default |
Description |
Message Payload |
|
|
|
|
|
Server version
Payload
Name |
Title |
Type |
Format |
Default |
Description |
Message Payload |
|
integer
|
|
|
|
Example of payload (generated)
""
List backend servers
Payload
Name |
Title |
Type |
Format |
Default |
Description |
Message Payload |
|
|
|
|
|
Backend server list
Payload
Name |
Title |
Type |
Format |
Default |
Description |
Message Payload |
|
array
(object)
|
|
|
|
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
Example of payload (generated)
[
{
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
}
]
List terminal
Payload
Name |
Title |
Type |
Format |
Default |
Description |
Message Payload |
|
|
|
|
|
Terminal list
Payload
Name |
Title |
Type |
Format |
Default |
Description |
Message Payload |
|
array
(object)
|
|
|
|
id (Required) |
|
string
|
|
|
|
backend |
|
string
|
|
|
|
container |
|
string
|
|
|
|
process |
|
string
|
|
|
|
Example of payload (generated)
[
{
"id": "string",
"backend": "string",
"container": "string",
"process": "string"
}
]
Add a new terminal
Payload
Name |
Title |
Type |
Format |
Default |
Description |
cols |
|
integer
|
|
|
|
rows |
|
integer
|
|
|
|
backend |
|
string
|
|
|
|
container |
|
string
|
|
|
|
Example of payload (generated)
{
"cols": 0,
"rows": 0,
"backend": "string",
"container": "string"
}
Added a new terminal
Payload
Name |
Title |
Type |
Format |
Default |
Description |
id (Required) |
|
string
|
|
|
|
backend |
|
string
|
|
|
|
container |
|
string
|
|
|
|
process |
|
string
|
|
|
|
Example of payload (generated)
{
"id": "string",
"backend": "string",
"container": "string",
"process": "string"
}
Load a terminal
Payload
Name |
Title |
Type |
Format |
Default |
Description |
id |
|
string
|
|
|
|
Example of payload (generated)
{
"id": "string"
}
Loaded terminal information
Payload
Name |
Title |
Type |
Format |
Default |
Description |
id (Required) |
|
string
|
|
|
|
backend |
|
string
|
|
|
|
container |
|
string
|
|
|
|
process |
|
string
|
|
|
|
Example of payload (generated)
{
"id": "string",
"backend": "string",
"container": "string",
"process": "string"
}
Delete a terminal
Payload
Name |
Title |
Type |
Format |
Default |
Description |
id |
|
string
|
|
|
|
Example of payload (generated)
{
"id": "string"
}
Result of terminal deletion
Payload
Name |
Title |
Type |
Format |
Default |
Description |
code (Required) |
|
integer
|
|
|
|
message |
|
string
|
|
|
|
Example of payload (generated)
{
"code": 0,
"message": "string"
}
project
Name |
Title |
Type |
Format |
Default |
Description |
id |
|
string
|
uuid |
|
|
name (Required) |
|
string
|
|
|
|
topology |
|
object
|
|
|
|
backends |
|
array
(object)
|
|
|
|
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
nodes |
|
array
(object)
|
|
|
|
backend (Required) |
|
object
|
|
|
|
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
name (Required) |
|
string
|
|
|
|
image (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
links |
|
array
(object)
|
|
|
|
node (Required) |
|
object
|
|
|
|
backend (Required) |
|
object
|
|
|
|
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
name (Required) |
|
string
|
|
|
|
image (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
bridge (Required) |
|
object
|
|
|
|
name (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
up |
|
object
|
|
|
|
bw |
|
integer
|
|
|
|
delay |
|
integer
|
|
|
|
down |
|
object
|
|
|
|
bw |
|
integer
|
|
|
|
delay |
|
integer
|
|
|
|
Example (generated)
{
"id": "string",
"name": "string",
"topology": {
"backends": [
{
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
}
],
"nodes": [
{
"backend": {
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
},
"name": "string",
"image": "string",
"x": 0,
"y": 0
}
],
"links": [
{
"node": {
"backend": {
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
},
"name": "string",
"image": "string",
"x": 0,
"y": 0
},
"bridge": {
"name": "string",
"x": 0,
"y": 0
},
"up": {
"bw": 0,
"delay": 0
},
"down": {
"bw": 0,
"delay": 0
}
}
]
}
}
termreq
Name |
Title |
Type |
Format |
Default |
Description |
cols |
|
integer
|
|
|
|
rows |
|
integer
|
|
|
|
backend |
|
string
|
|
|
|
container |
|
string
|
|
|
|
Example (generated)
{
"cols": 0,
"rows": 0,
"backend": "string",
"container": "string"
}
term
Name |
Title |
Type |
Format |
Default |
Description |
id (Required) |
|
string
|
|
|
|
backend |
|
string
|
|
|
|
container |
|
string
|
|
|
|
process |
|
string
|
|
|
|
Example (generated)
{
"id": "string",
"backend": "string",
"container": "string",
"process": "string"
}
backend
Name |
Title |
Type |
Format |
Default |
Description |
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
Example (generated)
{
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
}
node
Name |
Title |
Type |
Format |
Default |
Description |
backend (Required) |
|
object
|
|
|
|
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
name (Required) |
|
string
|
|
|
|
image (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
Example (generated)
{
"backend": {
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
},
"name": "string",
"image": "string",
"x": 0,
"y": 0
}
bridge
Name |
Title |
Type |
Format |
Default |
Description |
name (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
Example (generated)
{
"name": "string",
"x": 0,
"y": 0
}
netem
Name |
Title |
Type |
Format |
Default |
Description |
bw |
|
integer
|
|
|
|
delay |
|
integer
|
|
|
|
Example (generated)
{
"bw": 0,
"delay": 0
}
link
Name |
Title |
Type |
Format |
Default |
Description |
node (Required) |
|
object
|
|
|
|
backend (Required) |
|
object
|
|
|
|
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
name (Required) |
|
string
|
|
|
|
image (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
bridge (Required) |
|
object
|
|
|
|
name (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
up |
|
object
|
|
|
|
bw |
|
integer
|
|
|
|
delay |
|
integer
|
|
|
|
down |
|
object
|
|
|
|
bw |
|
integer
|
|
|
|
delay |
|
integer
|
|
|
|
Example (generated)
{
"node": {
"backend": {
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
},
"name": "string",
"image": "string",
"x": 0,
"y": 0
},
"bridge": {
"name": "string",
"x": 0,
"y": 0
},
"up": {
"bw": 0,
"delay": 0
},
"down": {
"bw": 0,
"delay": 0
}
}
topology
Name |
Title |
Type |
Format |
Default |
Description |
backends |
|
array
(object)
|
|
|
|
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
nodes |
|
array
(object)
|
|
|
|
backend (Required) |
|
object
|
|
|
|
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
name (Required) |
|
string
|
|
|
|
image (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
links |
|
array
(object)
|
|
|
|
node (Required) |
|
object
|
|
|
|
backend (Required) |
|
object
|
|
|
|
host (Required) |
|
string
|
|
|
|
os |
|
string
|
|
|
|
cpu |
|
string
|
|
|
CPU type and number of cores |
cpu_usage |
|
string
|
|
|
CPU usage in percent |
mem |
|
string
|
|
|
total memory in MB |
mem_usage |
|
string
|
|
|
memory usage in percent |
docker_version |
|
string
|
|
|
|
uptime |
|
string
|
|
|
|
name (Required) |
|
string
|
|
|
|
image (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
bridge (Required) |
|
object
|
|
|
|
name (Required) |
|
string
|
|
|
|
x |
|
integer
|
|
|
|
y |
|
integer
|
|
|
|
up |
|
object
|
|
|
|
bw |
|
integer
|
|
|
|
delay |
|
integer
|
|
|
|
down |
|
object
|
|
|
|
bw |
|
integer
|
|
|
|
delay |
|
integer
|
|
|
|
Example (generated)
{
"backends": [
{
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
}
],
"nodes": [
{
"backend": {
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
},
"name": "string",
"image": "string",
"x": 0,
"y": 0
}
],
"links": [
{
"node": {
"backend": {
"host": "string",
"os": "string",
"cpu": "string",
"cpu_usage": "string",
"mem": "string",
"mem_usage": "string",
"docker_version": "string",
"uptime": "string"
},
"name": "string",
"image": "string",
"x": 0,
"y": 0
},
"bridge": {
"name": "string",
"x": 0,
"y": 0
},
"up": {
"bw": 0,
"delay": 0
},
"down": {
"bw": 0,
"delay": 0
}
}
]
}
result
Name |
Title |
Type |
Format |
Default |
Description |
code (Required) |
|
integer
|
|
|
|
message |
|
string
|
|
|
|
Example (generated)
{
"code": 0,
"message": "string"
}