gcp.backupdisasterrecovery.BackupVault
Explore with Pulumi AI
Example Usage
Backup Dr Backup Vault Full
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const backup_vault_test = new gcp.backupdisasterrecovery.BackupVault("backup-vault-test", {
location: "us-central1",
backupVaultId: "backup-vault-test",
description: "This is a second backup vault built by Terraform.",
backupMinimumEnforcedRetentionDuration: "100000s",
labels: {
foo: "bar1",
bar: "baz1",
},
annotations: {
annotations1: "bar1",
annotations2: "baz1",
},
forceUpdate: true,
forceDelete: true,
allowMissing: true,
});
import pulumi
import pulumi_gcp as gcp
backup_vault_test = gcp.backupdisasterrecovery.BackupVault("backup-vault-test",
location="us-central1",
backup_vault_id="backup-vault-test",
description="This is a second backup vault built by Terraform.",
backup_minimum_enforced_retention_duration="100000s",
labels={
"foo": "bar1",
"bar": "baz1",
},
annotations={
"annotations1": "bar1",
"annotations2": "baz1",
},
force_update=True,
force_delete=True,
allow_missing=True)
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/backupdisasterrecovery"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := backupdisasterrecovery.NewBackupVault(ctx, "backup-vault-test", &backupdisasterrecovery.BackupVaultArgs{
Location: pulumi.String("us-central1"),
BackupVaultId: pulumi.String("backup-vault-test"),
Description: pulumi.String("This is a second backup vault built by Terraform."),
BackupMinimumEnforcedRetentionDuration: pulumi.String("100000s"),
Labels: pulumi.StringMap{
"foo": pulumi.String("bar1"),
"bar": pulumi.String("baz1"),
},
Annotations: pulumi.StringMap{
"annotations1": pulumi.String("bar1"),
"annotations2": pulumi.String("baz1"),
},
ForceUpdate: pulumi.Bool(true),
ForceDelete: pulumi.Bool(true),
AllowMissing: pulumi.Bool(true),
})
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 backup_vault_test = new Gcp.BackupDisasterRecovery.BackupVault("backup-vault-test", new()
{
Location = "us-central1",
BackupVaultId = "backup-vault-test",
Description = "This is a second backup vault built by Terraform.",
BackupMinimumEnforcedRetentionDuration = "100000s",
Labels =
{
{ "foo", "bar1" },
{ "bar", "baz1" },
},
Annotations =
{
{ "annotations1", "bar1" },
{ "annotations2", "baz1" },
},
ForceUpdate = true,
ForceDelete = true,
AllowMissing = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.backupdisasterrecovery.BackupVault;
import com.pulumi.gcp.backupdisasterrecovery.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 backup_vault_test = new BackupVault("backup-vault-test", BackupVaultArgs.builder()
.location("us-central1")
.backupVaultId("backup-vault-test")
.description("This is a second backup vault built by Terraform.")
.backupMinimumEnforcedRetentionDuration("100000s")
.labels(Map.ofEntries(
Map.entry("foo", "bar1"),
Map.entry("bar", "baz1")
))
.annotations(Map.ofEntries(
Map.entry("annotations1", "bar1"),
Map.entry("annotations2", "baz1")
))
.forceUpdate("true")
.forceDelete("true")
.allowMissing("true")
.build());
}
}
resources:
backup-vault-test:
type: gcp:backupdisasterrecovery:BackupVault
properties:
location: us-central1
backupVaultId: backup-vault-test
description: This is a second backup vault built by Terraform.
backupMinimumEnforcedRetentionDuration: 100000s
labels:
foo: bar1
bar: baz1
annotations:
annotations1: bar1
annotations2: baz1
forceUpdate: 'true'
forceDelete: 'true'
allowMissing: 'true'
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,
backup_minimum_enforced_retention_duration: Optional[str] = None,
backup_vault_id: Optional[str] = None,
location: Optional[str] = None,
allow_missing: Optional[bool] = None,
annotations: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
effective_time: Optional[str] = None,
force_delete: Optional[bool] = None,
force_update: Optional[bool] = None,
labels: Optional[Mapping[str, 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:backupdisasterrecovery: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 backupVaultResource = new Gcp.BackupDisasterRecovery.BackupVault("backupVaultResource", new()
{
BackupMinimumEnforcedRetentionDuration = "string",
BackupVaultId = "string",
Location = "string",
AllowMissing = false,
Annotations =
{
{ "string", "string" },
},
Description = "string",
EffectiveTime = "string",
ForceDelete = false,
ForceUpdate = false,
Labels =
{
{ "string", "string" },
},
Project = "string",
});
example, err := backupdisasterrecovery.NewBackupVault(ctx, "backupVaultResource", &backupdisasterrecovery.BackupVaultArgs{
BackupMinimumEnforcedRetentionDuration: pulumi.String("string"),
BackupVaultId: pulumi.String("string"),
Location: pulumi.String("string"),
AllowMissing: pulumi.Bool(false),
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
EffectiveTime: pulumi.String("string"),
ForceDelete: pulumi.Bool(false),
ForceUpdate: pulumi.Bool(false),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Project: pulumi.String("string"),
})
var backupVaultResource = new BackupVault("backupVaultResource", BackupVaultArgs.builder()
.backupMinimumEnforcedRetentionDuration("string")
.backupVaultId("string")
.location("string")
.allowMissing(false)
.annotations(Map.of("string", "string"))
.description("string")
.effectiveTime("string")
.forceDelete(false)
.forceUpdate(false)
.labels(Map.of("string", "string"))
.project("string")
.build());
backup_vault_resource = gcp.backupdisasterrecovery.BackupVault("backupVaultResource",
backup_minimum_enforced_retention_duration="string",
backup_vault_id="string",
location="string",
allow_missing=False,
annotations={
"string": "string",
},
description="string",
effective_time="string",
force_delete=False,
force_update=False,
labels={
"string": "string",
},
project="string")
const backupVaultResource = new gcp.backupdisasterrecovery.BackupVault("backupVaultResource", {
backupMinimumEnforcedRetentionDuration: "string",
backupVaultId: "string",
location: "string",
allowMissing: false,
annotations: {
string: "string",
},
description: "string",
effectiveTime: "string",
forceDelete: false,
forceUpdate: false,
labels: {
string: "string",
},
project: "string",
});
type: gcp:backupdisasterrecovery:BackupVault
properties:
allowMissing: false
annotations:
string: string
backupMinimumEnforcedRetentionDuration: string
backupVaultId: string
description: string
effectiveTime: string
forceDelete: false
forceUpdate: false
labels:
string: string
location: 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
The BackupVault resource accepts the following input properties:
- Backup
Minimum stringEnforced Retention Duration - Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended.
- Backup
Vault stringId - Required. ID of the requesting object.
- Location string
- The GCP location for the backup vault.
- Allow
Missing bool - Allow idempotent deletion of backup vault. The request will still succeed in case the backup vault does not exist.
- Annotations Dictionary<string, string>
- Optional. User annotations. See https://google.aip.dev/128#annotations
Stores small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - Description string
- Optional. The description of the BackupVault instance (2048 characters or less).
- Effective
Time string - Optional. Time after which the BackupVault resource is locked.
- Force
Delete bool - If set, the following restrictions against deletion of the backup vault instance can be overridden:
- deletion of a backup vault instance containing no backups, but still containing empty datasources.
- deletion of a backup vault instance that is being referenced by an active backup plan.
- Force
Update bool - If set, allow update to extend the minimum enforced retention for backup vault. This overrides the restriction against conflicting retention periods. This conflict may occur when the expiration schedule defined by the associated backup plan is shorter than the minimum retention set by the backup vault.
- Labels Dictionary<string, string>
- Optional. Resource labels to represent user provided metadata.
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 string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Backup
Minimum stringEnforced Retention Duration - Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended.
- Backup
Vault stringId - Required. ID of the requesting object.
- Location string
- The GCP location for the backup vault.
- Allow
Missing bool - Allow idempotent deletion of backup vault. The request will still succeed in case the backup vault does not exist.
- Annotations map[string]string
- Optional. User annotations. See https://google.aip.dev/128#annotations
Stores small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - Description string
- Optional. The description of the BackupVault instance (2048 characters or less).
- Effective
Time string - Optional. Time after which the BackupVault resource is locked.
- Force
Delete bool - If set, the following restrictions against deletion of the backup vault instance can be overridden:
- deletion of a backup vault instance containing no backups, but still containing empty datasources.
- deletion of a backup vault instance that is being referenced by an active backup plan.
- Force
Update bool - If set, allow update to extend the minimum enforced retention for backup vault. This overrides the restriction against conflicting retention periods. This conflict may occur when the expiration schedule defined by the associated backup plan is shorter than the minimum retention set by the backup vault.
- Labels map[string]string
- Optional. Resource labels to represent user provided metadata.
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 string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- backup
Minimum StringEnforced Retention Duration - Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended.
- backup
Vault StringId - Required. ID of the requesting object.
- location String
- The GCP location for the backup vault.
- allow
Missing Boolean - Allow idempotent deletion of backup vault. The request will still succeed in case the backup vault does not exist.
- annotations Map<String,String>
- Optional. User annotations. See https://google.aip.dev/128#annotations
Stores small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - description String
- Optional. The description of the BackupVault instance (2048 characters or less).
- effective
Time String - Optional. Time after which the BackupVault resource is locked.
- force
Delete Boolean - If set, the following restrictions against deletion of the backup vault instance can be overridden:
- deletion of a backup vault instance containing no backups, but still containing empty datasources.
- deletion of a backup vault instance that is being referenced by an active backup plan.
- force
Update Boolean - If set, allow update to extend the minimum enforced retention for backup vault. This overrides the restriction against conflicting retention periods. This conflict may occur when the expiration schedule defined by the associated backup plan is shorter than the minimum retention set by the backup vault.
- labels Map<String,String>
- Optional. Resource labels to represent user provided metadata.
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 String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- backup
Minimum stringEnforced Retention Duration - Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended.
- backup
Vault stringId - Required. ID of the requesting object.
- location string
- The GCP location for the backup vault.
- allow
Missing boolean - Allow idempotent deletion of backup vault. The request will still succeed in case the backup vault does not exist.
- annotations {[key: string]: string}
- Optional. User annotations. See https://google.aip.dev/128#annotations
Stores small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - description string
- Optional. The description of the BackupVault instance (2048 characters or less).
- effective
Time string - Optional. Time after which the BackupVault resource is locked.
- force
Delete boolean - If set, the following restrictions against deletion of the backup vault instance can be overridden:
- deletion of a backup vault instance containing no backups, but still containing empty datasources.
- deletion of a backup vault instance that is being referenced by an active backup plan.
- force
Update boolean - If set, allow update to extend the minimum enforced retention for backup vault. This overrides the restriction against conflicting retention periods. This conflict may occur when the expiration schedule defined by the associated backup plan is shorter than the minimum retention set by the backup vault.
- labels {[key: string]: string}
- Optional. Resource labels to represent user provided metadata.
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 string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- backup_
minimum_ strenforced_ retention_ duration - Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended.
- backup_
vault_ strid - Required. ID of the requesting object.
- location str
- The GCP location for the backup vault.
- allow_
missing bool - Allow idempotent deletion of backup vault. The request will still succeed in case the backup vault does not exist.
- annotations Mapping[str, str]
- Optional. User annotations. See https://google.aip.dev/128#annotations
Stores small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - description str
- Optional. The description of the BackupVault instance (2048 characters or less).
- effective_
time str - Optional. Time after which the BackupVault resource is locked.
- force_
delete bool - If set, the following restrictions against deletion of the backup vault instance can be overridden:
- deletion of a backup vault instance containing no backups, but still containing empty datasources.
- deletion of a backup vault instance that is being referenced by an active backup plan.
- force_
update bool - If set, allow update to extend the minimum enforced retention for backup vault. This overrides the restriction against conflicting retention periods. This conflict may occur when the expiration schedule defined by the associated backup plan is shorter than the minimum retention set by the backup vault.
- labels Mapping[str, str]
- Optional. Resource labels to represent user provided metadata.
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 str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- backup
Minimum StringEnforced Retention Duration - Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended.
- backup
Vault StringId - Required. ID of the requesting object.
- location String
- The GCP location for the backup vault.
- allow
Missing Boolean - Allow idempotent deletion of backup vault. The request will still succeed in case the backup vault does not exist.
- annotations Map<String>
- Optional. User annotations. See https://google.aip.dev/128#annotations
Stores small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - description String
- Optional. The description of the BackupVault instance (2048 characters or less).
- effective
Time String - Optional. Time after which the BackupVault resource is locked.
- force
Delete Boolean - If set, the following restrictions against deletion of the backup vault instance can be overridden:
- deletion of a backup vault instance containing no backups, but still containing empty datasources.
- deletion of a backup vault instance that is being referenced by an active backup plan.
- force
Update Boolean - If set, allow update to extend the minimum enforced retention for backup vault. This overrides the restriction against conflicting retention periods. This conflict may occur when the expiration schedule defined by the associated backup plan is shorter than the minimum retention set by the backup vault.
- labels Map<String>
- Optional. Resource labels to represent user provided metadata.
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 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:
- Backup
Count string - Output only. The number of backups in this backup vault.
- Create
Time string - Output only. The time when the instance was created.
- Deletable bool
- Output only. Set to true when there are no backups nested under this resource.
- Effective
Annotations Dictionary<string, string> - 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.
- Etag string
- Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Output only. Identifier. The resource name.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Service
Account string - Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.
- State string
- Output only. The BackupVault resource instance state. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING ERROR
- Total
Stored stringBytes - Output only. Total size of the storage used by all backup resources.
- Uid string
- Output only. Output only Immutable after resource creation until resource deletion.
- Update
Time string - Output only. The time when the instance was updated.
- Backup
Count string - Output only. The number of backups in this backup vault.
- Create
Time string - Output only. The time when the instance was created.
- Deletable bool
- Output only. Set to true when there are no backups nested under this resource.
- Effective
Annotations map[string]string - 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.
- Etag string
- Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Output only. Identifier. The resource name.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Service
Account string - Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.
- State string
- Output only. The BackupVault resource instance state. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING ERROR
- Total
Stored stringBytes - Output only. Total size of the storage used by all backup resources.
- Uid string
- Output only. Output only Immutable after resource creation until resource deletion.
- Update
Time string - Output only. The time when the instance was updated.
- backup
Count String - Output only. The number of backups in this backup vault.
- create
Time String - Output only. The time when the instance was created.
- deletable Boolean
- Output only. Set to true when there are no backups nested under this resource.
- effective
Annotations Map<String,String> - 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.
- etag String
- Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Output only. Identifier. The resource name.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- service
Account String - Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.
- state String
- Output only. The BackupVault resource instance state. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING ERROR
- total
Stored StringBytes - Output only. Total size of the storage used by all backup resources.
- uid String
- Output only. Output only Immutable after resource creation until resource deletion.
- update
Time String - Output only. The time when the instance was updated.
- backup
Count string - Output only. The number of backups in this backup vault.
- create
Time string - Output only. The time when the instance was created.
- deletable boolean
- Output only. Set to true when there are no backups nested under this resource.
- effective
Annotations {[key: string]: string} - 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.
- etag string
- Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Output only. Identifier. The resource name.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- service
Account string - Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.
- state string
- Output only. The BackupVault resource instance state. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING ERROR
- total
Stored stringBytes - Output only. Total size of the storage used by all backup resources.
- uid string
- Output only. Output only Immutable after resource creation until resource deletion.
- update
Time string - Output only. The time when the instance was updated.
- backup_
count str - Output only. The number of backups in this backup vault.
- create_
time str - Output only. The time when the instance was created.
- deletable bool
- Output only. Set to true when there are no backups nested under this resource.
- effective_
annotations Mapping[str, str] - 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.
- etag str
- Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Output only. Identifier. The resource name.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- service_
account str - Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.
- state str
- Output only. The BackupVault resource instance state. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING ERROR
- total_
stored_ strbytes - Output only. Total size of the storage used by all backup resources.
- uid str
- Output only. Output only Immutable after resource creation until resource deletion.
- update_
time str - Output only. The time when the instance was updated.
- backup
Count String - Output only. The number of backups in this backup vault.
- create
Time String - Output only. The time when the instance was created.
- deletable Boolean
- Output only. Set to true when there are no backups nested under this resource.
- effective
Annotations Map<String> - 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.
- etag String
- Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Output only. Identifier. The resource name.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- service
Account String - Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.
- state String
- Output only. The BackupVault resource instance state. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING ERROR
- total
Stored StringBytes - Output only. Total size of the storage used by all backup resources.
- uid String
- Output only. Output only Immutable after resource creation until resource deletion.
- update
Time String - Output only. The time when the instance was updated.
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,
allow_missing: Optional[bool] = None,
annotations: Optional[Mapping[str, str]] = None,
backup_count: Optional[str] = None,
backup_minimum_enforced_retention_duration: Optional[str] = None,
backup_vault_id: Optional[str] = None,
create_time: Optional[str] = None,
deletable: Optional[bool] = None,
description: Optional[str] = None,
effective_annotations: Optional[Mapping[str, str]] = None,
effective_labels: Optional[Mapping[str, str]] = None,
effective_time: Optional[str] = None,
etag: Optional[str] = None,
force_delete: Optional[bool] = None,
force_update: Optional[bool] = 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,
service_account: Optional[str] = None,
state: Optional[str] = None,
total_stored_bytes: Optional[str] = None,
uid: Optional[str] = None,
update_time: 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)
Resource lookup is not supported in YAML
- 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.
- Allow
Missing bool - Allow idempotent deletion of backup vault. The request will still succeed in case the backup vault does not exist.
- Annotations Dictionary<string, string>
- Optional. User annotations. See https://google.aip.dev/128#annotations
Stores small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - Backup
Count string - Output only. The number of backups in this backup vault.
- Backup
Minimum stringEnforced Retention Duration - Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended.
- Backup
Vault stringId - Required. ID of the requesting object.
- Create
Time string - Output only. The time when the instance was created.
- Deletable bool
- Output only. Set to true when there are no backups nested under this resource.
- Description string
- Optional. The description of the BackupVault instance (2048 characters or less).
- Effective
Annotations Dictionary<string, string> - 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.
- Effective
Time string - Optional. Time after which the BackupVault resource is locked.
- Etag string
- Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.
- Force
Delete bool - If set, the following restrictions against deletion of the backup vault instance can be overridden:
- deletion of a backup vault instance containing no backups, but still containing empty datasources.
- deletion of a backup vault instance that is being referenced by an active backup plan.
- Force
Update bool - If set, allow update to extend the minimum enforced retention for backup vault. This overrides the restriction against conflicting retention periods. This conflict may occur when the expiration schedule defined by the associated backup plan is shorter than the minimum retention set by the backup vault.
- Labels Dictionary<string, string>
- Optional. Resource labels to represent user provided metadata.
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
- The GCP location for the backup vault.
- Name string
- Output only. Identifier. The resource name.
- 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.
- Service
Account string - Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.
- State string
- Output only. The BackupVault resource instance state. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING ERROR
- Total
Stored stringBytes - Output only. Total size of the storage used by all backup resources.
- Uid string
- Output only. Output only Immutable after resource creation until resource deletion.
- Update
Time string - Output only. The time when the instance was updated.
- Allow
Missing bool - Allow idempotent deletion of backup vault. The request will still succeed in case the backup vault does not exist.
- Annotations map[string]string
- Optional. User annotations. See https://google.aip.dev/128#annotations
Stores small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - Backup
Count string - Output only. The number of backups in this backup vault.
- Backup
Minimum stringEnforced Retention Duration - Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended.
- Backup
Vault stringId - Required. ID of the requesting object.
- Create
Time string - Output only. The time when the instance was created.
- Deletable bool
- Output only. Set to true when there are no backups nested under this resource.
- Description string
- Optional. The description of the BackupVault instance (2048 characters or less).
- Effective
Annotations map[string]string - 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.
- Effective
Time string - Optional. Time after which the BackupVault resource is locked.
- Etag string
- Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.
- Force
Delete bool - If set, the following restrictions against deletion of the backup vault instance can be overridden:
- deletion of a backup vault instance containing no backups, but still containing empty datasources.
- deletion of a backup vault instance that is being referenced by an active backup plan.
- Force
Update bool - If set, allow update to extend the minimum enforced retention for backup vault. This overrides the restriction against conflicting retention periods. This conflict may occur when the expiration schedule defined by the associated backup plan is shorter than the minimum retention set by the backup vault.
- Labels map[string]string
- Optional. Resource labels to represent user provided metadata.
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
- The GCP location for the backup vault.
- Name string
- Output only. Identifier. The resource name.
- 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.
- Service
Account string - Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.
- State string
- Output only. The BackupVault resource instance state. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING ERROR
- Total
Stored stringBytes - Output only. Total size of the storage used by all backup resources.
- Uid string
- Output only. Output only Immutable after resource creation until resource deletion.
- Update
Time string - Output only. The time when the instance was updated.
- allow
Missing Boolean - Allow idempotent deletion of backup vault. The request will still succeed in case the backup vault does not exist.
- annotations Map<String,String>
- Optional. User annotations. See https://google.aip.dev/128#annotations
Stores small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - backup
Count String - Output only. The number of backups in this backup vault.
- backup
Minimum StringEnforced Retention Duration - Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended.
- backup
Vault StringId - Required. ID of the requesting object.
- create
Time String - Output only. The time when the instance was created.
- deletable Boolean
- Output only. Set to true when there are no backups nested under this resource.
- description String
- Optional. The description of the BackupVault instance (2048 characters or less).
- effective
Annotations Map<String,String> - 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.
- effective
Time String - Optional. Time after which the BackupVault resource is locked.
- etag String
- Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.
- force
Delete Boolean - If set, the following restrictions against deletion of the backup vault instance can be overridden:
- deletion of a backup vault instance containing no backups, but still containing empty datasources.
- deletion of a backup vault instance that is being referenced by an active backup plan.
- force
Update Boolean - If set, allow update to extend the minimum enforced retention for backup vault. This overrides the restriction against conflicting retention periods. This conflict may occur when the expiration schedule defined by the associated backup plan is shorter than the minimum retention set by the backup vault.
- labels Map<String,String>
- Optional. Resource labels to represent user provided metadata.
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
- The GCP location for the backup vault.
- name String
- Output only. Identifier. The resource name.
- 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.
- service
Account String - Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.
- state String
- Output only. The BackupVault resource instance state. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING ERROR
- total
Stored StringBytes - Output only. Total size of the storage used by all backup resources.
- uid String
- Output only. Output only Immutable after resource creation until resource deletion.
- update
Time String - Output only. The time when the instance was updated.
- allow
Missing boolean - Allow idempotent deletion of backup vault. The request will still succeed in case the backup vault does not exist.
- annotations {[key: string]: string}
- Optional. User annotations. See https://google.aip.dev/128#annotations
Stores small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - backup
Count string - Output only. The number of backups in this backup vault.
- backup
Minimum stringEnforced Retention Duration - Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended.
- backup
Vault stringId - Required. ID of the requesting object.
- create
Time string - Output only. The time when the instance was created.
- deletable boolean
- Output only. Set to true when there are no backups nested under this resource.
- description string
- Optional. The description of the BackupVault instance (2048 characters or less).
- effective
Annotations {[key: string]: string} - 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.
- effective
Time string - Optional. Time after which the BackupVault resource is locked.
- etag string
- Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.
- force
Delete boolean - If set, the following restrictions against deletion of the backup vault instance can be overridden:
- deletion of a backup vault instance containing no backups, but still containing empty datasources.
- deletion of a backup vault instance that is being referenced by an active backup plan.
- force
Update boolean - If set, allow update to extend the minimum enforced retention for backup vault. This overrides the restriction against conflicting retention periods. This conflict may occur when the expiration schedule defined by the associated backup plan is shorter than the minimum retention set by the backup vault.
- labels {[key: string]: string}
- Optional. Resource labels to represent user provided metadata.
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
- The GCP location for the backup vault.
- name string
- Output only. Identifier. The resource name.
- 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.
- service
Account string - Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.
- state string
- Output only. The BackupVault resource instance state. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING ERROR
- total
Stored stringBytes - Output only. Total size of the storage used by all backup resources.
- uid string
- Output only. Output only Immutable after resource creation until resource deletion.
- update
Time string - Output only. The time when the instance was updated.
- allow_
missing bool - Allow idempotent deletion of backup vault. The request will still succeed in case the backup vault does not exist.
- annotations Mapping[str, str]
- Optional. User annotations. See https://google.aip.dev/128#annotations
Stores small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - backup_
count str - Output only. The number of backups in this backup vault.
- backup_
minimum_ strenforced_ retention_ duration - Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended.
- backup_
vault_ strid - Required. ID of the requesting object.
- create_
time str - Output only. The time when the instance was created.
- deletable bool
- Output only. Set to true when there are no backups nested under this resource.
- description str
- Optional. The description of the BackupVault instance (2048 characters or less).
- effective_
annotations Mapping[str, str] - 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.
- effective_
time str - Optional. Time after which the BackupVault resource is locked.
- etag str
- Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.
- force_
delete bool - If set, the following restrictions against deletion of the backup vault instance can be overridden:
- deletion of a backup vault instance containing no backups, but still containing empty datasources.
- deletion of a backup vault instance that is being referenced by an active backup plan.
- force_
update bool - If set, allow update to extend the minimum enforced retention for backup vault. This overrides the restriction against conflicting retention periods. This conflict may occur when the expiration schedule defined by the associated backup plan is shorter than the minimum retention set by the backup vault.
- labels Mapping[str, str]
- Optional. Resource labels to represent user provided metadata.
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
- The GCP location for the backup vault.
- name str
- Output only. Identifier. The resource name.
- 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.
- service_
account str - Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.
- state str
- Output only. The BackupVault resource instance state. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING ERROR
- total_
stored_ strbytes - Output only. Total size of the storage used by all backup resources.
- uid str
- Output only. Output only Immutable after resource creation until resource deletion.
- update_
time str - Output only. The time when the instance was updated.
- allow
Missing Boolean - Allow idempotent deletion of backup vault. The request will still succeed in case the backup vault does not exist.
- annotations Map<String>
- Optional. User annotations. See https://google.aip.dev/128#annotations
Stores small amounts of arbitrary data.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effective_annotations
for all of the annotations present on the resource. - backup
Count String - Output only. The number of backups in this backup vault.
- backup
Minimum StringEnforced Retention Duration - Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended.
- backup
Vault StringId - Required. ID of the requesting object.
- create
Time String - Output only. The time when the instance was created.
- deletable Boolean
- Output only. Set to true when there are no backups nested under this resource.
- description String
- Optional. The description of the BackupVault instance (2048 characters or less).
- effective
Annotations Map<String> - 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.
- effective
Time String - Optional. Time after which the BackupVault resource is locked.
- etag String
- Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.
- force
Delete Boolean - If set, the following restrictions against deletion of the backup vault instance can be overridden:
- deletion of a backup vault instance containing no backups, but still containing empty datasources.
- deletion of a backup vault instance that is being referenced by an active backup plan.
- force
Update Boolean - If set, allow update to extend the minimum enforced retention for backup vault. This overrides the restriction against conflicting retention periods. This conflict may occur when the expiration schedule defined by the associated backup plan is shorter than the minimum retention set by the backup vault.
- labels Map<String>
- Optional. Resource labels to represent user provided metadata.
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
- The GCP location for the backup vault.
- name String
- Output only. Identifier. The resource name.
- 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.
- service
Account String - Output only. Service account used by the BackupVault Service for this BackupVault. The user should grant this account permissions in their workload project to enable the service to run backups and restores there.
- state String
- Output only. The BackupVault resource instance state. Possible values: STATE_UNSPECIFIED CREATING ACTIVE DELETING ERROR
- total
Stored StringBytes - Output only. Total size of the storage used by all backup resources.
- uid String
- Output only. Output only Immutable after resource creation until resource deletion.
- update
Time String - Output only. The time when the instance was updated.
Import
BackupVault can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/backupVaults/{{backup_vault_id}}
{{project}}/{{location}}/{{backup_vault_id}}
{{location}}/{{backup_vault_id}}
When using the pulumi import
command, BackupVault can be imported using one of the formats above. For example:
$ pulumi import gcp:backupdisasterrecovery/backupVault:BackupVault default projects/{{project}}/locations/{{location}}/backupVaults/{{backup_vault_id}}
$ pulumi import gcp:backupdisasterrecovery/backupVault:BackupVault default {{project}}/{{location}}/{{backup_vault_id}}
$ pulumi import gcp:backupdisasterrecovery/backupVault:BackupVault default {{location}}/{{backup_vault_id}}
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.