Create a data protection policy
Suggest changes
You can create a data protection policy based on one or more schedules.
Step 1: Select the app
Perform the workflow List the apps and select the desired application.
Step 2: Create the protection
Perform the following REST API call to create a protection policy for a specific app.
HTTP method and endpoint
This REST API call uses the following method and endpoint.
HTTP method | Path |
---|---|
POST |
/accounts/{account_id}/k8s/v1/apps/{app_id}/schedules |
Curl example
curl --request POST \
--location "https://astra.netapp.io/accounts/$ACCOUNT_ID/k8s/v1/apps/$APP_ID/schedules" \
--include \
--header "Accept: */*" \
--header "Authorization: Bearer $API_TOKEN" \
--data @JSONinput
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"
}