Skip to main content

Restore an app from a backup

Contributors dmp-netapp netapp-aoife

You can restore an application by creating a new app from a backup.

Step 1: Select the app to restore

Perform the workflow List the apps and select application you want to clone. Several of the resource values are needed for the REST call used to restore the app.

Step 2: Select the backup to use

Perform the workflow List the backups and select backup you want to use.

Step 3: Restore the app

Perform the following REST API call. You must provide the ID for either a backup (as shown below) or snapshot.

HTTP method and endpoint

This REST API call uses the following method and endpoint.

HTTP method Path

PUT

/accounts/{account_id}/k8s/v2/apps/{app_id}

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

JSON

Body

Yes

Provides the parameters for the cloned app. See the example below.

Curl example: Restore an app in place from a backup
curl --request PUT \
--location "https://astra.netapp.io/accounts/$ACCOUNT_ID/k8s/v2/apps/$APP_ID" \
--include \
--header "Content-Type: application/astra-app+json" \
--header "ForceUpdate: true" \
--header "Accept: */*" \
--header "Authorization: Bearer $API_TOKEN" \
--data @JSONinput
JSON input example
{
  "type": "application/astra-app",
  "version": "2.0",
  "backupID": "e24515bd-a28e-4b28-b832-f3c74dbf32fb"
}