google_netapp_volume_snapshot

NetApp Volumes helps you manage your data usage with snapshots that can quickly restore lost data. Snapshots are point-in-time versions of your volume's content. They are resources of volumes and are instant captures of your data that consume space only for modified data. Because data changes over time, snapshots usually consume more space as they get older. NetApp Volumes volumes use just-in-time copy-on-write so that unmodified files in snapshots don't consume any of the volume's capacity.

To get more information about VolumeSnapshot, see:

Open in Cloud Shell

Example Usage - Volume Snapshot Create

resource "google_netapp_storage_pool" "default" {
  name = "test-pool"
  location = "us-west2"
  service_level = "PREMIUM"
  capacity_gib = 2048
  network = data.google_compute_network.default.id
}

resource "google_netapp_volume" "default" {
  location = google_netapp_storage_pool.default.location
  name = "test-volume"
  capacity_gib = 100
  share_name = "test-volume"
  storage_pool = google_netapp_storage_pool.default.name
  protocols = ["NFSV3"]
}

resource "google_netapp_volume_snapshot" "test_snapshot" {
  depends_on = [google_netapp_volume.default]
  location = google_netapp_volume.default.location
  volume_name = google_netapp_volume.default.name
  name = "testvolumesnap"
}

data "google_compute_network" "default" {
  name = "test-network"
}

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

VolumeSnapshot can be imported using any of these accepted formats:

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

import {
  id = "projects/{{project}}/locations/{{location}}/volumes/{{volume_name}}/snapshots/{{name}}"
  to = google_netapp_volume_snapshot.default
}

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

$ terraform import google_netapp_volume_snapshot.default projects/{{project}}/locations/{{location}}/volumes/{{volume_name}}/snapshots/{{name}}
$ terraform import google_netapp_volume_snapshot.default {{project}}/{{location}}/{{volume_name}}/{{name}}
$ terraform import google_netapp_volume_snapshot.default {{location}}/{{volume_name}}/{{name}}

User Project Overrides

This resource supports User Project Overrides.