google_netapp_volume

A volume is a file system container in a storage pool that stores application, database, and user data.

You can create a volume's capacity using the available capacity in the storage pool and you can define and resize the capacity without disruption to any processes.

Storage pool settings apply to the volumes contained within them automatically.

To get more information about Volume, see:

Open in Cloud Shell

Example Usage - Netapp Volume Basic

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" "test_volume" {
  location = "us-west2"
  name = "test-volume"
  capacity_gib = "100"
  share_name = "test-volume"
  storage_pool = google_netapp_storage_pool.default.name
  protocols = ["NFSV3"]
  deletion_policy = "DEFAULT"
}

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

Argument Reference

The following arguments are supported:


The export_policy block supports:

The rules block supports:

The restore_parameters block supports:

The snapshot_policy block supports:

The hourly_schedule block supports:

The daily_schedule block supports:

The weekly_schedule block supports:

The monthly_schedule block supports:

Attributes Reference

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

The mount_options block contains:

Timeouts

This resource provides the following Timeouts configuration options:

Import

Volume can be imported using any of these accepted formats:

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

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

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

$ terraform import google_netapp_volume.default projects/{{project}}/locations/{{location}}/volumes/{{name}}
$ terraform import google_netapp_volume.default {{project}}/{{location}}/{{name}}
$ terraform import google_netapp_volume.default {{location}}/{{name}}

User Project Overrides

This resource supports User Project Overrides.