A newer release of this product is available.
Restore a managed app from a backup
Suggest changes
You can restore a managed application by creating a new app from a backup.
1. Select the managed app to restore
Perform the workflow List the managed apps and select application you want to clone. Several of the resource values are needed for the REST call used to clone the app.
2. Select the backup to use
Perform the workflow List the backups and select backup you want to use.
3. Restore the app
Perform the following REST API call.
HTTP method | Path |
---|---|
POST |
/account/{accountID}/k8s/v1/managedApps |
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. |
JSON input example
{
"type": "application/astra-managedApp",
"version": "1.0",
"name": "postgres1-postgresql-clone",
"clusterID": "30880586-d579-4d27-930f-a9633e59173b",
"sourceClusterID": "30880586-d579-4d27-930f-a9633e59173b",
"namespace": "davidns-postgres-app",
"backupID": "e24515bd-a28e-4b28-b832-f3c74dbf32fb",
"sourceAppID": "e591ee59-ea90-4a9f-8e6c-d2b6e8647096"
}
Curl example: Clone an app from a backup
curl --location -i --request POST 'https://astra.netapp.io/accounts/<ACCOUNT_ID>/k8s/v1/managedApps' --header 'Content-Type: application/astra-managedApp+json' --header '*/*' --header 'Authorization: Bearer <API_TOKEN>' --d @JSONinput