mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
48 lines
1.3 KiB
JSON
48 lines
1.3 KiB
JSON
[
|
|||
|
|
{
|
||
|
|
"request": "GET /api/admin/servers/1/databases/1",
|
||
|
|
"status": 200,
|
||
|
|
"body": {
|
||
|
|
"object": "server_database",
|
||
|
|
"attributes": {
|
||
|
|
"id": "eV8y0jg6",
|
||
|
|
"host": {
|
||
|
|
"address": "10.0.0.5",
|
||
|
|
"port": 3306
|
||
|
|
},
|
||
|
|
"name": "s1_main",
|
||
|
|
"username": "u1_mainuser",
|
||
|
|
"connections_from": "%",
|
||
|
|
"max_connections": 10,
|
||
|
|
"relationships": []
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"request": "GET /api/admin/servers/1/databases/1?include=password",
|
||
|
|
"status": 200,
|
||
|
|
"body": {
|
||
|
|
"object": "server_database",
|
||
|
|
"attributes": {
|
||
|
|
"id": "eV8y0jg6",
|
||
|
|
"host": {
|
||
|
|
"address": "10.0.0.5",
|
||
|
|
"port": 3306
|
||
|
|
},
|
||
|
|
"name": "s1_main",
|
||
|
|
"username": "u1_mainuser",
|
||
|
|
"connections_from": "%",
|
||
|
|
"max_connections": 10,
|
||
|
|
"relationships": {
|
||
|
|
"password": {
|
||
|
|
"object": "database_password",
|
||
|
|
"attributes": {
|
||
|
|
"password": "Main-Pa$$word/1"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|