Volumes /
Backup volume
Initiates a backup for a given volume
Required permission
Project > Volumes > Backups > Create
Path parameters
projectId
string requiredID of the projectvolumeId
string requiredID of the volume
Request body
- {object}
name
string requiredThe name of the backup.min length3max length39pattern^[a-zA-Z]((-|\s)?[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*)?$description
stringThe description for the backup.max length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$
Response body
- {object}Response object.
data
{object} requiredResult data.id
string requiredIdentifier for the backupname
string requireddescription
stringstatus
string requiredspec
{object}source
{object}type
stringsourceObject
{object}id
string requiredspec
{object}createdAt
stringtime of creationupdatedAt
stringtime of update
API
CLI
JS Client
POST /v1/projects/{projectId}/volumes/{volumeId}/backups
Example request
Request body
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"name":"Example Backup","description":"Example backup description"}' \
https://api.northflank.com/v1/projects/{projectId}/volumes/{volumeId}/backupsExample response
200 OK
Details about the created volume backup.
JSON
{
"data": {
"id": "example-backup"
}
}