API v2: Poolsยถ
Pools serve grouping purposes for the server objects based on the same protocol to be managed within other objects (for example, accounts) as one server.
Data Structuresยถ
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Read-only object identifier. Requires the following rights on object type |
|
string |
yes |
Unique poolโs name |
|
string |
no |
|
|
object-array |
Read-only; expensive to use; JSON object array containing |
|
|
string-array |
Read-only; hidden; expensive to use |
|
|
string-array |
Read-only; hidden; expensive to use |
|
|
string |
Read-only; expensive to use. |
|
|
string-array |
Read-only. List of rights the subject has to this object. |
|
|
datetime |
Read-only |
|
|
datetime |
Read-only |
|
|
boolean |
Read-only |
|
|
boolean |
Read-only; expensive to use; if |
|
|
boolean |
Read-only; expensive to use; if |
Retrieve Available Attributes of the PoolModelยถ
Request
Method |
|
Path |
|
To check allowed methods, available URL parameters and possible responses please refer to the API Overview section.
Refer to the Batch operations topic to create nested requests for operating on the Pool objects.
Get Pools Listยถ
Request
Method |
|
Path |
|
Example Request
GET /api/v2/pool
Response
{
"result": "success",
"pool": [
{
"id": "1232678819172646913",
"name": "Linux servers",
"description": "Example Linux pool",
"created_at": "2022-10-20 02:01:38.373501-07",
"modified_at": "2022-10-20 02:01:38.373501-07",
"servers": [
"1202678819172646913"
]
},
{
"id": "41232678819172646914",
"name": "Windows servers",
"description": "Example Windows pool",
"created_at": "2022-10-20 02:01:38.376251-07",
"modified_at": "2022-10-20 02:01:38.376251-07",
"servers": [
"1202678819172646914"
]
},
{
"id": "1232678819172646915",
"name": "test-pool",
"created_at": "2022-10-24 06:34:53.510281-07",
"modified_at": "2022-10-24 06:34:53.510281-07",
"servers": [
"1202678819172646913"
]}]}
Get a Poolยถ
Request
Method |
|
Path |
|
Example Request
GET /api/v2/pool/<id>
Response
{
"result": "success",
"pool": {
"id": "1232678819172646915",
"name": "test-pool",
"created_at": "2022-10-24 06:34:53.510281-07",
"modified_at": "2022-10-24 06:34:53.510281-07",
"servers": [
"1202678819172646913"
]}}
Create a Poolยถ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
POST /api/v2/pool
{"name": "my-2nd-pool"}
Response
{ "result": "success",
"pool": {
"id": "1202678819172646916" }}
Modify a Poolยถ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
PATCH /api/v2/pool/<id>
{"name": "my-cool-pool"}
Response
{ "result": "success" }
Deleting a Poolยถ
Request
Method |
|
Path |
|