Create a backup for an app
Suggest changes
You can create a backup for a specific application and then use the backup to restore or clone the app.
Before you begin
You must have the ID of the app you want to back up. If needed you can use the workflow List the apps to locate the application.
Create a backup
Perform the following REST API call.
HTTP method and endpoint
This REST API call uses the following method and endpoint.
HTTP method | Path |
---|---|
POST |
/accounts/{account_id}/k8s/v1/apps/{app_id}/appBackups |
Additional input parameters
In addition to the parameters common with all REST API calls, the following parameters are also used in the curl examples for this step.
Parameter | Type | Required | Description |
---|---|---|---|
app id |
Path |
Yes |
Identifies the application where the backup will be created. |
JSON |
Body |
Yes |
Provides the parameters for the backup. See the example below. |
Curl example: Create a backup for the app
curl --request POST \
--location "https://astra.netapp.io/accounts/$ACCOUNT_ID/k8s/v1/apps/$APP_ID/appBackups" \
--include \
--header "Content-Type: application/astra-appBackup+json" \
--header "Accept: */*" \
--header "Authorization: Bearer $API_TOKEN" \
--data @JSONinput
JSON input example
{
"type": "application/astra-appBackup",
"version": "1.1",
"name": "backup-david-1"
}