Files
pterodactyl-panel/tests/Fixtures/api/admin/api-keys.view.json
T
2026-10-12 05:18:59 -04:00

57 lines
1.7 KiB
JSON

[
{
"request": "GET /api/admin/api-keys/ptla_snapshot002",
"status": 200,
"body": {
"object": "api_key",
"attributes": {
"identifier": "ptla_snapshot002",
"memo": "Read only key",
"created_by": {
"id": 1,
"username": "admin",
"email": "admin@example.test"
},
"last_used_at": "2026-02-03T06:05:06+00:00",
"created_at": "2026-01-02T03:04:05+00:00",
"relationships": [],
"r_servers": 1,
"r_nodes": 0,
"r_allocations": 0,
"r_users": 1,
"r_locations": 0,
"r_eggs": 0,
"r_database_hosts": 0,
"r_server_databases": 0
}
}
},
{
"request": "GET /api/admin/api-keys/ptla_snapshot001",
"status": 200,
"body": {
"object": "api_key",
"attributes": {
"identifier": "ptla_snapshot001",
"memo": "Snapshot application key",
"created_by": {
"id": 1,
"username": "admin",
"email": "admin@example.test"
},
"last_used_at": null,
"created_at": "2026-01-02T03:04:05+00:00",
"relationships": [],
"r_servers": 3,
"r_nodes": 3,
"r_allocations": 3,
"r_users": 3,
"r_locations": 3,
"r_eggs": 3,
"r_database_hosts": 3,
"r_server_databases": 3
}
}
}
]