Viewing docs for Google Cloud v9.18.0
published on Wednesday, Apr 1, 2026 by Pulumi
published on Wednesday, Apr 1, 2026 by Pulumi
Viewing docs for Google Cloud v9.18.0
published on Wednesday, Apr 1, 2026 by Pulumi
published on Wednesday, Apr 1, 2026 by Pulumi
A Backup and DR Data Source.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const foo = gcp.backupdisasterrecovery.getDataSource({
location: "us-central1",
project: "project-test",
dataSourceId: "ds-test",
backupVaultId: "bv-test",
});
import pulumi
import pulumi_gcp as gcp
foo = gcp.backupdisasterrecovery.get_data_source(location="us-central1",
project="project-test",
data_source_id="ds-test",
backup_vault_id="bv-test")
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.GetDataSource(ctx, &backupdisasterrecovery.GetDataSourceArgs{
Location: "us-central1",
Project: pulumi.StringRef("project-test"),
DataSourceId: "ds-test",
BackupVaultId: "bv-test",
}, 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 foo = Gcp.BackupDisasterRecovery.GetDataSource.Invoke(new()
{
Location = "us-central1",
Project = "project-test",
DataSourceId = "ds-test",
BackupVaultId = "bv-test",
});
});
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.GetDataSourceArgs;
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.getDataSource(GetDataSourceArgs.builder()
.location("us-central1")
.project("project-test")
.dataSourceId("ds-test")
.backupVaultId("bv-test")
.build());
}
}
variables:
foo:
fn::invoke:
function: gcp:backupdisasterrecovery:getDataSource
arguments:
location: us-central1
project: project-test
dataSourceId: ds-test
backupVaultId: bv-test
Using getDataSource
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 getDataSource(args: GetDataSourceArgs, opts?: InvokeOptions): Promise<GetDataSourceResult>
function getDataSourceOutput(args: GetDataSourceOutputArgs, opts?: InvokeOptions): Output<GetDataSourceResult>def get_data_source(backup_vault_id: Optional[str] = None,
data_source_id: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDataSourceResult
def get_data_source_output(backup_vault_id: Optional[pulumi.Input[str]] = None,
data_source_id: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDataSourceResult]func GetDataSource(ctx *Context, args *GetDataSourceArgs, opts ...InvokeOption) (*GetDataSourceResult, error)
func GetDataSourceOutput(ctx *Context, args *GetDataSourceOutputArgs, opts ...InvokeOption) GetDataSourceResultOutput> Note: This function is named GetDataSource in the Go SDK.
public static class GetDataSource
{
public static Task<GetDataSourceResult> InvokeAsync(GetDataSourceArgs args, InvokeOptions? opts = null)
public static Output<GetDataSourceResult> Invoke(GetDataSourceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDataSourceResult> getDataSource(GetDataSourceArgs args, InvokeOptions options)
public static Output<GetDataSourceResult> getDataSource(GetDataSourceArgs args, InvokeOptions options)
fn::invoke:
function: gcp:backupdisasterrecovery/getDataSource:getDataSource
arguments:
# arguments dictionaryThe following arguments are supported:
- Backup
Vault stringId - The ID of the Backup Vault in which the Data Source belongs.
- Data
Source stringId - The ID of the Data Source.
- Location string
- The location in which the Data Source belongs.
- Project string
- The Google Cloud Project in which the Data Source belongs.
- Backup
Vault stringId - The ID of the Backup Vault in which the Data Source belongs.
- Data
Source stringId - The ID of the Data Source.
- Location string
- The location in which the Data Source belongs.
- Project string
- The Google Cloud Project in which the Data Source belongs.
- backup
Vault StringId - The ID of the Backup Vault in which the Data Source belongs.
- data
Source StringId - The ID of the Data Source.
- location String
- The location in which the Data Source belongs.
- project String
- The Google Cloud Project in which the Data Source belongs.
- backup
Vault stringId - The ID of the Backup Vault in which the Data Source belongs.
- data
Source stringId - The ID of the Data Source.
- location string
- The location in which the Data Source belongs.
- project string
- The Google Cloud Project in which the Data Source belongs.
- backup_
vault_ strid - The ID of the Backup Vault in which the Data Source belongs.
- data_
source_ strid - The ID of the Data Source.
- location str
- The location in which the Data Source belongs.
- project str
- The Google Cloud Project in which the Data Source belongs.
- backup
Vault StringId - The ID of the Backup Vault in which the Data Source belongs.
- data
Source StringId - The ID of the Data Source.
- location String
- The location in which the Data Source belongs.
- project String
- The Google Cloud Project in which the Data Source belongs.
getDataSource Result
The following output properties are available:
- Backup
Config List<GetInfos Data Source Backup Config Info> - Backup
Count string - Backup
Vault stringId - Config
State string - Create
Time string - Data
Source List<GetBackup Appliance Applications Data Source Data Source Backup Appliance Application> - Data
Source List<GetGcp Resources Data Source Data Source Gcp Resource> - Data
Source stringId - Etag string
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, string>
- Location string
- Name string
- Project string
- State string
- Total
Stored stringBytes - Update
Time string
- Backup
Config []GetInfos Data Source Backup Config Info - Backup
Count string - Backup
Vault stringId - Config
State string - Create
Time string - Data
Source []GetBackup Appliance Applications Data Source Data Source Backup Appliance Application - Data
Source []GetGcp Resources Data Source Data Source Gcp Resource - Data
Source stringId - Etag string
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels map[string]string
- Location string
- Name string
- Project string
- State string
- Total
Stored stringBytes - Update
Time string
- backup
Config List<GetInfos Data Source Backup Config Info> - backup
Count String - backup
Vault StringId - config
State String - create
Time String - data
Source List<GetBackup Appliance Applications Data Source Data Source Backup Appliance Application> - data
Source List<GetGcp Resources Data Source Data Source Gcp Resource> - data
Source StringId - etag String
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String,String>
- location String
- name String
- project String
- state String
- total
Stored StringBytes - update
Time String
- backup
Config GetInfos Data Source Backup Config Info[] - backup
Count string - backup
Vault stringId - config
State string - create
Time string - data
Source GetBackup Appliance Applications Data Source Data Source Backup Appliance Application[] - data
Source GetGcp Resources Data Source Data Source Gcp Resource[] - data
Source stringId - etag string
- id string
- The provider-assigned unique ID for this managed resource.
- labels {[key: string]: string}
- location string
- name string
- project string
- state string
- total
Stored stringBytes - update
Time string
- backup_
config_ Sequence[Getinfos Data Source Backup Config Info] - backup_
count str - backup_
vault_ strid - config_
state str - create_
time str - data_
source_ Sequence[Getbackup_ appliance_ applications Data Source Data Source Backup Appliance Application] - data_
source_ Sequence[Getgcp_ resources Data Source Data Source Gcp Resource] - data_
source_ strid - etag str
- id str
- The provider-assigned unique ID for this managed resource.
- labels Mapping[str, str]
- location str
- name str
- project str
- state str
- total_
stored_ strbytes - update_
time str
- backup
Config List<Property Map>Infos - backup
Count String - backup
Vault StringId - config
State String - create
Time String - data
Source List<Property Map>Backup Appliance Applications - data
Source List<Property Map>Gcp Resources - data
Source StringId - etag String
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String>
- location String
- name String
- project String
- state String
- total
Stored StringBytes - update
Time String
Supporting Types
GetDataSourceBackupConfigInfo
- Backup
Appliance List<GetBackup Configs Data Source Backup Config Info Backup Appliance Backup Config> - Configuration for an application backed up by a Backup Appliance.
- Gcp
Backup List<GetConfigs Data Source Backup Config Info Gcp Backup Config> - Configuration for a Google Cloud resource.
- Last
Backup Dictionary<string, string>Error - If the last backup failed, this field has the error message.
- Last
Backup stringState - LastBackupstate tracks whether the last backup was not yet started, successful, failed, or could not be run because of the lack of permissions.
- Last
Successful stringBackup Consistency Time - If the last backup were successful, this field has the consistency date.
- Backup
Appliance []GetBackup Configs Data Source Backup Config Info Backup Appliance Backup Config - Configuration for an application backed up by a Backup Appliance.
- Gcp
Backup []GetConfigs Data Source Backup Config Info Gcp Backup Config - Configuration for a Google Cloud resource.
- Last
Backup map[string]stringError - If the last backup failed, this field has the error message.
- Last
Backup stringState - LastBackupstate tracks whether the last backup was not yet started, successful, failed, or could not be run because of the lack of permissions.
- Last
Successful stringBackup Consistency Time - If the last backup were successful, this field has the consistency date.
- backup
Appliance List<GetBackup Configs Data Source Backup Config Info Backup Appliance Backup Config> - Configuration for an application backed up by a Backup Appliance.
- gcp
Backup List<GetConfigs Data Source Backup Config Info Gcp Backup Config> - Configuration for a Google Cloud resource.
- last
Backup Map<String,String>Error - If the last backup failed, this field has the error message.
- last
Backup StringState - LastBackupstate tracks whether the last backup was not yet started, successful, failed, or could not be run because of the lack of permissions.
- last
Successful StringBackup Consistency Time - If the last backup were successful, this field has the consistency date.
- backup
Appliance GetBackup Configs Data Source Backup Config Info Backup Appliance Backup Config[] - Configuration for an application backed up by a Backup Appliance.
- gcp
Backup GetConfigs Data Source Backup Config Info Gcp Backup Config[] - Configuration for a Google Cloud resource.
- last
Backup {[key: string]: string}Error - If the last backup failed, this field has the error message.
- last
Backup stringState - LastBackupstate tracks whether the last backup was not yet started, successful, failed, or could not be run because of the lack of permissions.
- last
Successful stringBackup Consistency Time - If the last backup were successful, this field has the consistency date.
- backup_
appliance_ Sequence[Getbackup_ configs Data Source Backup Config Info Backup Appliance Backup Config] - Configuration for an application backed up by a Backup Appliance.
- gcp_
backup_ Sequence[Getconfigs Data Source Backup Config Info Gcp Backup Config] - Configuration for a Google Cloud resource.
- last_
backup_ Mapping[str, str]error - If the last backup failed, this field has the error message.
- last_
backup_ strstate - LastBackupstate tracks whether the last backup was not yet started, successful, failed, or could not be run because of the lack of permissions.
- last_
successful_ strbackup_ consistency_ time - If the last backup were successful, this field has the consistency date.
- backup
Appliance List<Property Map>Backup Configs - Configuration for an application backed up by a Backup Appliance.
- gcp
Backup List<Property Map>Configs - Configuration for a Google Cloud resource.
- last
Backup Map<String>Error - If the last backup failed, this field has the error message.
- last
Backup StringState - LastBackupstate tracks whether the last backup was not yet started, successful, failed, or could not be run because of the lack of permissions.
- last
Successful StringBackup Consistency Time - If the last backup were successful, this field has the consistency date.
GetDataSourceBackupConfigInfoBackupApplianceBackupConfig
- Application
Name string - The name of the application.
- Backup
Appliance stringId - The ID of the backup appliance.
- Backup
Appliance stringName - The name of the backup appliance.
- Host
Name string - The name of the host where the application is running.
- Sla
Id string - The ID of the SLA of this application.
- Slp
Name string - The name of the SLP associated with the application.
- Slt
Name string - The name of the SLT associated with the application.
- Application
Name string - The name of the application.
- Backup
Appliance stringId - The ID of the backup appliance.
- Backup
Appliance stringName - The name of the backup appliance.
- Host
Name string - The name of the host where the application is running.
- Sla
Id string - The ID of the SLA of this application.
- Slp
Name string - The name of the SLP associated with the application.
- Slt
Name string - The name of the SLT associated with the application.
- application
Name String - The name of the application.
- backup
Appliance StringId - The ID of the backup appliance.
- backup
Appliance StringName - The name of the backup appliance.
- host
Name String - The name of the host where the application is running.
- sla
Id String - The ID of the SLA of this application.
- slp
Name String - The name of the SLP associated with the application.
- slt
Name String - The name of the SLT associated with the application.
- application
Name string - The name of the application.
- backup
Appliance stringId - The ID of the backup appliance.
- backup
Appliance stringName - The name of the backup appliance.
- host
Name string - The name of the host where the application is running.
- sla
Id string - The ID of the SLA of this application.
- slp
Name string - The name of the SLP associated with the application.
- slt
Name string - The name of the SLT associated with the application.
- application_
name str - The name of the application.
- backup_
appliance_ strid - The ID of the backup appliance.
- backup_
appliance_ strname - The name of the backup appliance.
- host_
name str - The name of the host where the application is running.
- sla_
id str - The ID of the SLA of this application.
- slp_
name str - The name of the SLP associated with the application.
- slt_
name str - The name of the SLT associated with the application.
- application
Name String - The name of the application.
- backup
Appliance StringId - The ID of the backup appliance.
- backup
Appliance StringName - The name of the backup appliance.
- host
Name String - The name of the host where the application is running.
- sla
Id String - The ID of the SLA of this application.
- slp
Name String - The name of the SLP associated with the application.
- slt
Name String - The name of the SLT associated with the application.
GetDataSourceBackupConfigInfoGcpBackupConfig
- Backup
Plan string - The name of the backup plan.
- Backup
Plan stringAssociation - The name of the backup plan association.
- Backup
Plan stringDescription - The description of the backup plan.
- Backup
Plan List<string>Rules - The names of the backup plan rules which point to this backupvault
- Backup
Plan string - The name of the backup plan.
- Backup
Plan stringAssociation - The name of the backup plan association.
- Backup
Plan stringDescription - The description of the backup plan.
- Backup
Plan []stringRules - The names of the backup plan rules which point to this backupvault
- backup
Plan String - The name of the backup plan.
- backup
Plan StringAssociation - The name of the backup plan association.
- backup
Plan StringDescription - The description of the backup plan.
- backup
Plan List<String>Rules - The names of the backup plan rules which point to this backupvault
- backup
Plan string - The name of the backup plan.
- backup
Plan stringAssociation - The name of the backup plan association.
- backup
Plan stringDescription - The description of the backup plan.
- backup
Plan string[]Rules - The names of the backup plan rules which point to this backupvault
- backup_
plan str - The name of the backup plan.
- backup_
plan_ strassociation - The name of the backup plan association.
- backup_
plan_ strdescription - The description of the backup plan.
- backup_
plan_ Sequence[str]rules - The names of the backup plan rules which point to this backupvault
- backup
Plan String - The name of the backup plan.
- backup
Plan StringAssociation - The name of the backup plan association.
- backup
Plan StringDescription - The description of the backup plan.
- backup
Plan List<String>Rules - The names of the backup plan rules which point to this backupvault
GetDataSourceDataSourceBackupApplianceApplication
- Appliance
Id string - Appliance Id of the Backup Appliance.
- Application
Id string - The appid field of the application within the Backup Appliance.
- Application
Name string - The name of the Application as known to the Backup Appliance.
- Backup
Appliance string - Appliance name.
- Host
Id string - Hostid of the application host.
- Hostname string
- Hostname of the host where the application is running.
- Type string
- The type of the application. e.g. VMBackup
- Appliance
Id string - Appliance Id of the Backup Appliance.
- Application
Id string - The appid field of the application within the Backup Appliance.
- Application
Name string - The name of the Application as known to the Backup Appliance.
- Backup
Appliance string - Appliance name.
- Host
Id string - Hostid of the application host.
- Hostname string
- Hostname of the host where the application is running.
- Type string
- The type of the application. e.g. VMBackup
- appliance
Id String - Appliance Id of the Backup Appliance.
- application
Id String - The appid field of the application within the Backup Appliance.
- application
Name String - The name of the Application as known to the Backup Appliance.
- backup
Appliance String - Appliance name.
- host
Id String - Hostid of the application host.
- hostname String
- Hostname of the host where the application is running.
- type String
- The type of the application. e.g. VMBackup
- appliance
Id string - Appliance Id of the Backup Appliance.
- application
Id string - The appid field of the application within the Backup Appliance.
- application
Name string - The name of the Application as known to the Backup Appliance.
- backup
Appliance string - Appliance name.
- host
Id string - Hostid of the application host.
- hostname string
- Hostname of the host where the application is running.
- type string
- The type of the application. e.g. VMBackup
- appliance_
id str - Appliance Id of the Backup Appliance.
- application_
id str - The appid field of the application within the Backup Appliance.
- application_
name str - The name of the Application as known to the Backup Appliance.
- backup_
appliance str - Appliance name.
- host_
id str - Hostid of the application host.
- hostname str
- Hostname of the host where the application is running.
- type str
- The type of the application. e.g. VMBackup
- appliance
Id String - Appliance Id of the Backup Appliance.
- application
Id String - The appid field of the application within the Backup Appliance.
- application
Name String - The name of the Application as known to the Backup Appliance.
- backup
Appliance String - Appliance name.
- host
Id String - Hostid of the application host.
- hostname String
- Hostname of the host where the application is running.
- type String
- The type of the application. e.g. VMBackup
GetDataSourceDataSourceGcpResource
- Compute
Instance List<GetData Source Properties Data Source Data Source Gcp Resource Compute Instance Data Source Property> - ComputeInstanceDataSourceProperties has a subset of Compute Instance properties that are useful at the Datasource level.
- Gcp
Resourcename string - Full resource pathname URL of the source Google Cloud resource.
- Location string
- The location in which the Data Source belongs.
- Type string
- The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.
- Compute
Instance []GetData Source Properties Data Source Data Source Gcp Resource Compute Instance Data Source Property - ComputeInstanceDataSourceProperties has a subset of Compute Instance properties that are useful at the Datasource level.
- Gcp
Resourcename string - Full resource pathname URL of the source Google Cloud resource.
- Location string
- The location in which the Data Source belongs.
- Type string
- The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.
- compute
Instance List<GetData Source Properties Data Source Data Source Gcp Resource Compute Instance Data Source Property> - ComputeInstanceDataSourceProperties has a subset of Compute Instance properties that are useful at the Datasource level.
- gcp
Resourcename String - Full resource pathname URL of the source Google Cloud resource.
- location String
- The location in which the Data Source belongs.
- type String
- The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.
- compute
Instance GetData Source Properties Data Source Data Source Gcp Resource Compute Instance Data Source Property[] - ComputeInstanceDataSourceProperties has a subset of Compute Instance properties that are useful at the Datasource level.
- gcp
Resourcename string - Full resource pathname URL of the source Google Cloud resource.
- location string
- The location in which the Data Source belongs.
- type string
- The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.
- compute_
instance_ Sequence[Getdata_ source_ properties Data Source Data Source Gcp Resource Compute Instance Data Source Property] - ComputeInstanceDataSourceProperties has a subset of Compute Instance properties that are useful at the Datasource level.
- gcp_
resourcename str - Full resource pathname URL of the source Google Cloud resource.
- location str
- The location in which the Data Source belongs.
- type str
- The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.
- compute
Instance List<Property Map>Data Source Properties - ComputeInstanceDataSourceProperties has a subset of Compute Instance properties that are useful at the Datasource level.
- gcp
Resourcename String - Full resource pathname URL of the source Google Cloud resource.
- location String
- The location in which the Data Source belongs.
- type String
- The type of the Google Cloud resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.
GetDataSourceDataSourceGcpResourceComputeInstanceDataSourceProperty
- Description string
- The description of the Compute Engine instance.
- Machine
Type string - The machine type of the instance.
- Name string
- Name of the compute instance backed up by the datasource.
- Total
Disk stringCount - The total number of disks attached to the Instance.
- Total
Disk stringSize Gb - The sum of all the disk sizes.
- Description string
- The description of the Compute Engine instance.
- Machine
Type string - The machine type of the instance.
- Name string
- Name of the compute instance backed up by the datasource.
- Total
Disk stringCount - The total number of disks attached to the Instance.
- Total
Disk stringSize Gb - The sum of all the disk sizes.
- description String
- The description of the Compute Engine instance.
- machine
Type String - The machine type of the instance.
- name String
- Name of the compute instance backed up by the datasource.
- total
Disk StringCount - The total number of disks attached to the Instance.
- total
Disk StringSize Gb - The sum of all the disk sizes.
- description string
- The description of the Compute Engine instance.
- machine
Type string - The machine type of the instance.
- name string
- Name of the compute instance backed up by the datasource.
- total
Disk stringCount - The total number of disks attached to the Instance.
- total
Disk stringSize Gb - The sum of all the disk sizes.
- description str
- The description of the Compute Engine instance.
- machine_
type str - The machine type of the instance.
- name str
- Name of the compute instance backed up by the datasource.
- total_
disk_ strcount - The total number of disks attached to the Instance.
- total_
disk_ strsize_ gb - The sum of all the disk sizes.
- description String
- The description of the Compute Engine instance.
- machine
Type String - The machine type of the instance.
- name String
- Name of the compute instance backed up by the datasource.
- total
Disk StringCount - The total number of disks attached to the Instance.
- total
Disk StringSize Gb - The sum of all the disk sizes.
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.
Viewing docs for Google Cloud v9.18.0
published on Wednesday, Apr 1, 2026 by Pulumi
published on Wednesday, Apr 1, 2026 by Pulumi
