Backup Destinations /
Add backup destination
Adds a new backup destination to this account.
Required permission
Account > BackupDestinations > General > Create
Request body
- {object}
name
string requiredThe name of the backup destination.min length3max length100pattern^[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*$description
stringmax length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$type
string requiredType of the backup destination.one ofs3prefix
string requiredA prefix path to add to the bucket objects if not writing to /pattern^([a-zA-Z0-9-_]+)\/$credentials
{object} requiredCredentials used for the backup destination.accessKey
string requiredsecretKey
string requiredbucketName
string requiredregion
string requiredendpoint
string requiredS3 destination including region, fe s3.us-west-2.amazonaws.com
Response body
- {object}Response object.
data
{object} requiredResult data.name
string requiredThe name of the backup destination.min length3max length100pattern^[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*$description
stringmax length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$type
string requiredType of the backup destination.one ofs3prefix
string requiredA prefix path to add to the bucket objects if not writing to /pattern^([a-zA-Z0-9-_]+)\/$credentials
{object} requiredCredentials used for the backup destination.accessKey
string requiredsecretKey
string requiredbucketName
string requiredregion
string requiredendpoint
string requiredS3 destination including region, fe s3.us-west-2.amazonaws.comid
string requiredIdentifier for the backup destinationcreatedAt
stringtime of creationupdatedAt
stringtime of update
API
CLI
JS Client
POST /v1/backup-destinations
Example request
Request body
curl
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"name":"Example Backup Destination"}' \
https://api.northflank.com/v1/backup-destinations
Example response
200 OK
Data about the newly created backup destination.
JSON
{
"data": {
"name": "Example Backup Destination",
"id": "example-backup-destination"
}
}