Retrieve detailed performance data for a specific virtual server (VM). This is useful for monitoring resources like CPU, memory, disk, and network usage over time. The endpoint returns a unique ID (requestId) that can be used in other API calls to track specific operations.
vmid integer · min: 1 required Example Unique vmid identifier
timeframe string required Accept Example Content-Type Example success boolean timestamp string requestId string data object error string message string code string timestamp string requestId string error string message string code string timestamp string requestId string error string message string code string timestamp string requestId string error string message string retryAfter string requestId string https://cloud.hostup.se/api/vm/{vmid}/metrics curl -X GET "https://cloud.hostup.se/api/vm/17127/metrics?timeframe=string" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"timestamps": [
0
],
"cpu": [
0
],
"memory": [
0
],
"diskread": [
0
],
"diskwrite": [
0
],
"netin": [
0
],
"netout": [
0
]
}
}