1. Packages
  2. Ibm Provider
  3. API Docs
  4. getBackupRecoveryDataSourceConnections
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getBackupRecoveryDataSourceConnections

Explore with Pulumi AI

Provides a read-only data source to retrieve information about Data-Source Connections. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const backupRecoveryDataSourceConnections = ibm.getBackupRecoveryDataSourceConnections({
    xIbmTenantId: ibm_backup_recovery_data_source_connection.backup_recovery_data_source_connection_instance.x_ibm_tenant_id,
});
Copy
import pulumi
import pulumi_ibm as ibm

backup_recovery_data_source_connections = ibm.get_backup_recovery_data_source_connections(x_ibm_tenant_id=ibm_backup_recovery_data_source_connection["backup_recovery_data_source_connection_instance"]["x_ibm_tenant_id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.GetBackupRecoveryDataSourceConnections(ctx, &ibm.GetBackupRecoveryDataSourceConnectionsArgs{
			XIbmTenantId: ibm_backup_recovery_data_source_connection.Backup_recovery_data_source_connection_instance.X_ibm_tenant_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var backupRecoveryDataSourceConnections = Ibm.GetBackupRecoveryDataSourceConnections.Invoke(new()
    {
        XIbmTenantId = ibm_backup_recovery_data_source_connection.Backup_recovery_data_source_connection_instance.X_ibm_tenant_id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetBackupRecoveryDataSourceConnectionsArgs;
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 backupRecoveryDataSourceConnections = IbmFunctions.getBackupRecoveryDataSourceConnections(GetBackupRecoveryDataSourceConnectionsArgs.builder()
            .xIbmTenantId(ibm_backup_recovery_data_source_connection.backup_recovery_data_source_connection_instance().x_ibm_tenant_id())
            .build());

    }
}
Copy
variables:
  backupRecoveryDataSourceConnections:
    fn::invoke:
      function: ibm:getBackupRecoveryDataSourceConnections
      arguments:
        xIbmTenantId: ${ibm_backup_recovery_data_source_connection.backup_recovery_data_source_connection_instance.x_ibm_tenant_id}
Copy

Using getBackupRecoveryDataSourceConnections

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 getBackupRecoveryDataSourceConnections(args: GetBackupRecoveryDataSourceConnectionsArgs, opts?: InvokeOptions): Promise<GetBackupRecoveryDataSourceConnectionsResult>
function getBackupRecoveryDataSourceConnectionsOutput(args: GetBackupRecoveryDataSourceConnectionsOutputArgs, opts?: InvokeOptions): Output<GetBackupRecoveryDataSourceConnectionsResult>
Copy
def get_backup_recovery_data_source_connections(connection_ids: Optional[Sequence[str]] = None,
                                                connection_names: Optional[Sequence[str]] = None,
                                                id: Optional[str] = None,
                                                x_ibm_tenant_id: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetBackupRecoveryDataSourceConnectionsResult
def get_backup_recovery_data_source_connections_output(connection_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                                connection_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                                id: Optional[pulumi.Input[str]] = None,
                                                x_ibm_tenant_id: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetBackupRecoveryDataSourceConnectionsResult]
Copy
func GetBackupRecoveryDataSourceConnections(ctx *Context, args *GetBackupRecoveryDataSourceConnectionsArgs, opts ...InvokeOption) (*GetBackupRecoveryDataSourceConnectionsResult, error)
func GetBackupRecoveryDataSourceConnectionsOutput(ctx *Context, args *GetBackupRecoveryDataSourceConnectionsOutputArgs, opts ...InvokeOption) GetBackupRecoveryDataSourceConnectionsResultOutput
Copy

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

public static class GetBackupRecoveryDataSourceConnections 
{
    public static Task<GetBackupRecoveryDataSourceConnectionsResult> InvokeAsync(GetBackupRecoveryDataSourceConnectionsArgs args, InvokeOptions? opts = null)
    public static Output<GetBackupRecoveryDataSourceConnectionsResult> Invoke(GetBackupRecoveryDataSourceConnectionsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetBackupRecoveryDataSourceConnectionsResult> getBackupRecoveryDataSourceConnections(GetBackupRecoveryDataSourceConnectionsArgs args, InvokeOptions options)
public static Output<GetBackupRecoveryDataSourceConnectionsResult> getBackupRecoveryDataSourceConnections(GetBackupRecoveryDataSourceConnectionsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getBackupRecoveryDataSourceConnections:getBackupRecoveryDataSourceConnections
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

XIbmTenantId This property is required. string
Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
ConnectionIds List<string>
Specifies the unique IDs of the connections which are to be fetched.
ConnectionNames List<string>
Specifies the names of the connections which are to be fetched.
Id string
The unique identifier of the Data-Source Connections.
XIbmTenantId This property is required. string
Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
ConnectionIds []string
Specifies the unique IDs of the connections which are to be fetched.
ConnectionNames []string
Specifies the names of the connections which are to be fetched.
Id string
The unique identifier of the Data-Source Connections.
xIbmTenantId This property is required. String
Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
connectionIds List<String>
Specifies the unique IDs of the connections which are to be fetched.
connectionNames List<String>
Specifies the names of the connections which are to be fetched.
id String
The unique identifier of the Data-Source Connections.
xIbmTenantId This property is required. string
Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
connectionIds string[]
Specifies the unique IDs of the connections which are to be fetched.
connectionNames string[]
Specifies the names of the connections which are to be fetched.
id string
The unique identifier of the Data-Source Connections.
x_ibm_tenant_id This property is required. str
Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
connection_ids Sequence[str]
Specifies the unique IDs of the connections which are to be fetched.
connection_names Sequence[str]
Specifies the names of the connections which are to be fetched.
id str
The unique identifier of the Data-Source Connections.
xIbmTenantId This property is required. String
Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
connectionIds List<String>
Specifies the unique IDs of the connections which are to be fetched.
connectionNames List<String>
Specifies the names of the connections which are to be fetched.
id String
The unique identifier of the Data-Source Connections.

getBackupRecoveryDataSourceConnections Result

The following output properties are available:

Connections List<GetBackupRecoveryDataSourceConnectionsConnection>
(List) Nested schema for connections:
Id string
The unique identifier of the Data-Source Connections.
XIbmTenantId string
ConnectionIds List<string>
ConnectionNames List<string>
Connections []GetBackupRecoveryDataSourceConnectionsConnection
(List) Nested schema for connections:
Id string
The unique identifier of the Data-Source Connections.
XIbmTenantId string
ConnectionIds []string
ConnectionNames []string
connections List<GetBackupRecoveryDataSourceConnectionsConnection>
(List) Nested schema for connections:
id String
The unique identifier of the Data-Source Connections.
xIbmTenantId String
connectionIds List<String>
connectionNames List<String>
connections GetBackupRecoveryDataSourceConnectionsConnection[]
(List) Nested schema for connections:
id string
The unique identifier of the Data-Source Connections.
xIbmTenantId string
connectionIds string[]
connectionNames string[]
connections Sequence[GetBackupRecoveryDataSourceConnectionsConnection]
(List) Nested schema for connections:
id str
The unique identifier of the Data-Source Connections.
x_ibm_tenant_id str
connection_ids Sequence[str]
connection_names Sequence[str]
connections List<Property Map>
(List) Nested schema for connections:
id String
The unique identifier of the Data-Source Connections.
xIbmTenantId String
connectionIds List<String>
connectionNames List<String>

Supporting Types

GetBackupRecoveryDataSourceConnectionsConnection

ConnectionId This property is required. string
(String) Specifies the unique ID of the connection.
ConnectionName This property is required. string
(String) Specifies the name of the connection. For a given tenant, different connections can't have the same name. However, two (or more) different tenants can each have a connection with the same name.
ConnectorIds This property is required. List<string>
(List) Specifies the IDs of the connectors in this connection.
RegistrationToken This property is required. string
(String) Specifies a token that can be used to register a connector against this connection.
TenantId This property is required. string
(String) Specifies the tenant ID of the connection.
UpgradingConnectorId This property is required. string
(String) Specifies the connector ID that is currently in upgrade.
ConnectionId This property is required. string
(String) Specifies the unique ID of the connection.
ConnectionName This property is required. string
(String) Specifies the name of the connection. For a given tenant, different connections can't have the same name. However, two (or more) different tenants can each have a connection with the same name.
ConnectorIds This property is required. []string
(List) Specifies the IDs of the connectors in this connection.
RegistrationToken This property is required. string
(String) Specifies a token that can be used to register a connector against this connection.
TenantId This property is required. string
(String) Specifies the tenant ID of the connection.
UpgradingConnectorId This property is required. string
(String) Specifies the connector ID that is currently in upgrade.
connectionId This property is required. String
(String) Specifies the unique ID of the connection.
connectionName This property is required. String
(String) Specifies the name of the connection. For a given tenant, different connections can't have the same name. However, two (or more) different tenants can each have a connection with the same name.
connectorIds This property is required. List<String>
(List) Specifies the IDs of the connectors in this connection.
registrationToken This property is required. String
(String) Specifies a token that can be used to register a connector against this connection.
tenantId This property is required. String
(String) Specifies the tenant ID of the connection.
upgradingConnectorId This property is required. String
(String) Specifies the connector ID that is currently in upgrade.
connectionId This property is required. string
(String) Specifies the unique ID of the connection.
connectionName This property is required. string
(String) Specifies the name of the connection. For a given tenant, different connections can't have the same name. However, two (or more) different tenants can each have a connection with the same name.
connectorIds This property is required. string[]
(List) Specifies the IDs of the connectors in this connection.
registrationToken This property is required. string
(String) Specifies a token that can be used to register a connector against this connection.
tenantId This property is required. string
(String) Specifies the tenant ID of the connection.
upgradingConnectorId This property is required. string
(String) Specifies the connector ID that is currently in upgrade.
connection_id This property is required. str
(String) Specifies the unique ID of the connection.
connection_name This property is required. str
(String) Specifies the name of the connection. For a given tenant, different connections can't have the same name. However, two (or more) different tenants can each have a connection with the same name.
connector_ids This property is required. Sequence[str]
(List) Specifies the IDs of the connectors in this connection.
registration_token This property is required. str
(String) Specifies a token that can be used to register a connector against this connection.
tenant_id This property is required. str
(String) Specifies the tenant ID of the connection.
upgrading_connector_id This property is required. str
(String) Specifies the connector ID that is currently in upgrade.
connectionId This property is required. String
(String) Specifies the unique ID of the connection.
connectionName This property is required. String
(String) Specifies the name of the connection. For a given tenant, different connections can't have the same name. However, two (or more) different tenants can each have a connection with the same name.
connectorIds This property is required. List<String>
(List) Specifies the IDs of the connectors in this connection.
registrationToken This property is required. String
(String) Specifies a token that can be used to register a connector against this connection.
tenantId This property is required. String
(String) Specifies the tenant ID of the connection.
upgradingConnectorId This property is required. String
(String) Specifies the connector ID that is currently in upgrade.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.