Collect Information
CPU Usage
Collect Information
CPU Usage
This endpoint retrieves the CPU usage statistics for the specified KVM VPS.
The api_host
parameter, obtained from the “Create AUTH-session” response,
is dynamically set in the URL.
Provide the signature
, kvm_id
, and valid_until
parameters obtained
from the same response to access CPU usage data.
POST
/
kvm
/
v2
/
get
/
cpu_usage
curl --request POST \
--url https://{api_host}.edisglobal.com/kvm/v2/get/cpu_usage \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data signature=session_signature_12345 \
--data kvm_id=kvm_100200_300400 \
--data valid_until=2025-01-12T15:30:00Z
{
"status": "success",
"chart_cpu": "{\"datasets\":[{\"label\":\"CPU usage [%]\",\"type\":\"line\",\"borderWidth\":1,\"borderColor\":\"#46A546\",\"backgroundColor\":\"#46A546\",\"yAxisID\":\"y\",\"data\":[12,10,12,12,12,12,10,14,12,10,12,10,10,12,10,12,14,10,12,12,12,12,15,14,12,12,12,10,10,12,12,12,12,12,12,12,14,12,12,12,12,12,12,14,12,12,12,12,14,10,14,10,12,12,12,10,10,12,12,15,12,12,12,10,12,12,14,12,12,12,15,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,10,12,14,12,12,14,14,12,12,14,12,14,12,14,14,12,12,12,14,12,14,14,12,14,12,10,12,12,12,12,12,14,12,10,12,10,14,12,12,12,14,14,10,14,12,45,10,62,12,14,12,12,14,14,12,10,14,14,12,12,12,12,14,12,12,12,12,14,12,10,10,10,12,12,12,12,12,12,14,12,12,12,12,12,12,14,12,14,14,12,12,12,12,14,10,14,34,14,12,56,12,12,45,12,12,12,10,12,12,12,14,10,12,14,10,12,12,14,17,12,12,12,12,12,44,15,14,12,12,14,12,14,12,12,12,12,14,12,14,14,14,14,12,12,12,12,12,12,12,14,14,10,14,12,14,14,14,12,10,14,14,12,12,12,12,14,14,12,56,12,12,14,15,12,12,12,12,12,12,12,12,10,12,12,12,14,56,12,12,14,10,14,45,14,27,14,12,14,15,12,14,12,14,10,12,12,14,15,14,14,12,10,14,12,12,12,12,14,14,14,12,12,12,14,14,10,12,12,14,12,12,12,12,12,10,10,14,12,12,12,12,12,12,14,12,14,14,10,30,14,12,14,12,14,12,12,12,12,10,12,14,10,10,12,12,12,17,12,12,12,12,10,14,12,10,12,12,12,10,10,12,12,12,12,14,10,12,14,12,12,12,12,12,12,12,12,12,14,10,12,12,14,14,12,12,14,10,10,10,12,14,12,12,12,12,12,10,12,10,12,12,12,12,10,12,12,12,12,49,12,12,19,12,12,10,12,10,12,12,12,12,14,12,12,12,12,12,12,12,12,12,12,12,12,14,10,10,10,12,12,12,12,12,10,14,14,10,12,12,12,12,12,12,12,12,12,12,10,12,12,10,14,14,10,12,14,12,12,12,12,12,14,12,12,14,12,12,12,14,14,12,12,12,12,14,12,12,14,10,12,12,12,12,12,14,10,12,10,12,12,12,12,12,10,12,14,14,12,12,12,14,12,12,12,12,14,12,17,14,10,12,14,12,12,12,14,12,12,14,10,14,10,14,14,14,12,12,14,14,14,12,12,10,14,14,14,14,12,12,12,14,12,12,12,14,12,12,12,12,12,14,14,12,14,12,14,14,12,12,14,12,12,14,12,14,12,12,12,12,12,12,14,14,12,15,10,14,10,12,10,10,12,12,12,12,12,12,14,12,12,12,12,12,12,12,12,12,12,14,14,12,12,12,15,12,14,15,12,12,14,14,12,12,12,10,12,12,12,14,12,12,12,12,14,14,12,12,12,14,12,14,14,12,10,12,12,12,12,12,14,14,14,15,12,12,10,14,14,14,12,12,14,12,12,12,12,12,44,14,15,12,12,12,12,12,12,14,12,12,12,10,10,14,12,12,15,14,12,10,12,12,12,14,12,10,14,12,14,14,12,12,12,12,20,14,12,12,12,12,14,12,15,14]}],\"labels\":[\"08:05\",\"10:02\"]}"
}
Body
application/x-www-form-urlencoded
Required parameters to fetch CPU usage statistics for a KVM VPS.
All parameters must be passed in the request body as `application/x-www-form-urlencoded`.
The body is of type object
.
Response
200
application/json
CPU usage data retrieved successfully.
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://{api_host}.edisglobal.com/kvm/v2/get/cpu_usage \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data signature=session_signature_12345 \
--data kvm_id=kvm_100200_300400 \
--data valid_until=2025-01-12T15:30:00Z
{
"status": "success",
"chart_cpu": "{\"datasets\":[{\"label\":\"CPU usage [%]\",\"type\":\"line\",\"borderWidth\":1,\"borderColor\":\"#46A546\",\"backgroundColor\":\"#46A546\",\"yAxisID\":\"y\",\"data\":[12,10,12,12,12,12,10,14,12,10,12,10,10,12,10,12,14,10,12,12,12,12,15,14,12,12,12,10,10,12,12,12,12,12,12,12,14,12,12,12,12,12,12,14,12,12,12,12,14,10,14,10,12,12,12,10,10,12,12,15,12,12,12,10,12,12,14,12,12,12,15,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,10,12,14,12,12,14,14,12,12,14,12,14,12,14,14,12,12,12,14,12,14,14,12,14,12,10,12,12,12,12,12,14,12,10,12,10,14,12,12,12,14,14,10,14,12,45,10,62,12,14,12,12,14,14,12,10,14,14,12,12,12,12,14,12,12,12,12,14,12,10,10,10,12,12,12,12,12,12,14,12,12,12,12,12,12,14,12,14,14,12,12,12,12,14,10,14,34,14,12,56,12,12,45,12,12,12,10,12,12,12,14,10,12,14,10,12,12,14,17,12,12,12,12,12,44,15,14,12,12,14,12,14,12,12,12,12,14,12,14,14,14,14,12,12,12,12,12,12,12,14,14,10,14,12,14,14,14,12,10,14,14,12,12,12,12,14,14,12,56,12,12,14,15,12,12,12,12,12,12,12,12,10,12,12,12,14,56,12,12,14,10,14,45,14,27,14,12,14,15,12,14,12,14,10,12,12,14,15,14,14,12,10,14,12,12,12,12,14,14,14,12,12,12,14,14,10,12,12,14,12,12,12,12,12,10,10,14,12,12,12,12,12,12,14,12,14,14,10,30,14,12,14,12,14,12,12,12,12,10,12,14,10,10,12,12,12,17,12,12,12,12,10,14,12,10,12,12,12,10,10,12,12,12,12,14,10,12,14,12,12,12,12,12,12,12,12,12,14,10,12,12,14,14,12,12,14,10,10,10,12,14,12,12,12,12,12,10,12,10,12,12,12,12,10,12,12,12,12,49,12,12,19,12,12,10,12,10,12,12,12,12,14,12,12,12,12,12,12,12,12,12,12,12,12,14,10,10,10,12,12,12,12,12,10,14,14,10,12,12,12,12,12,12,12,12,12,12,10,12,12,10,14,14,10,12,14,12,12,12,12,12,14,12,12,14,12,12,12,14,14,12,12,12,12,14,12,12,14,10,12,12,12,12,12,14,10,12,10,12,12,12,12,12,10,12,14,14,12,12,12,14,12,12,12,12,14,12,17,14,10,12,14,12,12,12,14,12,12,14,10,14,10,14,14,14,12,12,14,14,14,12,12,10,14,14,14,14,12,12,12,14,12,12,12,14,12,12,12,12,12,14,14,12,14,12,14,14,12,12,14,12,12,14,12,14,12,12,12,12,12,12,14,14,12,15,10,14,10,12,10,10,12,12,12,12,12,12,14,12,12,12,12,12,12,12,12,12,12,14,14,12,12,12,15,12,14,15,12,12,14,14,12,12,12,10,12,12,12,14,12,12,12,12,14,14,12,12,12,14,12,14,14,12,10,12,12,12,12,12,14,14,14,15,12,12,10,14,14,14,12,12,14,12,12,12,12,12,44,14,15,12,12,12,12,12,12,14,12,12,12,10,10,14,12,12,15,14,12,10,12,12,12,14,12,10,14,12,14,14,12,12,12,12,20,14,12,12,12,12,14,12,15,14]}],\"labels\":[\"08:05\",\"10:02\"]}"
}