API reference
Nodes
Email and database nodes paired with this server.
List nodes
GET/api/v1/nodes
Responses
- 200 OK
Body
Field Type itemsarray of map of any panel_hostnamestring panel_versionstring - 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 500 Internal Server Error: internal
Pair a node
POST/api/v1/nodes
Request body
| Field | Type |
|---|---|
code | string |
name | string |
Responses
- 201 Created
Body
map of any
- 400 Bad Request: validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
Remove a node
DELETE/api/v1/nodes/{nid}
Parameters
| Name | In |
|---|---|
nid | path |
Responses
- 204 Done, no content
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 409 Conflict: in-use
- 500 Internal Server Error: internal
Update a node
PUT/api/v1/nodes/{nid}
Parameters
| Name | In |
|---|---|
nid | path |
Request body
| Field | Type |
|---|---|
is_default | boolean |
name | string |
public_ip | string |
Responses
- 200 OK
Body
Field Type nodeStoreNode - 400 Bad Request: validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 500 Internal Server Error: internal
Check a node's connection and services
POST/api/v1/nodes/{nid}/check
Parameters
| Name | In |
|---|---|
nid | path |
Responses
- 200 OK
Body
Field Type nodeStoreNode - 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 500 Internal Server Error: internal
Get a node's firewall
GET/api/v1/nodes/{nid}/firewall
Parameters
| Name | In |
|---|---|
nid | path |
server | query |
Responses
- 200 OK
Body
map of any
- 400 Bad Request: rejected
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 500 Internal Server Error: internal
Open or close ports on a node
PUT/api/v1/nodes/{nid}/firewall/ports
Parameters
| Name | In |
|---|---|
nid | path |
server | query |
Request body
| Field | Type |
|---|---|
open | boolean |
port | integer |
protocol | string |
Responses
- 200 OK
Body
map of any
- 400 Bad Request: rejected
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 500 Internal Server Error: internal