getBackup

A Backup and DR Backup.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const foo = gcp.backupdisasterrecovery.getBackup({
location: "us-central1",
project: "project-test",
dataSourceId: "ds-test",
backupVaultId: "bv-test",
});
import pulumi
import pulumi_gcp as gcp
foo = gcp.backupdisasterrecovery.get_backup(location="us-central1",
project="project-test",
data_source_id="ds-test",
backup_vault_id="bv-test")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var foo = Gcp.BackupDisasterRecovery.GetBackup.Invoke(new()
{
Location = "us-central1",
Project = "project-test",
DataSourceId = "ds-test",
BackupVaultId = "bv-test",
});
});
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.GetBackup(ctx, &backupdisasterrecovery.GetBackupArgs{
Location: "us-central1",
Project: "project-test",
DataSourceId: "ds-test",
BackupVaultId: "bv-test",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.backupdisasterrecovery.BackupdisasterrecoveryFunctions;
import com.pulumi.gcp.backupdisasterrecovery.inputs.GetBackupArgs;
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 foo = BackupdisasterrecoveryFunctions.getBackup(GetBackupArgs.builder()
.location("us-central1")
.project("project-test")
.dataSourceId("ds-test")
.backupVaultId("bv-test")
.build());
}
}
variables:
foo:
fn::invoke:
function: gcp:backupdisasterrecovery:getBackup
arguments:
location: us-central1
project: project-test
dataSourceId: ds-test
backupVaultId: bv-test

Return

A collection of values returned by getBackup.

Parameters

argument

A collection of arguments for invoking getBackup.


suspend fun getBackup(backupVaultId: String, dataSourceId: String, location: String, project: String): GetBackupResult

Return

A collection of values returned by getBackup.

Parameters

backupVaultId

The ID of the Backup Vault of the Data Source in which the Backup belongs.

dataSourceId

The ID of the Data Source in which the Backup belongs.

location

The location in which the Backup belongs.

project

The Google Cloud Project in which the Backup belongs.

See also


suspend fun getBackup(argument: suspend GetBackupPlainArgsBuilder.() -> Unit): GetBackupResult

Return

A collection of values returned by getBackup.

Parameters

argument

Builder for com.pulumi.gcp.backupdisasterrecovery.kotlin.inputs.GetBackupPlainArgs.

See also