API v2: Pool-Server Assignmentยถ
Data Structuresยถ
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Read-only object identifier. Requires the following rights on object type |
|
string |
yes |
Immutable. Uniqueness is required in the combination of attribute |
|
string |
yes |
Immutable. Uniqueness is required in the combination of attribute |
|
string |
Read-only; Expensive to use. |
|
|
string |
Read-only; Expensive to use. |
|
|
string |
Read-only; Expensive to use. |
|
|
datetime |
Read-only. |
|
|
datetime |
Read-only. |
|
|
boolean |
Read-only. |
Retrieve Available Attributes of the ServerPoolModelยถ
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 Pool-Server Assignment Listยถ
Request
Method |
|
Path |
|
Example Request
GET /api/v2/pool/server
Response
{
"result": "success",
"pool_server": [
{
"pool_id": "1232678819172646913",
"server_id": "1232678819172646913",
"created_at": "2022-10-20 02:01:38.374809-07",
"modified_at": "2022-10-20 02:01:38.374809-07"
},
{
"pool_id": "1232678819172646914",
"server_id": "1232678819172646914",
"created_at": "2022-10-20 02:01:38.376536-07",
"modified_at": "2022-10-20 02:01:38.376536-07"
},
{
"pool_id": "1232678819172646915",
"server_id": "1232678819172646913",
"created_at": "2022-10-24 06:51:46.780733-07",
"modified_at": "2022-10-24 06:51:46.780733-07"
}]}
Get Pool-Server Assignment List by IDโsยถ
Request
Method |
|
Path |
|
Example Request
GET /api/v2/pool/<pool_id>/server/<server_id>
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/pool/1232678819172646915/server/1232678819172646913'
Response
{
"result": "success",
"pool_server": [
{
"pool_id": "1232678819172646915",
"server_id": "1232678819172646913",
"created_at": "2022-10-24 06:51:46.780733-07",
"modified_at": "2022-10-24 06:51:46.780733-07"
}]}
Adding a Server to the Poolยถ
Request
Method |
|
Path |
|
Headers |
|
Body |
|
Example Request
POST /api/v2/pool/server
{ "pool_id": "4602678819172646916",
"server_id": "4602678819172646914"}
Response
{ "result": "success",
"pool_server": {} }
Deleting a Server From a Poolยถ
Request
Method |
|
Path |
|