Google Cloud v9.0.0 published on Thursday, Sep 18, 2025 by Pulumi
gcp.backupdisasterrecovery.getDataSourceReferences
Explore with Pulumi AI
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
- Resource
Type 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
- Resource
Type 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
- resource
Type 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
- resource
Type 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
- resource
Type 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:
- Data
Source List<GetReferences Data Source References Data Source Reference> - Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Project string
- Resource
Type string
- Data
Source []GetReferences Data Source References Data Source Reference - Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Project string
- Resource
Type string
- data
Source List<GetReferences Data Source References Data Source Reference> - id String
- The provider-assigned unique ID for this managed resource.
- location String
- project String
- resource
Type String
- data
Source GetReferences Data Source References Data Source Reference[] - id string
- The provider-assigned unique ID for this managed resource.
- location string
- project string
- resource
Type string
- data_
source_ Sequence[Getreferences Data Source References Data Source Reference] - id str
- The provider-assigned unique ID for this managed resource.
- location str
- project str
- resource_
type str
- data
Source List<Property Map>References - id String
- The provider-assigned unique ID for this managed resource.
- location String
- project String
- resource
Type String
Supporting Types
GetDataSourceReferencesDataSourceReference
- Backup
Config stringState - The state of the backup config for the data source.
- Backup
Count int - The number of backups for the data source.
- Data
Source string - The underlying data source resource.
- Gcp
Resource stringName - The GCP resource name for the data source.
- Last
Backup stringState - The state of the last backup.
- Last
Successful stringBackup Time - The last time a successful backup was made.
- Name string
- Resource
Type 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 stringState - The state of the backup config for the data source.
- Backup
Count int - The number of backups for the data source.
- Data
Source string - The underlying data source resource.
- Gcp
Resource stringName - The GCP resource name for the data source.
- Last
Backup stringState - The state of the last backup.
- Last
Successful stringBackup Time - The last time a successful backup was made.
- Name string
- Resource
Type 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 StringState - The state of the backup config for the data source.
- backup
Count Integer - The number of backups for the data source.
- data
Source String - The underlying data source resource.
- gcp
Resource StringName - The GCP resource name for the data source.
- last
Backup StringState - The state of the last backup.
- last
Successful StringBackup Time - The last time a successful backup was made.
- name String
- resource
Type 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 stringState - The state of the backup config for the data source.
- backup
Count number - The number of backups for the data source.
- data
Source string - The underlying data source resource.
- gcp
Resource stringName - The GCP resource name for the data source.
- last
Backup stringState - The state of the last backup.
- last
Successful stringBackup Time - The last time a successful backup was made.
- name string
- resource
Type 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_ strstate - 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_ strname - The GCP resource name for the data source.
- last_
backup_ strstate - The state of the last backup.
- last_
successful_ strbackup_ time - 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 )
- backup
Config StringState - The state of the backup config for the data source.
- backup
Count Number - The number of backups for the data source.
- data
Source String - The underlying data source resource.
- gcp
Resource StringName - The GCP resource name for the data source.
- last
Backup StringState - The state of the last backup.
- last
Successful StringBackup Time - The last time a successful backup was made.
- name String
- resource
Type 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.