A backup vault is the location where backups are stored. You can only create one backup vault per region. A vault can hold multiple backups for multiple volumes in that region.
To get more information about backupVault, see:
resource "google_netapp_backup_vault" "test_backup_vault" {
name = "test-backup-vault"
location = "us-central1"
description = "Terraform created vault"
labels = {
"creator": "testuser"
}
}
The following arguments are supported:
location
-
(Required)
Location (region) of the backup vault.
name
-
(Required)
The resource name of the backup vault. Needs to be unique per location.
description
-
(Optional)
An optional description of this resource.
labels
-
(Optional)
Labels as key value pairs. Example: { "owner": "Bob", "department": "finance", "purpose": "testing" }
.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field effective_labels
for all of the labels present on the resource.
project
- (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format projects/{{project}}/locations/{{location}}/backupVaults/{{name}}
state
-
The state of the Backup Vault.
create_time
-
Create time of the backup vault. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
terraform_labels
-
The combination of labels configured directly on the resource
and default labels configured on the provider.
effective_labels
-
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.backupVault can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/backupVaults/{{name}}
{{project}}/{{location}}/{{name}}
{{location}}/{{name}}
In Terraform v1.5.0 and later, use an import
block to import backupVault using one of the formats above. For example:
import {
id = "projects/{{project}}/locations/{{location}}/backupVaults/{{name}}"
to = google_netapp_backup_vault.default
}
When using the terraform import
command, backupVault can be imported using one of the formats above. For example:
$ terraform import google_netapp_backup_vault.default projects/{{project}}/locations/{{location}}/backupVaults/{{name}}
$ terraform import google_netapp_backup_vault.default {{project}}/{{location}}/{{name}}
$ terraform import google_netapp_backup_vault.default {{location}}/{{name}}
This resource supports User Project Overrides.