Get Information

Get server specific information

1
curl "https://garry.host/api/client/servers/<id>" \
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/servers/<ID>
Parameter
Description
ID
The ID of the server that you are requesting.

URL Parameters

The above command returns JSON structured like this:
1
{
2
"object":"server",
3
"attributes":{
4
"server_owner":true,
5
"identifier":"d3aac109",
6
"uuid":"d3aac109-e5a0-4331-b03e-3454f7e136dc",
7
"name":"Survival",
8
"description":"",
9
"limits":{
10
"memory":1024,
11
"swap":0,
12
"disk":5000,
13
"io":500,
14
"cpu":200
15
},
16
"feature_limits":{
17
"databases":5,
18
"allocations":5
19
}
20
}
21
}
Copied!
This endpoint retrieves information for the specified server.

Get server resource utilization

URL Parameters

1
curl "https://garry.host/api/client/servers/<id>/utilization" \
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/servers/<ID>/utilization
Parameter
Description
ID
The ID of the server that you are requesting.
The above command returns JSON structured like this:
1
{
2
"object":"stats",
3
"attributes":{
4
"state":"on",
5
"memory":{
6
"current":375,
7
"limit":1024
8
},
9
"cpu":{
10
"current":1.522,
11
"cores":[
12
0.033,
13
0.048,
14
0.04,
15
0,
16
0.031,
17
0,
18
0.021,
19
0.024,
20
0.249,
21
0.042,
22
0.007,
23
0,
24
0.293,
25
0.003,
26
0.6,
27
0.131
28
],
29
"limit":200
30
},
31
"disk":{
32
"current":119,
33
"limit":5000
34
}
35
}
36
}
Copied!
This endpoint displays resource utilization of the specified server. If the server is offline, current data is displayed as 0 and the state is displayed as off.
Dernière mise à jour 2yr ago