Files
2026-10-12 05:18:59 -04:00

119 lines
4.0 KiB
JSON

[
{
"request": "GET /api/admin/servers/1/databases",
"status": 200,
"body": {
"object": "list",
"data": [
{
"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": []
}
},
{
"object": "server_database",
"attributes": {
"id": "kEjgP8V2",
"host": {
"address": "10.0.0.5",
"port": 3306
},
"name": "s1_logs",
"username": "u1_logsuser",
"connections_from": "10.0.0.%",
"max_connections": 0,
"relationships": []
}
}
]
}
},
{
"request": "GET /api/admin/servers/1/databases?include=password",
"status": 200,
"body": {
"object": "list",
"data": [
{
"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"
}
}
}
}
},
{
"object": "server_database",
"attributes": {
"id": "kEjgP8V2",
"host": {
"address": "10.0.0.5",
"port": 3306
},
"name": "s1_logs",
"username": "u1_logsuser",
"connections_from": "10.0.0.%",
"max_connections": 0,
"relationships": {
"password": {
"object": "database_password",
"attributes": {
"password": "Logs-Pa$$word\\2"
}
}
}
}
}
]
}
},
{
"request": "GET /api/admin/servers/3/databases",
"status": 200,
"body": {
"object": "list",
"data": [
{
"object": "server_database",
"attributes": {
"id": "exjN1nQN",
"host": {
"address": "10.0.0.5",
"port": 3306
},
"name": "s3_lab",
"username": "u3_labuser",
"connections_from": "%",
"max_connections": null,
"relationships": []
}
}
]
}
}
]