1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. backupdisasterrecovery
  5. getDataSourceReferences
Google Cloud v9.0.0 published on Thursday, Sep 18, 2025 by Pulumi

gcp.backupdisasterrecovery.getDataSourceReferences

Explore with Pulumi AI

gcp logo
Google Cloud v9.0.0 published on Thursday, Sep 18, 2025 by Pulumi

    A list of Backup and DR data source references.

    Using getDataSourceReferences

    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 getDataSourceReferences(args: GetDataSourceReferencesArgs, opts?: InvokeOptions): Promise<GetDataSourceReferencesResult>
    function getDataSourceReferencesOutput(args: GetDataSourceReferencesOutputArgs, opts?: InvokeOptions): Output<GetDataSourceReferencesResult>
    def get_data_source_references(location: Optional[str] = None,
                                   project: Optional[str] = None,
                                   resource_type: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetDataSourceReferencesResult
    def get_data_source_references_output(location: Optional[pulumi.Input[str]] = None,
                                   project: Optional[pulumi.Input[str]] = None,
                                   resource_type: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetDataSourceReferencesResult]
    func GetDataSourceReferences(ctx *Context, args *GetDataSourceReferencesArgs, opts ...InvokeOption) (*GetDataSourceReferencesResult, error)
    func GetDataSourceReferencesOutput(ctx *Context, args *GetDataSourceReferencesOutputArgs, opts ...InvokeOption) GetDataSourceReferencesResultOutput

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

    public static class GetDataSourceReferences 
    {
        public static Task<GetDataSourceReferencesResult> InvokeAsync(GetDataSourceReferencesArgs args, InvokeOptions? opts = null)
        public static Output<GetDataSourceReferencesResult> Invoke(GetDataSourceReferencesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDataSourceReferencesResult> getDataSourceReferences(GetDataSourceReferencesArgs args, InvokeOptions options)
    public static Output<GetDataSourceReferencesResult> getDataSourceReferences(GetDataSourceReferencesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcp:backupdisasterrecovery/getDataSourceReferences:getDataSourceReferences
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Location string
    ResourceType string
    • (Required) The resource type to get the data source references for. Examples include, "sqladmin.googleapis.com/Instance" , "compute.googleapis.com/Instance" (right now this service not available for compute Instances , it will be added soon )
    Project string
    • (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Location string
    ResourceType string
    • (Required) The resource type to get the data source references for. Examples include, "sqladmin.googleapis.com/Instance" , "compute.googleapis.com/Instance" (right now this service not available for compute Instances , it will be added soon )
    Project string
    • (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location String
    resourceType String
    • (Required) The resource type to get the data source references for. Examples include, "sqladmin.googleapis.com/Instance" , "compute.googleapis.com/Instance" (right now this service not available for compute Instances , it will be added soon )
    project String
    • (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location string
    resourceType string
    • (Required) The resource type to get the data source references for. Examples include, "sqladmin.googleapis.com/Instance" , "compute.googleapis.com/Instance" (right now this service not available for compute Instances , it will be added soon )
    project string
    • (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location str
    resource_type str
    • (Required) The resource type to get the data source references for. Examples include, "sqladmin.googleapis.com/Instance" , "compute.googleapis.com/Instance" (right now this service not available for compute Instances , it will be added soon )
    project str
    • (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    location String
    resourceType String
    • (Required) The resource type to get the data source references for. Examples include, "sqladmin.googleapis.com/Instance" , "compute.googleapis.com/Instance" (right now this service not available for compute Instances , it will be added soon )
    project String
    • (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    getDataSourceReferences Result

    The following output properties are available:

    DataSourceReferences List<GetDataSourceReferencesDataSourceReference>
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Project string
    ResourceType string
    DataSourceReferences []GetDataSourceReferencesDataSourceReference
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    Project string
    ResourceType string
    dataSourceReferences List<GetDataSourceReferencesDataSourceReference>
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    project String
    resourceType String
    dataSourceReferences GetDataSourceReferencesDataSourceReference[]
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    project string
    resourceType string
    data_source_references Sequence[GetDataSourceReferencesDataSourceReference]
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    project str
    resource_type str
    dataSourceReferences List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    project String
    resourceType String

    Supporting Types

    GetDataSourceReferencesDataSourceReference

    BackupConfigState string
    The state of the backup config for the data source.
    BackupCount int
    The number of backups for the data source.
    DataSource string
    The underlying data source resource.
    GcpResourceName string
    The GCP resource name for the data source.
    LastBackupState string
    The state of the last backup.
    LastSuccessfulBackupTime string
    The last time a successful backup was made.
    Name string
    ResourceType string
    • (Required) The resource type to get the data source references for. Examples include, "sqladmin.googleapis.com/Instance" , "compute.googleapis.com/Instance" (right now this service not available for compute Instances , it will be added soon )
    BackupConfigState string
    The state of the backup config for the data source.
    BackupCount int
    The number of backups for the data source.
    DataSource string
    The underlying data source resource.
    GcpResourceName string
    The GCP resource name for the data source.
    LastBackupState string
    The state of the last backup.
    LastSuccessfulBackupTime string
    The last time a successful backup was made.
    Name string
    ResourceType string
    • (Required) The resource type to get the data source references for. Examples include, "sqladmin.googleapis.com/Instance" , "compute.googleapis.com/Instance" (right now this service not available for compute Instances , it will be added soon )
    backupConfigState String
    The state of the backup config for the data source.
    backupCount Integer
    The number of backups for the data source.
    dataSource String
    The underlying data source resource.
    gcpResourceName String
    The GCP resource name for the data source.
    lastBackupState String
    The state of the last backup.
    lastSuccessfulBackupTime String
    The last time a successful backup was made.
    name String
    resourceType String
    • (Required) The resource type to get the data source references for. Examples include, "sqladmin.googleapis.com/Instance" , "compute.googleapis.com/Instance" (right now this service not available for compute Instances , it will be added soon )
    backupConfigState string
    The state of the backup config for the data source.
    backupCount number
    The number of backups for the data source.
    dataSource string
    The underlying data source resource.
    gcpResourceName string
    The GCP resource name for the data source.
    lastBackupState string
    The state of the last backup.
    lastSuccessfulBackupTime string
    The last time a successful backup was made.
    name string
    resourceType string
    • (Required) The resource type to get the data source references for. Examples include, "sqladmin.googleapis.com/Instance" , "compute.googleapis.com/Instance" (right now this service not available for compute Instances , it will be added soon )
    backup_config_state str
    The state of the backup config for the data source.
    backup_count int
    The number of backups for the data source.
    data_source str
    The underlying data source resource.
    gcp_resource_name str
    The GCP resource name for the data source.
    last_backup_state str
    The state of the last backup.
    last_successful_backup_time str
    The last time a successful backup was made.
    name str
    resource_type str
    • (Required) The resource type to get the data source references for. Examples include, "sqladmin.googleapis.com/Instance" , "compute.googleapis.com/Instance" (right now this service not available for compute Instances , it will be added soon )
    backupConfigState String
    The state of the backup config for the data source.
    backupCount Number
    The number of backups for the data source.
    dataSource String
    The underlying data source resource.
    gcpResourceName String
    The GCP resource name for the data source.
    lastBackupState String
    The state of the last backup.
    lastSuccessfulBackupTime String
    The last time a successful backup was made.
    name String
    resourceType String
    • (Required) The resource type to get the data source references for. Examples include, "sqladmin.googleapis.com/Instance" , "compute.googleapis.com/Instance" (right now this service not available for compute Instances , it will be added soon )

    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.0.0 published on Thursday, Sep 18, 2025 by Pulumi