Files
2026-10-12 05:18:59 -04:00

334 lines
13 KiB
JSON

[
{
"request": "GET /api/admin/nodes/1/allocations/available",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "allocation",
"attributes": {
"id": 4,
"ip": "192.0.2.10",
"alias": null,
"port": 25568,
"notes": null,
"server_id": null,
"server_name": null,
"assigned": false
}
},
{
"object": "allocation",
"attributes": {
"id": 5,
"ip": "192.0.2.11",
"alias": null,
"port": 25565,
"notes": null,
"server_id": null,
"server_name": null,
"assigned": false
}
},
{
"object": "allocation",
"attributes": {
"id": 6,
"ip": "192.0.2.11",
"alias": "spare.example.test",
"port": 25566,
"notes": null,
"server_id": null,
"server_name": null,
"assigned": false
}
}
],
"meta": {
"pagination": {
"total": 3,
"count": 3,
"per_page": 50,
"current_page": 1,
"total_pages": 1,
"links": {}
}
}
}
},
{
"request": "GET /api/admin/nodes/1/allocations/available?include=node,server",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "allocation",
"attributes": {
"id": 4,
"ip": "192.0.2.10",
"alias": null,
"port": 25568,
"notes": null,
"server_id": null,
"server_name": null,
"assigned": false,
"relationships": {
"node": {
"object": "node",
"attributes": {
"id": 1,
"uuid": "d0de0001-0000-4000-8000-000000000001",
"public": true,
"name": "node-alpha",
"description": "Primary \"alpha\" node",
"location_id": 1,
"fqdn": "alpha.example.test",
"scheme": "https",
"behind_proxy": false,
"maintenance_mode": false,
"memory": 8192,
"memory_overallocate": 0,
"disk": 102400,
"disk_overallocate": -1,
"upload_size": 100,
"daemon_listen": 8080,
"daemon_sftp": 2022,
"daemon_base": "/var/lib/pterodactyl/volumes",
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"allocated_resources": {
"memory": 3072,
"disk": 15360
},
"relationships": []
}
},
"server": {
"object": "null_resource",
"attributes": null
}
}
}
},
{
"object": "allocation",
"attributes": {
"id": 5,
"ip": "192.0.2.11",
"alias": null,
"port": 25565,
"notes": null,
"server_id": null,
"server_name": null,
"assigned": false,
"relationships": {
"node": {
"object": "node",
"attributes": {
"id": 1,
"uuid": "d0de0001-0000-4000-8000-000000000001",
"public": true,
"name": "node-alpha",
"description": "Primary \"alpha\" node",
"location_id": 1,
"fqdn": "alpha.example.test",
"scheme": "https",
"behind_proxy": false,
"maintenance_mode": false,
"memory": 8192,
"memory_overallocate": 0,
"disk": 102400,
"disk_overallocate": -1,
"upload_size": 100,
"daemon_listen": 8080,
"daemon_sftp": 2022,
"daemon_base": "/var/lib/pterodactyl/volumes",
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"allocated_resources": {
"memory": 3072,
"disk": 15360
},
"relationships": []
}
},
"server": {
"object": "null_resource",
"attributes": null
}
}
}
},
{
"object": "allocation",
"attributes": {
"id": 6,
"ip": "192.0.2.11",
"alias": "spare.example.test",
"port": 25566,
"notes": null,
"server_id": null,
"server_name": null,
"assigned": false,
"relationships": {
"node": {
"object": "node",
"attributes": {
"id": 1,
"uuid": "d0de0001-0000-4000-8000-000000000001",
"public": true,
"name": "node-alpha",
"description": "Primary \"alpha\" node",
"location_id": 1,
"fqdn": "alpha.example.test",
"scheme": "https",
"behind_proxy": false,
"maintenance_mode": false,
"memory": 8192,
"memory_overallocate": 0,
"disk": 102400,
"disk_overallocate": -1,
"upload_size": 100,
"daemon_listen": 8080,
"daemon_sftp": 2022,
"daemon_base": "/var/lib/pterodactyl/volumes",
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"allocated_resources": {
"memory": 3072,
"disk": 15360
},
"relationships": []
}
},
"server": {
"object": "null_resource",
"attributes": null
}
}
}
}
],
"meta": {
"pagination": {
"total": 3,
"count": 3,
"per_page": 50,
"current_page": 1,
"total_pages": 1,
"links": {}
}
}
}
},
{
"request": "GET /api/admin/nodes/2/allocations/available?filter[port]=1",
"status": 200,
"body": {
"object": "list",
"data": [],
"meta": {
"pagination": {
"total": 0,
"count": 0,
"per_page": 50,
"current_page": 1,
"total_pages": 1,
"links": {}
}
}
}
},
{
"request": "GET /api/admin/nodes/1/allocations/available?per_page=1",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "allocation",
"attributes": {
"id": 4,
"ip": "192.0.2.10",
"alias": null,
"port": 25568,
"notes": null,
"server_id": null,
"server_name": null,
"assigned": false
}
}
],
"meta": {
"pagination": {
"total": 3,
"count": 1,
"per_page": 1,
"current_page": 1,
"total_pages": 3,
"links": {
"next": "https://panel.example.test/api/admin/nodes/1/allocations/available?page=2"
}
}
}
}
},
{
"request": "GET /api/admin/nodes/1/allocations/available?per_page=1&page=2",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "allocation",
"attributes": {
"id": 5,
"ip": "192.0.2.11",
"alias": null,
"port": 25565,
"notes": null,
"server_id": null,
"server_name": null,
"assigned": false
}
}
],
"meta": {
"pagination": {
"total": 3,
"count": 1,
"per_page": 1,
"current_page": 2,
"total_pages": 3,
"links": {
"previous": "https://panel.example.test/api/admin/nodes/1/allocations/available?page=1",
"next": "https://panel.example.test/api/admin/nodes/1/allocations/available?page=3"
}
}
}
}
},
{
"request": "GET /api/admin/nodes/1/allocations/available?per_page=1&page=99",
"status": 200,
"body": {
"object": "list",
"data": [],
"meta": {
"pagination": {
"total": 3,
"count": 0,
"per_page": 1,
"current_page": 99,
"total_pages": 3,
"links": {
"previous": "https://panel.example.test/api/admin/nodes/1/allocations/available?page=98"
}
}
}
}
}
]