Skip to content

Latest commit

 

History

History
64 lines (52 loc) · 1.54 KB

wf_create_snapshot.adoc

File metadata and controls

64 lines (52 loc) · 1.54 KB
sidebar permalink keywords summary
sidebar
workflows/wf_create_snapshot.html
You can create a snapshot for a specific application.

Create a snapshot for an app

You can create a snapshot for a specific application.

Before you begin

You must have the ID of the app you want to create a snapshot for. If needed you can use the workflow List the apps to locate the application.

1. Create a snapshot

Perform the following REST API call.

HTTP method Path

POST

/accounts/{account_id}/k8s/v1/apps/{app_id}/appSnaps

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 managed application where the snapshot will be created.

JSON

Body

Yes

Provides the parameters for the snapshot. See the example below.

JSON input example
{
  "type": "application/astra-appSnap",
  "version": "1.1",
  "name": "snapshot-david-1"
}
Curl example: Create a snapshot for the app
curl --location -i --request POST 'https://astra.netapp.io/accounts/<ACCOUNT_ID>/k8s/v1/apps/<APP_ID>/appSnaps' --header 'Content-Type: application/astra-appSnap+json' --header 'Accept: */*' --header 'Authorization: Bearer <API_TOKEN>' --data @JSONinput