Template
Fix pg_dump backup auth and servers API bearer timeouts.
This commit is contained in:
@@ -419,6 +419,9 @@ TOKEN="awp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
||||
# List panel users
|
||||
curl -H "Authorization: Bearer $TOKEN" http://your-panel:5000/api/users
|
||||
|
||||
# List SSH servers (no credentials in response)
|
||||
curl -H "Authorization: Bearer $TOKEN" http://your-panel:5000/api/servers
|
||||
|
||||
# Add a server
|
||||
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
|
||||
-d '{"host":"1.2.3.4","username":"root","password":"...","name":"new-srv"}' \
|
||||
|
||||
Reference in New Issue
Block a user