BackupVault

class BackupVault : KotlinCustomResource

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:

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 the pulumi 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

Link copied to clipboard
val backupRegion: Output<String>?

Region in which backup is stored.

Link copied to clipboard
val backupVaultType: Output<String>

Type of the backup vault to be created. Default is IN_REGION. Possible values are: BACKUP_VAULT_TYPE_UNSPECIFIED, IN_REGION, CROSS_REGION.

Link copied to clipboard
val createTime: Output<String>

Create time of the backup vault. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".

Link copied to clipboard
val description: Output<String>?

An optional description of this resource.

Link copied to clipboard

Name of the Backup vault created in backup region.

Link copied to clipboard

All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val labels: Output<Map<String, String>>?

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.

Link copied to clipboard
val location: Output<String>

Location (region) of the backup vault.

Link copied to clipboard
val name: Output<String>

The resource name of the backup vault. Needs to be unique per location.

Link copied to clipboard
val project: Output<String>

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
val pulumiLabels: Output<Map<String, String>>

The combination of labels configured directly on the resource and default labels configured on the provider.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Name of the Backup vault created in source region.

Link copied to clipboard
val sourceRegion: Output<String>

Region in which the backup vault is created.

Link copied to clipboard
val state: Output<String>

The state of the Backup Vault.

Link copied to clipboard
val urn: Output<String>