Get snapshot
Retrieve snapshot for a specified virtual machine. Use this endpoint to view current VPS snapshot information.
Retrieve snapshot for a specified virtual machine.
Use this endpoint to view current VPS snapshot information.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
virtualMachineIdintegerRequiredExample:
Virtual Machine ID
1268054Responses
200
Success response
application/json
idintegerOptionalExample:
Snapshot ID
325restore_timeintegerOptionalExample:
Estimated snapshot restore time in seconds
1800created_atstring · date-timeOptionalExample:
2025-02-27T11:54:22Zexpires_atstring · date-timeOptionalExample:
2025-03-19T11:54:22Z401
Unauthenticated response
application/json
500
Error response
application/json
get/api/vps/v1/virtual-machines/{virtualMachineId}/snapshot
GET /api/vps/v1/virtual-machines/{virtualMachineId}/snapshot HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 325,
"restore_time": 1800,
"created_at": "2025-02-27T11:54:22Z",
"expires_at": "2025-03-19T11:54:22Z"
}Last updated
Was this helpful?