Google Cloud v9.3.0 published on Tuesday, Oct 7, 2025 by Pulumi
gcp.backupdisasterrecovery.getDataSourceReference
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 dictionaryThe following arguments are supported:
- Data
Source stringReference Id - (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 stringReference Id - (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 StringReference Id - (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 stringReference Id - (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_ strreference_ id - (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.
- data
Source StringReference Id - (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:
- Backup
Config stringState - Backup
Count int - Data
Source string - Data
Source stringReference Id - Gcp
Resource stringName - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Backup stringState - Last
Successful stringBackup Time - Location string
- Name string
- Project string
- Resource
Type string
- Backup
Config stringState - Backup
Count int - Data
Source string - Data
Source stringReference Id - Gcp
Resource stringName - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Backup stringState - Last
Successful stringBackup Time - Location string
- Name string
- Project string
- Resource
Type string
- backup
Config StringState - backup
Count Integer - data
Source String - data
Source StringReference Id - gcp
Resource StringName - id String
- The provider-assigned unique ID for this managed resource.
- last
Backup StringState - last
Successful StringBackup Time - location String
- name String
- project String
- resource
Type String
- backup
Config stringState - backup
Count number - data
Source string - data
Source stringReference Id - gcp
Resource stringName - id string
- The provider-assigned unique ID for this managed resource.
- last
Backup stringState - last
Successful stringBackup Time - location string
- name string
- project string
- resource
Type string
- backup_
config_ strstate - backup_
count int - data_
source str - data_
source_ strreference_ id - gcp_
resource_ strname - id str
- The provider-assigned unique ID for this managed resource.
- last_
backup_ strstate - last_
successful_ strbackup_ time - location str
- name str
- project str
- resource_
type str
- backup
Config StringState - backup
Count Number - data
Source String - data
Source StringReference Id - gcp
Resource StringName - id String
- The provider-assigned unique ID for this managed resource.
- last
Backup StringState - last
Successful StringBackup Time - location String
- name String
- project String
- resource
Type String
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.
