mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 20:05:48 -05:00
479 lines
20 KiB
JSON
479 lines
20 KiB
JSON
[
|
|
{
|
|
"request": "GET /api/client/servers/5e7f0001-0000-4000-8000-000000000001/activity",
|
|
"status": 200,
|
|
"body": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"object": "activity_log",
|
|
"attributes": {
|
|
"id": "356a192b7913b04c54574d18c28d46e6395428ab",
|
|
"batch": null,
|
|
"event": "admin:server.build",
|
|
"is_api": false,
|
|
"ip": null,
|
|
"description": null,
|
|
"properties": {
|
|
"name": "Survival"
|
|
},
|
|
"has_additional_metadata": false,
|
|
"timestamp": "2026-01-02T03:05:05+00:00"
|
|
}
|
|
},
|
|
{
|
|
"object": "activity_log",
|
|
"attributes": {
|
|
"id": "ac3478d69a3c81fa62e60f5c3696165a4e5e6ac4",
|
|
"batch": null,
|
|
"event": "server:power.start",
|
|
"is_api": false,
|
|
"ip": null,
|
|
"description": null,
|
|
"properties": {},
|
|
"has_additional_metadata": false,
|
|
"timestamp": "2026-01-02T03:09:05+00:00"
|
|
}
|
|
},
|
|
{
|
|
"object": "activity_log",
|
|
"attributes": {
|
|
"id": "c1dfd96eea8cc2b62785275bca38ac261256e278",
|
|
"batch": null,
|
|
"event": "server:file.delete",
|
|
"is_api": false,
|
|
"ip": "198.51.100.7",
|
|
"description": null,
|
|
"properties": {
|
|
"directory": "/plugins/old/",
|
|
"files": [
|
|
"old.jar",
|
|
"older.jar"
|
|
],
|
|
"count": 2
|
|
},
|
|
"has_additional_metadata": true,
|
|
"timestamp": "2026-01-02T03:10:05+00:00"
|
|
}
|
|
},
|
|
{
|
|
"object": "activity_log",
|
|
"attributes": {
|
|
"id": "0ade7c2cf97f75d009975f4d720d1fa6c19f4897",
|
|
"batch": "ba7c0009-0000-4000-8000-000000000009",
|
|
"event": "server:backup.start",
|
|
"is_api": false,
|
|
"ip": null,
|
|
"description": null,
|
|
"properties": {
|
|
"name": "Nightly",
|
|
"locked": true
|
|
},
|
|
"has_additional_metadata": true,
|
|
"timestamp": "2026-01-02T03:13:05+00:00"
|
|
}
|
|
},
|
|
{
|
|
"object": "activity_log",
|
|
"attributes": {
|
|
"id": "b1d5781111d84f7b3fe45a0852e59758cd7a87e5",
|
|
"batch": null,
|
|
"event": "server:console.command",
|
|
"is_api": false,
|
|
"ip": null,
|
|
"description": null,
|
|
"properties": {
|
|
"command": "say <hi> & \"bye\""
|
|
},
|
|
"has_additional_metadata": false,
|
|
"timestamp": "2026-01-02T03:14:05+00:00"
|
|
}
|
|
}
|
|
],
|
|
"meta": {
|
|
"pagination": {
|
|
"total": 5,
|
|
"count": 5,
|
|
"per_page": 25,
|
|
"current_page": 1,
|
|
"total_pages": 1,
|
|
"links": {}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"request": "GET /api/client/servers/5e7f0001-0000-4000-8000-000000000001/activity?include=actor",
|
|
"status": 200,
|
|
"body": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"object": "activity_log",
|
|
"attributes": {
|
|
"id": "356a192b7913b04c54574d18c28d46e6395428ab",
|
|
"batch": null,
|
|
"event": "admin:server.build",
|
|
"is_api": false,
|
|
"ip": null,
|
|
"description": null,
|
|
"properties": {
|
|
"name": "Survival"
|
|
},
|
|
"has_additional_metadata": false,
|
|
"timestamp": "2026-01-02T03:05:05+00:00",
|
|
"relationships": {
|
|
"actor": {
|
|
"object": "user",
|
|
"attributes": {
|
|
"uuid": "00000000-0000-4000-8000-000000000001",
|
|
"identifier": "user_aaaaaaaaabaabaaaaaaaaaaaae",
|
|
"username": "admin",
|
|
"email": "admin@example.test",
|
|
"image": "https://gravatar.com/avatar/51965088c5db83c3fd307f308d25198a",
|
|
"avatar": null,
|
|
"2fa_enabled": false,
|
|
"created_at": "2026-01-02T03:04:05+00:00"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"object": "activity_log",
|
|
"attributes": {
|
|
"id": "ac3478d69a3c81fa62e60f5c3696165a4e5e6ac4",
|
|
"batch": null,
|
|
"event": "server:power.start",
|
|
"is_api": false,
|
|
"ip": null,
|
|
"description": null,
|
|
"properties": {},
|
|
"has_additional_metadata": false,
|
|
"timestamp": "2026-01-02T03:09:05+00:00",
|
|
"relationships": {
|
|
"actor": {
|
|
"object": "user",
|
|
"attributes": {
|
|
"uuid": "00000000-0000-4000-8000-000000000003",
|
|
"identifier": "user_aaaaaaaaabaabaaaaaaaaaaaam",
|
|
"username": "helper",
|
|
"email": "helper@example.test",
|
|
"image": "https://gravatar.com/avatar/db133fd5a01229dc12009a42eaa2e3c3",
|
|
"avatar": null,
|
|
"2fa_enabled": false,
|
|
"created_at": "2026-01-02T03:04:05+00:00"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"object": "activity_log",
|
|
"attributes": {
|
|
"id": "c1dfd96eea8cc2b62785275bca38ac261256e278",
|
|
"batch": null,
|
|
"event": "server:file.delete",
|
|
"is_api": false,
|
|
"ip": "198.51.100.7",
|
|
"description": null,
|
|
"properties": {
|
|
"directory": "/plugins/old/",
|
|
"files": [
|
|
"old.jar",
|
|
"older.jar"
|
|
],
|
|
"count": 2
|
|
},
|
|
"has_additional_metadata": true,
|
|
"timestamp": "2026-01-02T03:10:05+00:00",
|
|
"relationships": {
|
|
"actor": {
|
|
"object": "user",
|
|
"attributes": {
|
|
"uuid": "00000000-0000-4000-8000-000000000002",
|
|
"identifier": "user_aaaaaaaaabaabaaaaaaaaaaaai",
|
|
"username": "owner",
|
|
"email": "owner@example.test",
|
|
"image": "https://gravatar.com/avatar/f17712239715b86f1dfd9ba550b7f607",
|
|
"avatar": null,
|
|
"2fa_enabled": false,
|
|
"created_at": "2026-01-02T03:04:05+00:00"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"object": "activity_log",
|
|
"attributes": {
|
|
"id": "0ade7c2cf97f75d009975f4d720d1fa6c19f4897",
|
|
"batch": "ba7c0009-0000-4000-8000-000000000009",
|
|
"event": "server:backup.start",
|
|
"is_api": false,
|
|
"ip": null,
|
|
"description": null,
|
|
"properties": {
|
|
"name": "Nightly",
|
|
"locked": true
|
|
},
|
|
"has_additional_metadata": true,
|
|
"timestamp": "2026-01-02T03:13:05+00:00",
|
|
"relationships": {
|
|
"actor": {
|
|
"object": "user",
|
|
"attributes": {
|
|
"uuid": "00000000-0000-4000-8000-000000000001",
|
|
"identifier": "user_aaaaaaaaabaabaaaaaaaaaaaae",
|
|
"username": "admin",
|
|
"email": "admin@example.test",
|
|
"image": "https://gravatar.com/avatar/51965088c5db83c3fd307f308d25198a",
|
|
"avatar": null,
|
|
"2fa_enabled": false,
|
|
"created_at": "2026-01-02T03:04:05+00:00"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"object": "activity_log",
|
|
"attributes": {
|
|
"id": "b1d5781111d84f7b3fe45a0852e59758cd7a87e5",
|
|
"batch": null,
|
|
"event": "server:console.command",
|
|
"is_api": false,
|
|
"ip": null,
|
|
"description": null,
|
|
"properties": {
|
|
"command": "say <hi> & \"bye\""
|
|
},
|
|
"has_additional_metadata": false,
|
|
"timestamp": "2026-01-02T03:14:05+00:00",
|
|
"relationships": {
|
|
"actor": {
|
|
"object": "user",
|
|
"attributes": {
|
|
"uuid": "00000000-0000-4000-8000-000000000004",
|
|
"identifier": "user_aaaaaaaaabaabaaaaaaaaaaaaq",
|
|
"username": "limited",
|
|
"email": "limited@example.test",
|
|
"image": "https://gravatar.com/avatar/6a005a5825ef8aa17b476a64d40e7aab",
|
|
"avatar": null,
|
|
"2fa_enabled": false,
|
|
"created_at": "2026-01-02T03:04:05+00:00"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"meta": {
|
|
"pagination": {
|
|
"total": 5,
|
|
"count": 5,
|
|
"per_page": 25,
|
|
"current_page": 1,
|
|
"total_pages": 1,
|
|
"links": {}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"request": "GET /api/client/servers/5e7f0001-0000-4000-8000-000000000001/activity?filter[event]=none",
|
|
"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/client/servers/5e7f0001-0000-4000-8000-000000000001/activity?per_page=1",
|
|
"status": 200,
|
|
"body": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"object": "activity_log",
|
|
"attributes": {
|
|
"id": "356a192b7913b04c54574d18c28d46e6395428ab",
|
|
"batch": null,
|
|
"event": "admin:server.build",
|
|
"is_api": false,
|
|
"ip": null,
|
|
"description": null,
|
|
"properties": {
|
|
"name": "Survival"
|
|
},
|
|
"has_additional_metadata": false,
|
|
"timestamp": "2026-01-02T03:05:05+00:00"
|
|
}
|
|
}
|
|
],
|
|
"meta": {
|
|
"pagination": {
|
|
"total": 5,
|
|
"count": 1,
|
|
"per_page": 1,
|
|
"current_page": 1,
|
|
"total_pages": 5,
|
|
"links": {
|
|
"next": "https://panel.example.test/api/client/servers/5e7f0001-0000-4000-8000-000000000001/activity?per_page=1&page=2"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"request": "GET /api/client/servers/5e7f0001-0000-4000-8000-000000000001/activity?per_page=1&page=2",
|
|
"status": 200,
|
|
"body": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"object": "activity_log",
|
|
"attributes": {
|
|
"id": "ac3478d69a3c81fa62e60f5c3696165a4e5e6ac4",
|
|
"batch": null,
|
|
"event": "server:power.start",
|
|
"is_api": false,
|
|
"ip": null,
|
|
"description": null,
|
|
"properties": {},
|
|
"has_additional_metadata": false,
|
|
"timestamp": "2026-01-02T03:09:05+00:00"
|
|
}
|
|
}
|
|
],
|
|
"meta": {
|
|
"pagination": {
|
|
"total": 5,
|
|
"count": 1,
|
|
"per_page": 1,
|
|
"current_page": 2,
|
|
"total_pages": 5,
|
|
"links": {
|
|
"previous": "https://panel.example.test/api/client/servers/5e7f0001-0000-4000-8000-000000000001/activity?per_page=1&page=1",
|
|
"next": "https://panel.example.test/api/client/servers/5e7f0001-0000-4000-8000-000000000001/activity?per_page=1&page=3"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"request": "GET /api/client/servers/5e7f0001-0000-4000-8000-000000000001/activity?per_page=1&page=99",
|
|
"status": 200,
|
|
"body": {
|
|
"object": "list",
|
|
"data": [],
|
|
"meta": {
|
|
"pagination": {
|
|
"total": 5,
|
|
"count": 0,
|
|
"per_page": 1,
|
|
"current_page": 99,
|
|
"total_pages": 5,
|
|
"links": {
|
|
"previous": "https://panel.example.test/api/client/servers/5e7f0001-0000-4000-8000-000000000001/activity?per_page=1&page=98"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"request": "GET /api/client/servers/5e7f0001-0000-4000-8000-000000000001/activity?per_page=2&page=2&sort=timestamp&filter[event]=server:&include=actor",
|
|
"status": 200,
|
|
"body": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"object": "activity_log",
|
|
"attributes": {
|
|
"id": "0ade7c2cf97f75d009975f4d720d1fa6c19f4897",
|
|
"batch": "ba7c0009-0000-4000-8000-000000000009",
|
|
"event": "server:backup.start",
|
|
"is_api": false,
|
|
"ip": null,
|
|
"description": null,
|
|
"properties": {
|
|
"name": "Nightly",
|
|
"locked": true
|
|
},
|
|
"has_additional_metadata": true,
|
|
"timestamp": "2026-01-02T03:13:05+00:00",
|
|
"relationships": {
|
|
"actor": {
|
|
"object": "user",
|
|
"attributes": {
|
|
"uuid": "00000000-0000-4000-8000-000000000001",
|
|
"identifier": "user_aaaaaaaaabaabaaaaaaaaaaaae",
|
|
"username": "admin",
|
|
"email": "admin@example.test",
|
|
"image": "https://gravatar.com/avatar/51965088c5db83c3fd307f308d25198a",
|
|
"avatar": null,
|
|
"2fa_enabled": false,
|
|
"created_at": "2026-01-02T03:04:05+00:00"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"object": "activity_log",
|
|
"attributes": {
|
|
"id": "b1d5781111d84f7b3fe45a0852e59758cd7a87e5",
|
|
"batch": null,
|
|
"event": "server:console.command",
|
|
"is_api": false,
|
|
"ip": null,
|
|
"description": null,
|
|
"properties": {
|
|
"command": "say <hi> & \"bye\""
|
|
},
|
|
"has_additional_metadata": false,
|
|
"timestamp": "2026-01-02T03:14:05+00:00",
|
|
"relationships": {
|
|
"actor": {
|
|
"object": "user",
|
|
"attributes": {
|
|
"uuid": "00000000-0000-4000-8000-000000000004",
|
|
"identifier": "user_aaaaaaaaabaabaaaaaaaaaaaaq",
|
|
"username": "limited",
|
|
"email": "limited@example.test",
|
|
"image": "https://gravatar.com/avatar/6a005a5825ef8aa17b476a64d40e7aab",
|
|
"avatar": null,
|
|
"2fa_enabled": false,
|
|
"created_at": "2026-01-02T03:04:05+00:00"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"meta": {
|
|
"pagination": {
|
|
"total": 4,
|
|
"count": 2,
|
|
"per_page": 2,
|
|
"current_page": 2,
|
|
"total_pages": 2,
|
|
"links": {
|
|
"previous": "https://panel.example.test/api/client/servers/5e7f0001-0000-4000-8000-000000000001/activity?per_page=2&sort=timestamp&filter%5Bevent%5D=server%3A&include=actor&page=1"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|