Adds a new backup destination to this account.
Required permission
Account > Platform > BackupDestinations > 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 ofs3usage
string requiredThe backup workload that can use this destination.one ofglobalBackups, containerSnapshotsprefix
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.authMode
stringWhether the destination authenticates with static AWS credentials or a workload identity.one ofstaticCreds, workloadIdentityworkloadIdentityId
(multiple options: oneOf)- string
- string
accessKey
(multiple options: oneOf)- string
secretKey
(multiple options: oneOf)- string
bucketName
string requiredregion
string requiredendpoint
string requiredS3 destination including region, fe s3.us-west-2.amazonaws.comenableObjectLock
booleanEnable S3 Object Lock (WORM) for this destination. Immutable after creation. Bucket must have Object Lock enabled.objectLockRetentionDays
integerRetention period in days for object-locked blobs. Required if enableObjectLock is true. Immutable after creation.min1max365
OR
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 ofs3usage
string requiredThe backup workload that can use this destination.one ofglobalBackups, containerSnapshotsprefix
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.authMode
stringWhether the destination authenticates with static AWS credentials or a workload identity.one ofstaticCreds, workloadIdentityworkloadIdentityId
(multiple options: oneOf)- string
- string
accessKey
(multiple options: oneOf)- string
secretKey
(multiple options: oneOf)- string
bucketName
string requiredregion
string requiredendpoint
string requiredS3 destination including region, fe s3.us-west-2.amazonaws.comenableObjectLock
booleanEnable S3 Object Lock (WORM) for this destination. Immutable after creation. Bucket must have Object Lock enabled.objectLockRetentionDays
integerRetention period in days for object-locked blobs. Required if enableObjectLock is true. Immutable after creation.min1max365id
string requiredIdentifier for the backup destinationcreatedAt
stringtime of creationupdatedAt
stringtime of update
OR
API
CLI
JS Client
POST /v1/backup-destinations
POST /v1/teams/{teamId}/backup-destinations
Example request
Request body
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"name":"Example Backup Destination","type":"s3","usage":"globalBackups","prefix":"example/","credentials":{"bucketName":"string","region":"string","endpoint":"string"}}' \
https://api.northflank.com/v1/backup-destinationsExample response
200 OK
Data about the newly created backup destination.
JSON
{
"data": {
"name": "Example Backup Destination",
"id": "example-backup-destination"
}
}