Retrieve information about scheduled backups for a specific virtual server (VM). It returns details about existing schedules, backup settings, and a history of previous backup operations. This information can be used to monitor and manage your VM's backup strategy. The endpoint returns an ID needed for follow-up calls, such as a `job_id` used to retrieve the status of a backup operation.
vmid integer · min: 1 required Example Unique vmid identifier
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 https://cloud.hostup.se/api/vm/{vmid}/backup-schedules curl -X GET "https://cloud.hostup.se/api/vm/10415/backup-schedules" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"success": true,
"schedules": [
{
"id": 0,
"client_id": "string",
"account_id": "string",
"vm_id": "string",
"enabled": true,
"schedule_type": "string",
"hour": 0,
"minute": 0,
"day_of_week": "string",
"day_of_month": "string",
"retention_count": 0,
"backup_mode": "string",
"compress": "string",
"notes": "string",
"last_run": "string",
"next_run": "string",
"created_at": "string",
"updated_at": "string",
"schedule_name": "string",
"schedule_time": "string",
"schedule_days": "string"
}
],
"settings": {
"id": 0,
"client_id": "string",
"account_id": "string",
"vm_id": "string",
"max_total_backups": 0,
"max_manual_backups": 0,
"max_scheduled_backups": 0,
"auto_delete_oldest": true,
"created_at": "string",
"updated_at": "string",
"manual_backups_active": 0,
"scheduled_backups_active": 0,
"total_backups_active": 0,
"available_scheduled_slots": 0
},
"history": [
{
"id": 0,
"client_id": "string",
"account_id": "string",
"vm_id": "string",
"backup_type": "string",
"schedule_id": "string",
"volid": "string",
"size": "string",
"notes": "string",
"status": "string",
"created_at": "string",
"deleted_at": "string",
"job_id": "string",
"error_message": "string"
}
],
"limits": {
"maxSchedules": 0,
"totalBackups": 0,
"maxRetention": 0,
"currentSchedules": 0,
"manualBackupsActive": 0,
"scheduledBackupsActive": 0,
"availableScheduledSlots": 0
}
}
}