List Servers

List all servers

1
curl "https://garry.host/api/client" \
2
-H "Authorization: Bearer api" \
3
-H "Content-Type: application/json" \
4
-H "Accept: Application/vnd.pterodactyl.v1+json" \
5
-X GET
Copied!

HTTP Request

GET https://garry.host/api/client
The above command returns JSON structured like this:
1
{
2
"object":"list",
3
"data":[
4
{
5
"object":"server",
6
"attributes":{
7
"server_owner":true,
8
"identifier":"d3aac109",
9
"uuid":"d3aac109-e5a0-4331-b03e-3454f7e136dc",
10
"name":"Survival",
11
"description":"",
12
"limits":{
13
"memory":1024,
14
"swap":0,
15
"disk":5000,
16
"io":500,
17
"cpu":200
18
},
19
"feature_limits":{
20
"databases":5,
21
"allocations":5
22
}
23
}
24
}
25
],
26
"meta":{
27
"pagination":{
28
"total":1,
29
"count":1,
30
"per_page":25,
31
"current_page":1,
32
"total_pages":1,
33
"links":[
34
35
]
36
}
37
}
38
}
Copied!
Dernière mise à jour 2yr ago
Copier le lien