mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
45 lines
1.6 KiB
JSON
45 lines
1.6 KiB
JSON
[
|
|
{
|
|
"request": "POST /api/application/servers/1/databases?include=password,host",
|
|
"status": 201,
|
|
"body": {
|
|
"object": "server_database",
|
|
"attributes": {
|
|
"id": 1001,
|
|
"server": 1,
|
|
"host": 1,
|
|
"database": "s1_apidb",
|
|
"username": "u1_9fc2bf2a6b",
|
|
"remote": "10.%",
|
|
"max_connections": null,
|
|
"created_at": "2026-03-04T05:06:07+00:00",
|
|
"updated_at": "2026-03-04T05:06:07+00:00",
|
|
"relationships": {
|
|
"password": {
|
|
"object": "database_password",
|
|
"attributes": {
|
|
"password": "<generated-password-1001>"
|
|
}
|
|
},
|
|
"host": {
|
|
"object": "database_host",
|
|
"attributes": {
|
|
"id": 1,
|
|
"name": "primary-db",
|
|
"host": "10.0.0.5",
|
|
"port": 3306,
|
|
"username": "pterodactyl",
|
|
"node": 1,
|
|
"created_at": "2026-01-02T03:04:05+00:00",
|
|
"updated_at": "2026-02-03T04:05:06+00:00"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"meta": {
|
|
"resource": "https://panel.example.test/api/application/servers/1/databases/1001"
|
|
}
|
|
}
|
|
}
|
|
]
|