Clone an app from a backup
You can create a new application by cloning it from a backup.
Before you begin
Note the following about this workflow:
-
An app backup is used
-
The clone operation is performed within the same cluster
To clone an app to a different cluster, you need to update the clusterId parameter in the JSON input as appropriate for your environment.
|
Step 1: Select the app to clone
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 clone the app.
Step 2: Select the backup to use
Perform the workflow List the backups and select backup you want to use.
Step 3: Clone the app
Perform the following REST API call.
This REST API call uses the following method and endpoint.
HTTP method | Path |
---|---|
POST |
/accounts/{account_id}/k8s/v2/qpps |
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 --request POST \
--location "https://astra.netapp.io/accounts/$ACCOUNT_ID/k8s/v2/apps" \
--include \
--header "Content-Type: application/astra-app+json" \
--header "Accept: */*" \
--header "Authorization: Bearer $API_TOKEN" \
--data @JSONinput
{
"type": "application/astra-app",
"version": "2.0",
"name": "mysql-clone3",
"clusterID": "30880586-d579-4d27-930f-a9633e59173b",
"sourceClusterID": "30880586-d579-4d27-930f-a9633e59173b",
"namespace": "mysql",
"backupID": "e24515bd-a28e-4b28-b832-f3c74dbf32fb"
}