List Agency Plan order disk usage metrics
Returns aggregated disk and inode usage for the Agency Plan order over the selected time frame, plus the plan quotas.
Returns aggregated disk and inode usage for the Agency Plan order over the selected time frame, plus the plan quotas. Figures cover the whole order account. Values may be up to one hour stale. CPU, memory, and process usage are on the resource-usage-metrics endpoint.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
order_idintegerRequiredExample:
Agency Plan order ID
123456Query parameters
time_frame_daysinteger · enumOptionalDefault:
Length of the window in days, ending now. Bucket size grows with the window.
1Example: 7Possible values: Responses
200
Success response
application/json
401
Unauthenticated response
application/json
422
Validation error response
application/json
500
Error response
application/json
get/api/agency-hosting/v1/orders/{order_id}/disk-usage-metrics
GET /api/agency-hosting/v1/orders/{order_id}/disk-usage-metrics HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"limits": {
"disk_bytes": 104857600,
"inodes": 400000
},
"metrics": [
{
"disk_bytes": 104857600,
"inodes": 400000,
"timestamp": 1736325738
}
]
}Last updated
Was this helpful?