Skip to main content

Create a data protection policy

Contributors dmp-netapp

You can create a data protection policy based on one or more schedules.

1. Select the app

Perform the workflow List the apps and select the desired application.

2. Create the protection

Perform the following REST API call to create a protection policy for a specific app.

HTTP method Path

POST

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

JSON input example
{
  "type": "application/astra-schedule",
  "version": "1.3",
  "name": "Backup Schedule",
  "enabled": "true",
  "granularity": "monthly",
  "minute": "0",
  "hour": "0",
  "dayOfMonth": "1",
  "snapshotRetention": "12",
  "backupRetention": "12"
}
Curl example
curl --location -i --request POST 'https://astra.netapp.io/accounts/<ACCOUNT_ID>/k8s/v1/apps/<APP_ID>/schedules' --header 'Accept: */*' --header 'Authorization: Bearer <API_TOKEN>' --data @JSONinput