1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. backupdisasterrecovery
  5. getDataSourceReference
Google Cloud v9.4.0 published on Tuesday, Nov 4, 2025 by Pulumi

gcp.backupdisasterrecovery.getDataSourceReference

Start a Neo task
Explain and create a gcp.backupdisasterrecovery.getDataSourceReference resource
gcp logo
Google Cloud v9.4.0 published on Tuesday, Nov 4, 2025 by Pulumi

    Get information about a specific Backup and DR data source reference.

    Using getDataSourceReference

    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 getDataSourceReference(args: GetDataSourceReferenceArgs, opts?: InvokeOptions): Promise<GetDataSourceReferenceResult>
    function getDataSourceReferenceOutput(args: GetDataSourceReferenceOutputArgs, opts?: InvokeOptions): Output<GetDataSourceReferenceResult>
    def get_data_source_reference(data_source_reference_id: Optional[str] = None,
                                  location: Optional[str] = None,
                                  project: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetDataSourceReferenceResult
    def get_data_source_reference_output(data_source_reference_id: Optional[pulumi.Input[str]] = None,
                                  location: Optional[pulumi.Input[str]] = None,
                                  project: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetDataSourceReferenceResult]
    func GetDataSourceReference(ctx *Context, args *GetDataSourceReferenceArgs, opts ...InvokeOption) (*GetDataSourceReferenceResult, error)
    func GetDataSourceReferenceOutput(ctx *Context, args *GetDataSourceReferenceOutputArgs, opts ...InvokeOption) GetDataSourceReferenceResultOutput

    > Note: This function is named GetDataSourceReference in the Go SDK.

    public static class GetDataSourceReference 
    {
        public static Task<GetDataSourceReferenceResult> InvokeAsync(GetDataSourceReferenceArgs args, InvokeOptions? opts = null)
        public static Output<GetDataSourceReferenceResult> Invoke(GetDataSourceReferenceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDataSourceReferenceResult> getDataSourceReference(GetDataSourceReferenceArgs args, InvokeOptions options)
    public static Output<GetDataSourceReferenceResult> getDataSourceReference(GetDataSourceReferenceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcp:backupdisasterrecovery/getDataSourceReference:getDataSourceReference
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DataSourceReferenceId string
    • (Required) The id of the data source reference.
    Location string
    Project string
    • (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    DataSourceReferenceId string
    • (Required) The id of the data source reference.
    Location string
    Project string
    • (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    dataSourceReferenceId String
    • (Required) The id of the data source reference.
    location String
    project String
    • (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    dataSourceReferenceId string
    • (Required) The id of the data source reference.
    location string
    project string
    • (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    data_source_reference_id str
    • (Required) The id of the data source reference.
    location str
    project str
    • (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    dataSourceReferenceId String
    • (Required) The id of the data source reference.
    location String
    project String
    • (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    getDataSourceReference Result

    The following output properties are available:

    BackupConfigState string
    BackupCount int
    DataSource string
    DataSourceReferenceId string
    GcpResourceName string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastBackupState string
    LastSuccessfulBackupTime string
    Location string
    Name string
    Project string
    ResourceType string
    BackupConfigState string
    BackupCount int
    DataSource string
    DataSourceReferenceId string
    GcpResourceName string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastBackupState string
    LastSuccessfulBackupTime string
    Location string
    Name string
    Project string
    ResourceType string
    backupConfigState String
    backupCount Integer
    dataSource String
    dataSourceReferenceId String
    gcpResourceName String
    id String
    The provider-assigned unique ID for this managed resource.
    lastBackupState String
    lastSuccessfulBackupTime String
    location String
    name String
    project String
    resourceType String
    backupConfigState string
    backupCount number
    dataSource string
    dataSourceReferenceId string
    gcpResourceName string
    id string
    The provider-assigned unique ID for this managed resource.
    lastBackupState string
    lastSuccessfulBackupTime string
    location string
    name string
    project string
    resourceType string
    backupConfigState String
    backupCount Number
    dataSource String
    dataSourceReferenceId String
    gcpResourceName String
    id String
    The provider-assigned unique ID for this managed resource.
    lastBackupState String
    lastSuccessfulBackupTime String
    location String
    name String
    project String
    resourceType String

    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.
    gcp logo
    Google Cloud v9.4.0 published on Tuesday, Nov 4, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate