gcp.netapp.BackupVault
Explore with Pulumi AI
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:
- API documentation
- 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",
})
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
})
}
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 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
Create BackupVault Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BackupVault(name: string, args: BackupVaultArgs, opts?: CustomResourceOptions);
@overload
def BackupVault(resource_name: str,
args: BackupVaultArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BackupVault(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
backup_region: Optional[str] = None,
backup_retention_policy: Optional[BackupVaultBackupRetentionPolicyArgs] = None,
backup_vault_type: Optional[str] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project: Optional[str] = None)
func NewBackupVault(ctx *Context, name string, args BackupVaultArgs, opts ...ResourceOption) (*BackupVault, error)
public BackupVault(string name, BackupVaultArgs args, CustomResourceOptions? opts = null)
public BackupVault(String name, BackupVaultArgs args)
public BackupVault(String name, BackupVaultArgs args, CustomResourceOptions options)
type: gcp:netapp:BackupVault
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args BackupVaultArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BackupVaultArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BackupVaultArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupVaultArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BackupVaultArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var gcpBackupVaultResource = new Gcp.Netapp.BackupVault("gcpBackupVaultResource", new()
{
Location = "string",
BackupRegion = "string",
BackupRetentionPolicy = new Gcp.Netapp.Inputs.BackupVaultBackupRetentionPolicyArgs
{
BackupMinimumEnforcedRetentionDays = 0,
DailyBackupImmutable = false,
ManualBackupImmutable = false,
MonthlyBackupImmutable = false,
WeeklyBackupImmutable = false,
},
BackupVaultType = "string",
Description = "string",
Labels =
{
{ "string", "string" },
},
Name = "string",
Project = "string",
});
example, err := netapp.NewBackupVault(ctx, "gcpBackupVaultResource", &netapp.BackupVaultArgs{
Location: pulumi.String("string"),
BackupRegion: pulumi.String("string"),
BackupRetentionPolicy: &netapp.BackupVaultBackupRetentionPolicyArgs{
BackupMinimumEnforcedRetentionDays: pulumi.Int(0),
DailyBackupImmutable: pulumi.Bool(false),
ManualBackupImmutable: pulumi.Bool(false),
MonthlyBackupImmutable: pulumi.Bool(false),
WeeklyBackupImmutable: pulumi.Bool(false),
},
BackupVaultType: pulumi.String("string"),
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var gcpBackupVaultResource = new com.pulumi.gcp.netapp.BackupVault("gcpBackupVaultResource", com.pulumi.gcp.netapp.BackupVaultArgs.builder()
.location("string")
.backupRegion("string")
.backupRetentionPolicy(BackupVaultBackupRetentionPolicyArgs.builder()
.backupMinimumEnforcedRetentionDays(0)
.dailyBackupImmutable(false)
.manualBackupImmutable(false)
.monthlyBackupImmutable(false)
.weeklyBackupImmutable(false)
.build())
.backupVaultType("string")
.description("string")
.labels(Map.of("string", "string"))
.name("string")
.project("string")
.build());
gcp_backup_vault_resource = gcp.netapp.BackupVault("gcpBackupVaultResource",
location="string",
backup_region="string",
backup_retention_policy={
"backup_minimum_enforced_retention_days": 0,
"daily_backup_immutable": False,
"manual_backup_immutable": False,
"monthly_backup_immutable": False,
"weekly_backup_immutable": False,
},
backup_vault_type="string",
description="string",
labels={
"string": "string",
},
name="string",
project="string")
const gcpBackupVaultResource = new gcp.netapp.BackupVault("gcpBackupVaultResource", {
location: "string",
backupRegion: "string",
backupRetentionPolicy: {
backupMinimumEnforcedRetentionDays: 0,
dailyBackupImmutable: false,
manualBackupImmutable: false,
monthlyBackupImmutable: false,
weeklyBackupImmutable: false,
},
backupVaultType: "string",
description: "string",
labels: {
string: "string",
},
name: "string",
project: "string",
});
type: gcp:netapp:BackupVault
properties:
backupRegion: string
backupRetentionPolicy:
backupMinimumEnforcedRetentionDays: 0
dailyBackupImmutable: false
manualBackupImmutable: false
monthlyBackupImmutable: false
weeklyBackupImmutable: false
backupVaultType: string
description: string
labels:
string: string
location: string
name: string
project: string
BackupVault Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The BackupVault resource accepts the following input properties:
- Location string
- Location (region) of the backup vault.
- Backup
Region string - Region in which backup is stored.
- Backup
Retention BackupPolicy Vault Backup Retention Policy - Backup retention policy defining the retention of the backups. Structure is documented below.
- Backup
Vault stringType - Type of the backup vault to be created. Default is IN_REGION.
Possible values are:
BACKUP_VAULT_TYPE_UNSPECIFIED
,IN_REGION
,CROSS_REGION
. - Description string
- An optional description of this resource.
- Labels Dictionary<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.- Name string
- The resource name of the backup vault. Needs to be unique per location.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Location string
- Location (region) of the backup vault.
- Backup
Region string - Region in which backup is stored.
- Backup
Retention BackupPolicy Vault Backup Retention Policy Args - Backup retention policy defining the retention of the backups. Structure is documented below.
- Backup
Vault stringType - Type of the backup vault to be created. Default is IN_REGION.
Possible values are:
BACKUP_VAULT_TYPE_UNSPECIFIED
,IN_REGION
,CROSS_REGION
. - Description string
- An optional description of this resource.
- Labels 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.- Name string
- The resource name of the backup vault. Needs to be unique per location.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- Location (region) of the backup vault.
- backup
Region String - Region in which backup is stored.
- backup
Retention BackupPolicy Vault Backup Retention Policy - Backup retention policy defining the retention of the backups. Structure is documented below.
- backup
Vault StringType - Type of the backup vault to be created. Default is IN_REGION.
Possible values are:
BACKUP_VAULT_TYPE_UNSPECIFIED
,IN_REGION
,CROSS_REGION
. - description String
- An optional description of this resource.
- labels 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.- name String
- The resource name of the backup vault. Needs to be unique per location.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location string
- Location (region) of the backup vault.
- backup
Region string - Region in which backup is stored.
- backup
Retention BackupPolicy Vault Backup Retention Policy - Backup retention policy defining the retention of the backups. Structure is documented below.
- backup
Vault stringType - Type of the backup vault to be created. Default is IN_REGION.
Possible values are:
BACKUP_VAULT_TYPE_UNSPECIFIED
,IN_REGION
,CROSS_REGION
. - description string
- An optional description of this resource.
- labels {[key: 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.- name string
- The resource name of the backup vault. Needs to be unique per location.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location str
- Location (region) of the backup vault.
- backup_
region str - Region in which backup is stored.
- backup_
retention_ Backuppolicy Vault Backup Retention Policy Args - Backup retention policy defining the retention of the backups. Structure is documented below.
- backup_
vault_ strtype - Type of the backup vault to be created. Default is IN_REGION.
Possible values are:
BACKUP_VAULT_TYPE_UNSPECIFIED
,IN_REGION
,CROSS_REGION
. - description str
- An optional description of this resource.
- labels Mapping[str, str]
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.- name str
- The resource name of the backup vault. Needs to be unique per location.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- Location (region) of the backup vault.
- backup
Region String - Region in which backup is stored.
- backup
Retention Property MapPolicy - Backup retention policy defining the retention of the backups. Structure is documented below.
- backup
Vault StringType - Type of the backup vault to be created. Default is IN_REGION.
Possible values are:
BACKUP_VAULT_TYPE_UNSPECIFIED
,IN_REGION
,CROSS_REGION
. - description String
- An optional description of this resource.
- labels Map<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.- name String
- The resource name of the backup vault. Needs to be unique per location.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the BackupVault resource produces the following output properties:
- Create
Time string - Create time of the backup vault. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- Destination
Backup stringVault - Name of the Backup vault created in backup region.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Source
Backup stringVault - Name of the Backup vault created in source region.
- Source
Region string - Region in which the backup vault is created.
- State string
- The state of the Backup Vault.
- Create
Time string - Create time of the backup vault. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- Destination
Backup stringVault - Name of the Backup vault created in backup region.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Source
Backup stringVault - Name of the Backup vault created in source region.
- Source
Region string - Region in which the backup vault is created.
- State string
- The state of the Backup Vault.
- create
Time String - Create time of the backup vault. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- destination
Backup StringVault - Name of the Backup vault created in backup region.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- source
Backup StringVault - Name of the Backup vault created in source region.
- source
Region String - Region in which the backup vault is created.
- state String
- The state of the Backup Vault.
- create
Time string - Create time of the backup vault. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- destination
Backup stringVault - Name of the Backup vault created in backup region.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id string
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- source
Backup stringVault - Name of the Backup vault created in source region.
- source
Region string - Region in which the backup vault is created.
- state string
- The state of the Backup Vault.
- create_
time str - Create time of the backup vault. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- destination_
backup_ strvault - Name of the Backup vault created in backup region.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id str
- The provider-assigned unique ID for this managed resource.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- source_
backup_ strvault - Name of the Backup vault created in source region.
- source_
region str - Region in which the backup vault is created.
- state str
- The state of the Backup Vault.
- create
Time String - Create time of the backup vault. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- destination
Backup StringVault - Name of the Backup vault created in backup region.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- source
Backup StringVault - Name of the Backup vault created in source region.
- source
Region String - Region in which the backup vault is created.
- state String
- The state of the Backup Vault.
Look up Existing BackupVault Resource
Get an existing BackupVault resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BackupVaultState, opts?: CustomResourceOptions): BackupVault
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_region: Optional[str] = None,
backup_retention_policy: Optional[BackupVaultBackupRetentionPolicyArgs] = None,
backup_vault_type: Optional[str] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
destination_backup_vault: Optional[str] = None,
effective_labels: Optional[Mapping[str, str]] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
source_backup_vault: Optional[str] = None,
source_region: Optional[str] = None,
state: Optional[str] = None) -> BackupVault
func GetBackupVault(ctx *Context, name string, id IDInput, state *BackupVaultState, opts ...ResourceOption) (*BackupVault, error)
public static BackupVault Get(string name, Input<string> id, BackupVaultState? state, CustomResourceOptions? opts = null)
public static BackupVault get(String name, Output<String> id, BackupVaultState state, CustomResourceOptions options)
resources: _: type: gcp:netapp:BackupVault get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Backup
Region string - Region in which backup is stored.
- Backup
Retention BackupPolicy Vault Backup Retention Policy - Backup retention policy defining the retention of the backups. Structure is documented below.
- Backup
Vault stringType - 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 string - Create time of the backup vault. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- Description string
- An optional description of this resource.
- Destination
Backup stringVault - Name of the Backup vault created in backup region.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Labels Dictionary<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.- Location string
- Location (region) of the backup vault.
- Name string
- The resource name of the backup vault. Needs to be unique per location.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Source
Backup stringVault - Name of the Backup vault created in source region.
- Source
Region string - Region in which the backup vault is created.
- State string
- The state of the Backup Vault.
- Backup
Region string - Region in which backup is stored.
- Backup
Retention BackupPolicy Vault Backup Retention Policy Args - Backup retention policy defining the retention of the backups. Structure is documented below.
- Backup
Vault stringType - 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 string - Create time of the backup vault. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- Description string
- An optional description of this resource.
- Destination
Backup stringVault - Name of the Backup vault created in backup region.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Labels 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.- Location string
- Location (region) of the backup vault.
- Name string
- The resource name of the backup vault. Needs to be unique per location.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Source
Backup stringVault - Name of the Backup vault created in source region.
- Source
Region string - Region in which the backup vault is created.
- State string
- The state of the Backup Vault.
- backup
Region String - Region in which backup is stored.
- backup
Retention BackupPolicy Vault Backup Retention Policy - Backup retention policy defining the retention of the backups. Structure is documented below.
- backup
Vault StringType - 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 String - Create time of the backup vault. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- description String
- An optional description of this resource.
- destination
Backup StringVault - Name of the Backup vault created in backup region.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels 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.- location String
- Location (region) of the backup vault.
- name String
- The resource name of the backup vault. Needs to be unique per location.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- source
Backup StringVault - Name of the Backup vault created in source region.
- source
Region String - Region in which the backup vault is created.
- state String
- The state of the Backup Vault.
- backup
Region string - Region in which backup is stored.
- backup
Retention BackupPolicy Vault Backup Retention Policy - Backup retention policy defining the retention of the backups. Structure is documented below.
- backup
Vault stringType - 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 string - Create time of the backup vault. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- description string
- An optional description of this resource.
- destination
Backup stringVault - Name of the Backup vault created in backup region.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels {[key: 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.- location string
- Location (region) of the backup vault.
- name string
- The resource name of the backup vault. Needs to be unique per location.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- source
Backup stringVault - Name of the Backup vault created in source region.
- source
Region string - Region in which the backup vault is created.
- state string
- The state of the Backup Vault.
- backup_
region str - Region in which backup is stored.
- backup_
retention_ Backuppolicy Vault Backup Retention Policy Args - Backup retention policy defining the retention of the backups. Structure is documented below.
- backup_
vault_ strtype - 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 str - Create time of the backup vault. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- description str
- An optional description of this resource.
- destination_
backup_ strvault - Name of the Backup vault created in backup region.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Mapping[str, str]
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.- location str
- Location (region) of the backup vault.
- name str
- The resource name of the backup vault. Needs to be unique per location.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- source_
backup_ strvault - Name of the Backup vault created in source region.
- source_
region str - Region in which the backup vault is created.
- state str
- The state of the Backup Vault.
- backup
Region String - Region in which backup is stored.
- backup
Retention Property MapPolicy - Backup retention policy defining the retention of the backups. Structure is documented below.
- backup
Vault StringType - 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 String - Create time of the backup vault. A timestamp in RFC3339 UTC "Zulu" format. Examples: "2023-06-22T09:13:01.617Z".
- description String
- An optional description of this resource.
- destination
Backup StringVault - Name of the Backup vault created in backup region.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Map<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.- location String
- Location (region) of the backup vault.
- name String
- The resource name of the backup vault. Needs to be unique per location.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- source
Backup StringVault - Name of the Backup vault created in source region.
- source
Region String - Region in which the backup vault is created.
- state String
- The state of the Backup Vault.
Supporting Types
BackupVaultBackupRetentionPolicy, BackupVaultBackupRetentionPolicyArgs
- Backup
Minimum intEnforced Retention Days - Minimum retention duration in days for backups in the backup vault.
- Daily
Backup boolImmutable - Indicates if the daily backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- Manual
Backup boolImmutable - Indicates if the manual backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- Monthly
Backup boolImmutable - Indicates if the monthly backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- Weekly
Backup boolImmutable - Indicates if the weekly backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- Backup
Minimum intEnforced Retention Days - Minimum retention duration in days for backups in the backup vault.
- Daily
Backup boolImmutable - Indicates if the daily backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- Manual
Backup boolImmutable - Indicates if the manual backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- Monthly
Backup boolImmutable - Indicates if the monthly backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- Weekly
Backup boolImmutable - Indicates if the weekly backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- backup
Minimum IntegerEnforced Retention Days - Minimum retention duration in days for backups in the backup vault.
- daily
Backup BooleanImmutable - Indicates if the daily backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- manual
Backup BooleanImmutable - Indicates if the manual backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- monthly
Backup BooleanImmutable - Indicates if the monthly backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- weekly
Backup BooleanImmutable - Indicates if the weekly backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- backup
Minimum numberEnforced Retention Days - Minimum retention duration in days for backups in the backup vault.
- daily
Backup booleanImmutable - Indicates if the daily backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- manual
Backup booleanImmutable - Indicates if the manual backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- monthly
Backup booleanImmutable - Indicates if the monthly backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- weekly
Backup booleanImmutable - Indicates if the weekly backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- backup_
minimum_ intenforced_ retention_ days - Minimum retention duration in days for backups in the backup vault.
- daily_
backup_ boolimmutable - Indicates if the daily backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- manual_
backup_ boolimmutable - Indicates if the manual backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- monthly_
backup_ boolimmutable - Indicates if the monthly backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- weekly_
backup_ boolimmutable - Indicates if the weekly backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- backup
Minimum NumberEnforced Retention Days - Minimum retention duration in days for backups in the backup vault.
- daily
Backup BooleanImmutable - Indicates if the daily backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- manual
Backup BooleanImmutable - Indicates if the manual backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- monthly
Backup BooleanImmutable - Indicates if the monthly backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
- weekly
Backup BooleanImmutable - Indicates if the weekly backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true.
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}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.