A Backup and DRBackupVault.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const my_backup_vault = gcp.backupdisasterrecovery.getBackupVault({
location: "us-central1",
backupVaultId: "bv-1",
});
import pulumi
import pulumi_gcp as gcp
my_backup_vault = gcp.backupdisasterrecovery.get_backup_vault(location="us-central1",
backup_vault_id="bv-1")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/backupdisasterrecovery"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := backupdisasterrecovery.LookupBackupVault(ctx, &backupdisasterrecovery.LookupBackupVaultArgs{
Location: "us-central1",
BackupVaultId: "bv-1",
}, nil)
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 my_backup_vault = Gcp.BackupDisasterRecovery.GetBackupVault.Invoke(new()
{
Location = "us-central1",
BackupVaultId = "bv-1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.backupdisasterrecovery.BackupdisasterrecoveryFunctions;
import com.pulumi.gcp.backupdisasterrecovery.inputs.GetBackupVaultArgs;
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) {
final var my-backup-vault = BackupdisasterrecoveryFunctions.getBackupVault(GetBackupVaultArgs.builder()
.location("us-central1")
.backupVaultId("bv-1")
.build());
}
}
variables:
my-backup-vault:
fn::invoke:
function: gcp:backupdisasterrecovery:getBackupVault
arguments:
location: us-central1
backupVaultId: bv-1
Using getBackupVault
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getBackupVault(args: GetBackupVaultArgs, opts?: InvokeOptions): Promise<GetBackupVaultResult>
function getBackupVaultOutput(args: GetBackupVaultOutputArgs, opts?: InvokeOptions): Output<GetBackupVaultResult>def get_backup_vault(backup_vault_id: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBackupVaultResult
def get_backup_vault_output(backup_vault_id: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBackupVaultResult]func LookupBackupVault(ctx *Context, args *LookupBackupVaultArgs, opts ...InvokeOption) (*LookupBackupVaultResult, error)
func LookupBackupVaultOutput(ctx *Context, args *LookupBackupVaultOutputArgs, opts ...InvokeOption) LookupBackupVaultResultOutput> Note: This function is named LookupBackupVault in the Go SDK.
public static class GetBackupVault
{
public static Task<GetBackupVaultResult> InvokeAsync(GetBackupVaultArgs args, InvokeOptions? opts = null)
public static Output<GetBackupVaultResult> Invoke(GetBackupVaultInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBackupVaultResult> getBackupVault(GetBackupVaultArgs args, InvokeOptions options)
public static Output<GetBackupVaultResult> getBackupVault(GetBackupVaultArgs args, InvokeOptions options)
fn::invoke:
function: gcp:backupdisasterrecovery/getBackupVault:getBackupVault
arguments:
# arguments dictionaryThe following arguments are supported:
- Backup
Vault stringId - The id of Backup Vault resource.
- Location string
- The location in which the Backup Vault resource belongs.
- Project string
- The project in which the resource belongs. If it is not provided, the provider project is used.
- Backup
Vault stringId - The id of Backup Vault resource.
- Location string
- The location in which the Backup Vault resource belongs.
- Project string
- The project in which the resource belongs. If it is not provided, the provider project is used.
- backup
Vault StringId - The id of Backup Vault resource.
- location String
- The location in which the Backup Vault resource belongs.
- project String
- The project in which the resource belongs. If it is not provided, the provider project is used.
- backup
Vault stringId - The id of Backup Vault resource.
- location string
- The location in which the Backup Vault resource belongs.
- project string
- The project in which the resource belongs. If it is not provided, the provider project is used.
- backup_
vault_ strid - The id of Backup Vault resource.
- location str
- The location in which the Backup Vault resource belongs.
- project str
- The project in which the resource belongs. If it is not provided, the provider project is used.
- backup
Vault StringId - The id of Backup Vault resource.
- location String
- The location in which the Backup Vault resource belongs.
- project String
- The project in which the resource belongs. If it is not provided, the provider project is used.
getBackupVault Result
The following output properties are available:
- Access
Restriction string - Allow
Missing bool - Annotations Dictionary<string, string>
- Backup
Count string - Backup
Minimum stringEnforced Retention Duration - Backup
Retention stringInheritance - Backup
Vault stringId - Create
Time string - Deletable bool
- Description string
- Effective
Annotations Dictionary<string, string> - Effective
Labels Dictionary<string, string> - Effective
Time string - Encryption
Configs List<GetBackup Vault Encryption Config> - Etag string
- Force
Delete bool - Force
Update bool - Id string
- The provider-assigned unique ID for this managed resource.
- Ignore
Backup boolPlan References - Ignore
Inactive boolDatasources - Labels Dictionary<string, string>
- Location string
- Name string
- Pulumi
Labels Dictionary<string, string> - Service
Account string - State string
- Total
Stored stringBytes - Uid string
- Update
Time string - Project string
- Access
Restriction string - Allow
Missing bool - Annotations map[string]string
- Backup
Count string - Backup
Minimum stringEnforced Retention Duration - Backup
Retention stringInheritance - Backup
Vault stringId - Create
Time string - Deletable bool
- Description string
- Effective
Annotations map[string]string - Effective
Labels map[string]string - Effective
Time string - Encryption
Configs []GetBackup Vault Encryption Config - Etag string
- Force
Delete bool - Force
Update bool - Id string
- The provider-assigned unique ID for this managed resource.
- Ignore
Backup boolPlan References - Ignore
Inactive boolDatasources - Labels map[string]string
- Location string
- Name string
- Pulumi
Labels map[string]string - Service
Account string - State string
- Total
Stored stringBytes - Uid string
- Update
Time string - Project string
- access
Restriction String - allow
Missing Boolean - annotations Map<String,String>
- backup
Count String - backup
Minimum StringEnforced Retention Duration - backup
Retention StringInheritance - backup
Vault StringId - create
Time String - deletable Boolean
- description String
- effective
Annotations Map<String,String> - effective
Labels Map<String,String> - effective
Time String - encryption
Configs List<GetBackup Vault Encryption Config> - etag String
- force
Delete Boolean - force
Update Boolean - id String
- The provider-assigned unique ID for this managed resource.
- ignore
Backup BooleanPlan References - ignore
Inactive BooleanDatasources - labels Map<String,String>
- location String
- name String
- pulumi
Labels Map<String,String> - service
Account String - state String
- total
Stored StringBytes - uid String
- update
Time String - project String
- access
Restriction string - allow
Missing boolean - annotations {[key: string]: string}
- backup
Count string - backup
Minimum stringEnforced Retention Duration - backup
Retention stringInheritance - backup
Vault stringId - create
Time string - deletable boolean
- description string
- effective
Annotations {[key: string]: string} - effective
Labels {[key: string]: string} - effective
Time string - encryption
Configs GetBackup Vault Encryption Config[] - etag string
- force
Delete boolean - force
Update boolean - id string
- The provider-assigned unique ID for this managed resource.
- ignore
Backup booleanPlan References - ignore
Inactive booleanDatasources - labels {[key: string]: string}
- location string
- name string
- pulumi
Labels {[key: string]: string} - service
Account string - state string
- total
Stored stringBytes - uid string
- update
Time string - project string
- access_
restriction str - allow_
missing bool - annotations Mapping[str, str]
- backup_
count str - backup_
minimum_ strenforced_ retention_ duration - backup_
retention_ strinheritance - backup_
vault_ strid - create_
time str - deletable bool
- description str
- effective_
annotations Mapping[str, str] - effective_
labels Mapping[str, str] - effective_
time str - encryption_
configs Sequence[GetBackup Vault Encryption Config] - etag str
- force_
delete bool - force_
update bool - id str
- The provider-assigned unique ID for this managed resource.
- ignore_
backup_ boolplan_ references - ignore_
inactive_ booldatasources - labels Mapping[str, str]
- location str
- name str
- pulumi_
labels Mapping[str, str] - service_
account str - state str
- total_
stored_ strbytes - uid str
- update_
time str - project str
- access
Restriction String - allow
Missing Boolean - annotations Map<String>
- backup
Count String - backup
Minimum StringEnforced Retention Duration - backup
Retention StringInheritance - backup
Vault StringId - create
Time String - deletable Boolean
- description String
- effective
Annotations Map<String> - effective
Labels Map<String> - effective
Time String - encryption
Configs List<Property Map> - etag String
- force
Delete Boolean - force
Update Boolean - id String
- The provider-assigned unique ID for this managed resource.
- ignore
Backup BooleanPlan References - ignore
Inactive BooleanDatasources - labels Map<String>
- location String
- name String
- pulumi
Labels Map<String> - service
Account String - state String
- total
Stored StringBytes - uid String
- update
Time String - project String
Supporting Types
GetBackupVaultEncryptionConfig
- Kms
Key stringName - The Resource name of the Cloud KMS key to be used to encrypt new backups. The key must be in the same location as the backup vault. The key must be a Cloud KMS CryptoKey.
- Kms
Key stringName - The Resource name of the Cloud KMS key to be used to encrypt new backups. The key must be in the same location as the backup vault. The key must be a Cloud KMS CryptoKey.
- kms
Key StringName - The Resource name of the Cloud KMS key to be used to encrypt new backups. The key must be in the same location as the backup vault. The key must be a Cloud KMS CryptoKey.
- kms
Key stringName - The Resource name of the Cloud KMS key to be used to encrypt new backups. The key must be in the same location as the backup vault. The key must be a Cloud KMS CryptoKey.
- kms_
key_ strname - The Resource name of the Cloud KMS key to be used to encrypt new backups. The key must be in the same location as the backup vault. The key must be a Cloud KMS CryptoKey.
- kms
Key StringName - The Resource name of the Cloud KMS key to be used to encrypt new backups. The key must be in the same location as the backup vault. The key must be a Cloud KMS CryptoKey.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
