Files
2026-10-20 15:46:16 -04:00

708 lines
35 KiB
JSON

[
{
"request": "GET /api/admin/activity",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "activity_log",
"attributes": {
"id": "77de68daecd823babbb58edb1c8e14d7106e83bb",
"batch": null,
"event": "admin:node.update",
"is_api": true,
"ip": "203.0.113.6",
"description": "Updated the node configuration.",
"properties": {
"name": "node-alpha",
"files": [
"config.yml",
"wings.yml"
],
"count": 2
},
"has_additional_metadata": true,
"timestamp": "2026-01-02T03:07:05+00:00"
}
},
{
"object": "activity_log",
"attributes": {
"id": "da4b9237bacccdf19c0760cab7aec4a8359010b0",
"batch": null,
"event": "admin:user.create",
"is_api": false,
"ip": "203.0.113.5",
"description": null,
"properties": {
"email": "owner@example.test"
},
"has_additional_metadata": false,
"timestamp": "2026-01-02T03:06:05+00:00"
}
},
{
"object": "activity_log",
"attributes": {
"id": "356a192b7913b04c54574d18c28d46e6395428ab",
"batch": null,
"event": "admin:server.build",
"is_api": false,
"ip": "203.0.113.5",
"description": null,
"properties": {
"name": "Survival"
},
"has_additional_metadata": false,
"timestamp": "2026-01-02T03:05:05+00:00"
}
}
],
"meta": {
"pagination": {
"total": 3,
"count": 3,
"per_page": 25,
"current_page": 1,
"total_pages": 1,
"links": {}
}
}
}
},
{
"request": "GET /api/admin/activity?include=actor",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "activity_log",
"attributes": {
"id": "77de68daecd823babbb58edb1c8e14d7106e83bb",
"batch": null,
"event": "admin:node.update",
"is_api": true,
"ip": "203.0.113.6",
"description": "Updated the node configuration.",
"properties": {
"name": "node-alpha",
"files": [
"config.yml",
"wings.yml"
],
"count": 2
},
"has_additional_metadata": true,
"timestamp": "2026-01-02T03:07:05+00:00",
"relationships": {
"actor": {
"object": "user",
"attributes": {
"id": 1,
"external_id": null,
"uuid": "00000000-0000-4000-8000-000000000001",
"username": "admin",
"email": "admin@example.test",
"first_name": "Ada",
"last_name": "Admin",
"language": "en",
"root_admin": true,
"2fa": false,
"image": "https://gravatar.com/avatar/51965088c5db83c3fd307f308d25198a",
"avatar": null,
"servers_count": 0,
"subuser_of_count": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": []
}
}
}
}
},
{
"object": "activity_log",
"attributes": {
"id": "da4b9237bacccdf19c0760cab7aec4a8359010b0",
"batch": null,
"event": "admin:user.create",
"is_api": false,
"ip": "203.0.113.5",
"description": null,
"properties": {
"email": "owner@example.test"
},
"has_additional_metadata": false,
"timestamp": "2026-01-02T03:06:05+00:00",
"relationships": {
"actor": {
"object": "user",
"attributes": {
"id": 1,
"external_id": null,
"uuid": "00000000-0000-4000-8000-000000000001",
"username": "admin",
"email": "admin@example.test",
"first_name": "Ada",
"last_name": "Admin",
"language": "en",
"root_admin": true,
"2fa": false,
"image": "https://gravatar.com/avatar/51965088c5db83c3fd307f308d25198a",
"avatar": null,
"servers_count": 0,
"subuser_of_count": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": []
}
}
}
}
},
{
"object": "activity_log",
"attributes": {
"id": "356a192b7913b04c54574d18c28d46e6395428ab",
"batch": null,
"event": "admin:server.build",
"is_api": false,
"ip": "203.0.113.5",
"description": null,
"properties": {
"name": "Survival"
},
"has_additional_metadata": false,
"timestamp": "2026-01-02T03:05:05+00:00",
"relationships": {
"actor": {
"object": "user",
"attributes": {
"id": 1,
"external_id": null,
"uuid": "00000000-0000-4000-8000-000000000001",
"username": "admin",
"email": "admin@example.test",
"first_name": "Ada",
"last_name": "Admin",
"language": "en",
"root_admin": true,
"2fa": false,
"image": "https://gravatar.com/avatar/51965088c5db83c3fd307f308d25198a",
"avatar": null,
"servers_count": 0,
"subuser_of_count": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": []
}
}
}
}
}
],
"meta": {
"pagination": {
"total": 3,
"count": 3,
"per_page": 25,
"current_page": 1,
"total_pages": 1,
"links": {}
}
}
}
},
{
"request": "GET /api/admin/activity?include=actor.servers",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "activity_log",
"attributes": {
"id": "77de68daecd823babbb58edb1c8e14d7106e83bb",
"batch": null,
"event": "admin:node.update",
"is_api": true,
"ip": "203.0.113.6",
"description": "Updated the node configuration.",
"properties": {
"name": "node-alpha",
"files": [
"config.yml",
"wings.yml"
],
"count": 2
},
"has_additional_metadata": true,
"timestamp": "2026-01-02T03:07:05+00:00",
"relationships": {
"actor": {
"object": "user",
"attributes": {
"id": 1,
"external_id": null,
"uuid": "00000000-0000-4000-8000-000000000001",
"username": "admin",
"email": "admin@example.test",
"first_name": "Ada",
"last_name": "Admin",
"language": "en",
"root_admin": true,
"2fa": false,
"image": "https://gravatar.com/avatar/51965088c5db83c3fd307f308d25198a",
"avatar": null,
"servers_count": 0,
"subuser_of_count": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": {
"servers": {
"object": "list",
"data": [
{
"object": "server",
"attributes": {
"id": 3,
"external_id": "ext-lab",
"uuid": "5e7f0003-0000-4000-8000-000000000003",
"identifier": "5e7f0003",
"name": "Admin Lab",
"description": "Testing ground",
"status": null,
"suspended": false,
"limits": {
"memory": 512,
"swap": -1,
"disk": 1024,
"io": 10,
"cpu": 50,
"threads": null,
"oom_disabled": true
},
"feature_limits": {
"databases": 1,
"allocations": 1,
"backups": 1
},
"user": 1,
"node": 2,
"allocation": 8,
"egg": 1,
"container": {
"startup_command": "java -jar {{SERVER_JARFILE}}",
"image": "ghcr.io/pterodactyl/yolks:java_21",
"skip_scripts": false,
"installed": 1,
"environment": {
"SERVER_JARFILE": "server.jar",
"BUILD_NUMBER": "latest",
"HIDDEN_TOKEN": "secret",
"STARTUP": "java -jar {{SERVER_JARFILE}}",
"P_SERVER_LOCATION": "eu-west",
"P_SERVER_UUID": "5e7f0003-0000-4000-8000-000000000003",
"P_SERVER_ALLOCATION_LIMIT": 1
}
},
"relationships": [],
"updated_at": "2026-02-03T04:05:06+00:00",
"created_at": "2026-01-02T03:04:05+00:00"
}
}
]
}
}
}
}
}
}
},
{
"object": "activity_log",
"attributes": {
"id": "da4b9237bacccdf19c0760cab7aec4a8359010b0",
"batch": null,
"event": "admin:user.create",
"is_api": false,
"ip": "203.0.113.5",
"description": null,
"properties": {
"email": "owner@example.test"
},
"has_additional_metadata": false,
"timestamp": "2026-01-02T03:06:05+00:00",
"relationships": {
"actor": {
"object": "user",
"attributes": {
"id": 1,
"external_id": null,
"uuid": "00000000-0000-4000-8000-000000000001",
"username": "admin",
"email": "admin@example.test",
"first_name": "Ada",
"last_name": "Admin",
"language": "en",
"root_admin": true,
"2fa": false,
"image": "https://gravatar.com/avatar/51965088c5db83c3fd307f308d25198a",
"avatar": null,
"servers_count": 0,
"subuser_of_count": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": {
"servers": {
"object": "list",
"data": [
{
"object": "server",
"attributes": {
"id": 3,
"external_id": "ext-lab",
"uuid": "5e7f0003-0000-4000-8000-000000000003",
"identifier": "5e7f0003",
"name": "Admin Lab",
"description": "Testing ground",
"status": null,
"suspended": false,
"limits": {
"memory": 512,
"swap": -1,
"disk": 1024,
"io": 10,
"cpu": 50,
"threads": null,
"oom_disabled": true
},
"feature_limits": {
"databases": 1,
"allocations": 1,
"backups": 1
},
"user": 1,
"node": 2,
"allocation": 8,
"egg": 1,
"container": {
"startup_command": "java -jar {{SERVER_JARFILE}}",
"image": "ghcr.io/pterodactyl/yolks:java_21",
"skip_scripts": false,
"installed": 1,
"environment": {
"SERVER_JARFILE": "server.jar",
"BUILD_NUMBER": "latest",
"HIDDEN_TOKEN": "secret",
"STARTUP": "java -jar {{SERVER_JARFILE}}",
"P_SERVER_LOCATION": "eu-west",
"P_SERVER_UUID": "5e7f0003-0000-4000-8000-000000000003",
"P_SERVER_ALLOCATION_LIMIT": 1
}
},
"relationships": [],
"updated_at": "2026-02-03T04:05:06+00:00",
"created_at": "2026-01-02T03:04:05+00:00"
}
}
]
}
}
}
}
}
}
},
{
"object": "activity_log",
"attributes": {
"id": "356a192b7913b04c54574d18c28d46e6395428ab",
"batch": null,
"event": "admin:server.build",
"is_api": false,
"ip": "203.0.113.5",
"description": null,
"properties": {
"name": "Survival"
},
"has_additional_metadata": false,
"timestamp": "2026-01-02T03:05:05+00:00",
"relationships": {
"actor": {
"object": "user",
"attributes": {
"id": 1,
"external_id": null,
"uuid": "00000000-0000-4000-8000-000000000001",
"username": "admin",
"email": "admin@example.test",
"first_name": "Ada",
"last_name": "Admin",
"language": "en",
"root_admin": true,
"2fa": false,
"image": "https://gravatar.com/avatar/51965088c5db83c3fd307f308d25198a",
"avatar": null,
"servers_count": 0,
"subuser_of_count": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": {
"servers": {
"object": "list",
"data": [
{
"object": "server",
"attributes": {
"id": 3,
"external_id": "ext-lab",
"uuid": "5e7f0003-0000-4000-8000-000000000003",
"identifier": "5e7f0003",
"name": "Admin Lab",
"description": "Testing ground",
"status": null,
"suspended": false,
"limits": {
"memory": 512,
"swap": -1,
"disk": 1024,
"io": 10,
"cpu": 50,
"threads": null,
"oom_disabled": true
},
"feature_limits": {
"databases": 1,
"allocations": 1,
"backups": 1
},
"user": 1,
"node": 2,
"allocation": 8,
"egg": 1,
"container": {
"startup_command": "java -jar {{SERVER_JARFILE}}",
"image": "ghcr.io/pterodactyl/yolks:java_21",
"skip_scripts": false,
"installed": 1,
"environment": {
"SERVER_JARFILE": "server.jar",
"BUILD_NUMBER": "latest",
"HIDDEN_TOKEN": "secret",
"STARTUP": "java -jar {{SERVER_JARFILE}}",
"P_SERVER_LOCATION": "eu-west",
"P_SERVER_UUID": "5e7f0003-0000-4000-8000-000000000003",
"P_SERVER_ALLOCATION_LIMIT": 1
}
},
"relationships": [],
"updated_at": "2026-02-03T04:05:06+00:00",
"created_at": "2026-01-02T03:04:05+00:00"
}
}
]
}
}
}
}
}
}
}
],
"meta": {
"pagination": {
"total": 3,
"count": 3,
"per_page": 25,
"current_page": 1,
"total_pages": 1,
"links": {}
}
}
}
},
{
"request": "GET /api/admin/activity?filter[event]=admin:nothing",
"status": 200,
"body": {
"object": "list",
"data": [],
"meta": {
"pagination": {
"total": 0,
"count": 0,
"per_page": 25,
"current_page": 1,
"total_pages": 1,
"links": {}
}
}
}
},
{
"request": "GET /api/admin/activity?per_page=1",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "activity_log",
"attributes": {
"id": "77de68daecd823babbb58edb1c8e14d7106e83bb",
"batch": null,
"event": "admin:node.update",
"is_api": true,
"ip": "203.0.113.6",
"description": "Updated the node configuration.",
"properties": {
"name": "node-alpha",
"files": [
"config.yml",
"wings.yml"
],
"count": 2
},
"has_additional_metadata": true,
"timestamp": "2026-01-02T03:07:05+00:00"
}
}
],
"meta": {
"pagination": {
"total": 3,
"count": 1,
"per_page": 1,
"current_page": 1,
"total_pages": 3,
"links": {
"next": "https://panel.example.test/api/admin/activity?per_page=1&page=2"
}
}
}
}
},
{
"request": "GET /api/admin/activity?per_page=1&page=2",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "activity_log",
"attributes": {
"id": "da4b9237bacccdf19c0760cab7aec4a8359010b0",
"batch": null,
"event": "admin:user.create",
"is_api": false,
"ip": "203.0.113.5",
"description": null,
"properties": {
"email": "owner@example.test"
},
"has_additional_metadata": false,
"timestamp": "2026-01-02T03:06:05+00:00"
}
}
],
"meta": {
"pagination": {
"total": 3,
"count": 1,
"per_page": 1,
"current_page": 2,
"total_pages": 3,
"links": {
"previous": "https://panel.example.test/api/admin/activity?per_page=1&page=1",
"next": "https://panel.example.test/api/admin/activity?per_page=1&page=3"
}
}
}
}
},
{
"request": "GET /api/admin/activity?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/activity?per_page=1&page=98"
}
}
}
}
},
{
"request": "GET /api/admin/activity?filter[event]=admin:&sort=timestamp&per_page=1&page=2&include=actor",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "activity_log",
"attributes": {
"id": "da4b9237bacccdf19c0760cab7aec4a8359010b0",
"batch": null,
"event": "admin:user.create",
"is_api": false,
"ip": "203.0.113.5",
"description": null,
"properties": {
"email": "owner@example.test"
},
"has_additional_metadata": false,
"timestamp": "2026-01-02T03:06:05+00:00",
"relationships": {
"actor": {
"object": "user",
"attributes": {
"id": 1,
"external_id": null,
"uuid": "00000000-0000-4000-8000-000000000001",
"username": "admin",
"email": "admin@example.test",
"first_name": "Ada",
"last_name": "Admin",
"language": "en",
"root_admin": true,
"2fa": false,
"image": "https://gravatar.com/avatar/51965088c5db83c3fd307f308d25198a",
"avatar": null,
"servers_count": 0,
"subuser_of_count": 0,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": []
}
}
}
}
}
],
"meta": {
"pagination": {
"total": 3,
"count": 1,
"per_page": 1,
"current_page": 2,
"total_pages": 3,
"links": {
"previous": "https://panel.example.test/api/admin/activity?filter%5Bevent%5D=admin%3A&sort=timestamp&per_page=1&include=actor&page=1",
"next": "https://panel.example.test/api/admin/activity?filter%5Bevent%5D=admin%3A&sort=timestamp&per_page=1&include=actor&page=3"
}
}
}
}
}
]