mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
376 lines
17 KiB
JSON
376 lines
17 KiB
JSON
[
|
|
{
|
|
"request": "GET /api/admin/mounts",
|
|
"status": 200,
|
|
"body": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"object": "mount",
|
|
"attributes": {
|
|
"id": 1,
|
|
"uuid": "a0a00001-0000-4000-8000-000000000001",
|
|
"name": "shared-mods",
|
|
"description": "Shared mod directory",
|
|
"source": "/mnt/mods",
|
|
"target": "/home/container/mods",
|
|
"read_only": true,
|
|
"user_mountable": false,
|
|
"eggs_count": 1,
|
|
"nodes_count": 1,
|
|
"servers_count": 1
|
|
}
|
|
},
|
|
{
|
|
"object": "mount",
|
|
"attributes": {
|
|
"id": 2,
|
|
"uuid": "a0a00002-0000-4000-8000-000000000002",
|
|
"name": "scratch",
|
|
"description": null,
|
|
"source": "/mnt/scratch",
|
|
"target": "/scratch",
|
|
"read_only": false,
|
|
"user_mountable": true,
|
|
"eggs_count": 0,
|
|
"nodes_count": 0,
|
|
"servers_count": 0
|
|
}
|
|
}
|
|
],
|
|
"meta": {
|
|
"pagination": {
|
|
"total": 2,
|
|
"count": 2,
|
|
"per_page": 50,
|
|
"current_page": 1,
|
|
"total_pages": 1,
|
|
"links": {}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"request": "GET /api/admin/mounts?include=eggs,nodes,servers",
|
|
"status": 200,
|
|
"body": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"object": "mount",
|
|
"attributes": {
|
|
"id": 1,
|
|
"uuid": "a0a00001-0000-4000-8000-000000000001",
|
|
"name": "shared-mods",
|
|
"description": "Shared mod directory",
|
|
"source": "/mnt/mods",
|
|
"target": "/home/container/mods",
|
|
"read_only": true,
|
|
"user_mountable": false,
|
|
"eggs_count": 1,
|
|
"nodes_count": 1,
|
|
"servers_count": 1,
|
|
"relationships": {
|
|
"eggs": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"object": "egg",
|
|
"attributes": {
|
|
"id": 1,
|
|
"uuid": "e9900001-0000-4000-8000-000000000001",
|
|
"author": "support@example.test",
|
|
"name": "Paper",
|
|
"description": "High performance Minecraft server.",
|
|
"features": [
|
|
"eula",
|
|
"java_version"
|
|
],
|
|
"docker_image": "ghcr.io/pterodactyl/yolks:java_21",
|
|
"docker_images": {
|
|
"Java 21": "ghcr.io/pterodactyl/yolks:java_21",
|
|
"Java 17": "ghcr.io/pterodactyl/yolks:java_17"
|
|
},
|
|
"force_outgoing_ip": false,
|
|
"config": {
|
|
"files": {
|
|
"server.properties": {
|
|
"parser": "properties",
|
|
"find": {
|
|
"server-ip": "0.0.0.0",
|
|
"server-port": "{{server.build.default.port}}"
|
|
}
|
|
}
|
|
},
|
|
"startup": {
|
|
"done": ")! For help, type "
|
|
},
|
|
"stop": "stop",
|
|
"logs": {},
|
|
"file_denylist": [],
|
|
"extends": null
|
|
},
|
|
"startup": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}",
|
|
"script": {
|
|
"privileged": true,
|
|
"install": "#!/bin/ash\necho \"installing\"",
|
|
"entry": "ash",
|
|
"container": "ghcr.io/pterodactyl/installers:alpine",
|
|
"extends": null
|
|
},
|
|
"relationships": [],
|
|
"created_at": "2026-01-02T03:04:05+00:00",
|
|
"updated_at": "2026-02-03T04:05:06+00:00"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"nodes": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"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": []
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"servers": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"object": "server",
|
|
"attributes": {
|
|
"id": 1,
|
|
"external_id": "ext-survival",
|
|
"uuid": "5e7f0001-0000-4000-8000-000000000001",
|
|
"identifier": "5e7f0001",
|
|
"name": "Survival",
|
|
"description": "Main survival world",
|
|
"status": null,
|
|
"suspended": false,
|
|
"limits": {
|
|
"memory": 2048,
|
|
"swap": 512,
|
|
"disk": 10240,
|
|
"io": 500,
|
|
"cpu": 200,
|
|
"threads": "0-3",
|
|
"oom_disabled": true
|
|
},
|
|
"feature_limits": {
|
|
"databases": 5,
|
|
"allocations": 5,
|
|
"backups": 5
|
|
},
|
|
"user": 2,
|
|
"node": 1,
|
|
"allocation": 1,
|
|
"egg": 1,
|
|
"container": {
|
|
"startup_command": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}",
|
|
"image": "ghcr.io/pterodactyl/yolks:java_21",
|
|
"skip_scripts": false,
|
|
"installed": 1,
|
|
"environment": {
|
|
"SERVER_JARFILE": "paper.jar",
|
|
"BUILD_NUMBER": "latest",
|
|
"HIDDEN_TOKEN": "hidden-value",
|
|
"STARTUP": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}",
|
|
"P_SERVER_LOCATION": "us-east",
|
|
"P_SERVER_UUID": "5e7f0001-0000-4000-8000-000000000001",
|
|
"P_SERVER_ALLOCATION_LIMIT": 5
|
|
}
|
|
},
|
|
"relationships": [],
|
|
"updated_at": "2026-02-03T04:05:06+00:00",
|
|
"created_at": "2026-01-02T03:04:05+00:00"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"object": "mount",
|
|
"attributes": {
|
|
"id": 2,
|
|
"uuid": "a0a00002-0000-4000-8000-000000000002",
|
|
"name": "scratch",
|
|
"description": null,
|
|
"source": "/mnt/scratch",
|
|
"target": "/scratch",
|
|
"read_only": false,
|
|
"user_mountable": true,
|
|
"eggs_count": 0,
|
|
"nodes_count": 0,
|
|
"servers_count": 0,
|
|
"relationships": {
|
|
"eggs": {
|
|
"object": "list",
|
|
"data": []
|
|
},
|
|
"nodes": {
|
|
"object": "list",
|
|
"data": []
|
|
},
|
|
"servers": {
|
|
"object": "list",
|
|
"data": []
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"meta": {
|
|
"pagination": {
|
|
"total": 2,
|
|
"count": 2,
|
|
"per_page": 50,
|
|
"current_page": 1,
|
|
"total_pages": 1,
|
|
"links": {}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"request": "GET /api/admin/mounts?filter[name]=none",
|
|
"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/mounts?per_page=1",
|
|
"status": 200,
|
|
"body": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"object": "mount",
|
|
"attributes": {
|
|
"id": 1,
|
|
"uuid": "a0a00001-0000-4000-8000-000000000001",
|
|
"name": "shared-mods",
|
|
"description": "Shared mod directory",
|
|
"source": "/mnt/mods",
|
|
"target": "/home/container/mods",
|
|
"read_only": true,
|
|
"user_mountable": false,
|
|
"eggs_count": 1,
|
|
"nodes_count": 1,
|
|
"servers_count": 1
|
|
}
|
|
}
|
|
],
|
|
"meta": {
|
|
"pagination": {
|
|
"total": 2,
|
|
"count": 1,
|
|
"per_page": 1,
|
|
"current_page": 1,
|
|
"total_pages": 2,
|
|
"links": {
|
|
"next": "https://panel.example.test/api/admin/mounts?page=2"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"request": "GET /api/admin/mounts?per_page=1&page=2",
|
|
"status": 200,
|
|
"body": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"object": "mount",
|
|
"attributes": {
|
|
"id": 2,
|
|
"uuid": "a0a00002-0000-4000-8000-000000000002",
|
|
"name": "scratch",
|
|
"description": null,
|
|
"source": "/mnt/scratch",
|
|
"target": "/scratch",
|
|
"read_only": false,
|
|
"user_mountable": true,
|
|
"eggs_count": 0,
|
|
"nodes_count": 0,
|
|
"servers_count": 0
|
|
}
|
|
}
|
|
],
|
|
"meta": {
|
|
"pagination": {
|
|
"total": 2,
|
|
"count": 1,
|
|
"per_page": 1,
|
|
"current_page": 2,
|
|
"total_pages": 2,
|
|
"links": {
|
|
"previous": "https://panel.example.test/api/admin/mounts?page=1"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"request": "GET /api/admin/mounts?per_page=1&page=99",
|
|
"status": 200,
|
|
"body": {
|
|
"object": "list",
|
|
"data": [],
|
|
"meta": {
|
|
"pagination": {
|
|
"total": 2,
|
|
"count": 0,
|
|
"per_page": 1,
|
|
"current_page": 99,
|
|
"total_pages": 2,
|
|
"links": {
|
|
"previous": "https://panel.example.test/api/admin/mounts?page=98"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|