Backup Vault
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:
How-to Guides
Example Usage
Netapp Backup Vault
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const testBackupVault = new gcp.netapp.BackupVault("test_backup_vault", {
name: "test-backup-vault",
location: "us-west1",
description: "Terraform created vault",
labels: {
creator: "testuser",
},
});
import pulumi
import pulumi_gcp as gcp
test_backup_vault = gcp.netapp.BackupVault("test_backup_vault",
name="test-backup-vault",
location="us-west1",
description="Terraform created vault",
labels={
"creator": "testuser",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var testBackupVault = new Gcp.Netapp.BackupVault("test_backup_vault", new()
{
Name = "test-backup-vault",
Location = "us-west1",
Description = "Terraform created vault",
Labels =
{
{ "creator", "testuser" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/netapp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := netapp.NewBackupVault(ctx, "test_backup_vault", &netapp.BackupVaultArgs{
Name: pulumi.String("test-backup-vault"),
Location: pulumi.String("us-west1"),
Description: pulumi.String("Terraform created vault"),
Labels: pulumi.StringMap{
"creator": pulumi.String("testuser"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.netapp.BackupVault;
import com.pulumi.gcp.netapp.BackupVaultArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testBackupVault = new BackupVault("testBackupVault", BackupVaultArgs.builder()
.name("test-backup-vault")
.location("us-west1")
.description("Terraform created vault")
.labels(Map.of("creator", "testuser"))
.build());
}
}
resources:
testBackupVault:
type: gcp:netapp:BackupVault
name: test_backup_vault
properties:
name: test-backup-vault
location: us-west1
description: Terraform created vault
labels:
creator: testuser
Import
BackupVault can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/backupVaults/{{name}}
{{project}}/{{location}}/{{name}}
{{location}}/{{name}}
When using thepulumi import
command, BackupVault can be imported using one of the formats above. For example:
$ pulumi import gcp:netapp/backupVault:BackupVault default projects/{{project}}/locations/{{location}}/backupVaults/{{name}}
$ pulumi import gcp:netapp/backupVault:BackupVault default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:netapp/backupVault:BackupVault default {{location}}/{{name}}
Properties
Region in which backup is stored.
Type of the backup vault to be created. Default is IN_REGION. Possible values are: BACKUP_VAULT_TYPE_UNSPECIFIED
, IN_REGION
, CROSS_REGION
.
Create time of the backup vault. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
An optional description of this resource.
Name of the Backup vault created in backup region.
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
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.
The combination of labels configured directly on the resource and default labels configured on the provider.
Name of the Backup vault created in source region.
Region in which the backup vault is created.