post
/v1/backupsCreate backup
Create a backup of a volume
Request Body
requiredContent-Type: application/json
volume_id
string<uuid>requiredVolume to backup
name
stringoptionaldescription
stringoptionalcontainer
stringoptionalBackup container
incremental
booleanoptionalCreate incremental backup
Default: false
force
booleanoptionalForce backup even if volume is attached
Default: false
snapshot_id
string<uuid>optionalCreate backup from snapshot instead of volume
metadata
objectoptionalResponses
202
Backup creation initiated
Content-Type: application/json
backup
objectoptional400
Invalid request parameters
Content-Type: application/json
error
objectrequired401
Authentication required or token invalid
Content-Type: application/json
error
objectrequired404
Volume not found
Content-Type: application/json
error
objectrequired409
Volume is not in a state that allows backup
Content-Type: application/json
error
objectrequired500
Internal server error
Content-Type: application/json
error
objectrequiredcurl -X POST "https://api.spo1.mycloud.com/v1/backups" \-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \-H "Content-Type: application/json" \-d '{"volume_id": "550e8400-e29b-41d4-a716-446655440000","name": "backup-2024-01-15","description": "string","container": "string","incremental": false,"force": false,"snapshot_id": "550e8400-e29b-41d4-a716-446655440000","metadata": {"environment": "production","team": "backend"}}'