# Resources Usage
Get the disc usage of the server.
# HTTP Request:
GET https://api.serveravatar.com/organizations/{organization}/servers/{server}/usage
# Curl Request example:
curl --request GET \
--url "https://api.serveravatar.com/organizations/{organization}/servers/{server}/usage" \
--header 'content-type: application/json' \
--header 'Authorization: <YOUR API TOKEN>'
# Response:
# Resources Usage
- 200 (Ok)
{
"disk": {
"total": 19.32,
"usage_in_percentage": 28.11,
"usage": 5.43
},
"memory": {
"total": 0.46,
"available": 0.24
},
"serverLoad": 0,
"cores": 1,
"swapMemory": {
"total": 2,
"available": 1.86
},
"serverUptime": "up 1 day, 1 hour, 28 minutes",
"serverInfo": {
"nodeVersion": "v16.19.1",
"npmVersion": "8.19.3",
"processor": "Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz",
"timezone": "Etc\/UTC",
"restartRequired": "true"
}
}
# Organization Not Found
- 404 (Not found)
{
"message": "Organization not found."
}
# Processor Error
- 500 (Internal Server Error)
{
"message": "Something went really wrong while getting cpu info!"
}
# Server Not Found
- 404 (Not Found)
{
"message": "Server not found!"
}
# Server Error
- 500 (Internal Server Error)
{
"message": "Something went really wrong!"
}