google_netapp_backup_policy

A backup policy is used to schedule backups at regular daily, weekly, or monthly intervals. Backup policies allow you to attach a backup schedule to a volume. The policy defines how many backups to retain at daily, weekly, or monthly intervals.

To get more information about backupPolicy, see:

Open in Cloud Shell

Example Usage - Netapp Backup Policy Full

resource "google_netapp_backup_policy" "test_backup_policy_full" {
  name          = "test-backup-policy-full"
  location = "us-central1"
  daily_backup_limit   = 2
  weekly_backup_limit  = 1
  monthly_backup_limit = 1
  description = "TF test backup schedule"
  enabled = true
  labels = {
    "foo" = "bar"
  }
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

backupPolicy can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import backupPolicy using one of the formats above. For example:

import {
  id = "projects/{{project}}/locations/{{location}}/backupPolicies/{{name}}"
  to = google_netapp_backup_policy.default
}

When using the terraform import command, backupPolicy can be imported using one of the formats above. For example:

$ terraform import google_netapp_backup_policy.default projects/{{project}}/locations/{{location}}/backupPolicies/{{name}}
$ terraform import google_netapp_backup_policy.default {{project}}/{{location}}/{{name}}
$ terraform import google_netapp_backup_policy.default {{location}}/{{name}}

User Project Overrides

This resource supports User Project Overrides.