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,
});
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"])
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
})
}
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,
});
});
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());
}
}
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}
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>
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]
func GetBackupRecoveryDataSourceConnections(ctx *Context, args *GetBackupRecoveryDataSourceConnectionsArgs, opts ...InvokeOption) (*GetBackupRecoveryDataSourceConnectionsResult, error)
func GetBackupRecoveryDataSourceConnectionsOutput(ctx *Context, args *GetBackupRecoveryDataSourceConnectionsOutputArgs, opts ...InvokeOption) GetBackupRecoveryDataSourceConnectionsResultOutput
> 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)
}
public static CompletableFuture<GetBackupRecoveryDataSourceConnectionsResult> getBackupRecoveryDataSourceConnections(GetBackupRecoveryDataSourceConnectionsArgs args, InvokeOptions options)
public static Output<GetBackupRecoveryDataSourceConnectionsResult> getBackupRecoveryDataSourceConnections(GetBackupRecoveryDataSourceConnectionsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getBackupRecoveryDataSourceConnections:getBackupRecoveryDataSourceConnections
arguments:
# arguments dictionary
The following arguments are supported:
- XIbm
Tenant stringId - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
- Connection
Ids List<string> - Specifies the unique IDs of the connections which are to be fetched.
- Connection
Names List<string> - Specifies the names of the connections which are to be fetched.
- Id string
- The unique identifier of the Data-Source Connections.
- XIbm
Tenant stringId - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
- Connection
Ids []string - Specifies the unique IDs of the connections which are to be fetched.
- Connection
Names []string - Specifies the names of the connections which are to be fetched.
- Id string
- The unique identifier of the Data-Source Connections.
- x
Ibm StringTenant Id - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
- connection
Ids List<String> - Specifies the unique IDs of the connections which are to be fetched.
- connection
Names List<String> - Specifies the names of the connections which are to be fetched.
- id String
- The unique identifier of the Data-Source Connections.
- x
Ibm stringTenant Id - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
- connection
Ids string[] - Specifies the unique IDs of the connections which are to be fetched.
- connection
Names string[] - Specifies the names of the connections which are to be fetched.
- id string
- The unique identifier of the Data-Source Connections.
- x_
ibm_ strtenant_ id - 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.
- x
Ibm StringTenant Id - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
- connection
Ids List<String> - Specifies the unique IDs of the connections which are to be fetched.
- connection
Names 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<Get
Backup Recovery Data Source Connections Connection> - (List) Nested schema for connections:
- Id string
- The unique identifier of the Data-Source Connections.
- XIbm
Tenant stringId - Connection
Ids List<string> - Connection
Names List<string>
- Connections
[]Get
Backup Recovery Data Source Connections Connection - (List) Nested schema for connections:
- Id string
- The unique identifier of the Data-Source Connections.
- XIbm
Tenant stringId - Connection
Ids []string - Connection
Names []string
- connections
List<Get
Backup Recovery Data Source Connections Connection> - (List) Nested schema for connections:
- id String
- The unique identifier of the Data-Source Connections.
- x
Ibm StringTenant Id - connection
Ids List<String> - connection
Names List<String>
- connections
Get
Backup Recovery Data Source Connections Connection[] - (List) Nested schema for connections:
- id string
- The unique identifier of the Data-Source Connections.
- x
Ibm stringTenant Id - connection
Ids string[] - connection
Names string[]
- connections
Sequence[Get
Backup Recovery Data Source Connections Connection] - (List) Nested schema for connections:
- id str
- The unique identifier of the Data-Source Connections.
- x_
ibm_ strtenant_ id - 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.
- x
Ibm StringTenant Id - connection
Ids List<String> - connection
Names List<String>
Supporting Types
GetBackupRecoveryDataSourceConnectionsConnection
- Connection
Id string - (String) Specifies the unique ID of the connection.
- Connection
Name 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.
- Connector
Ids List<string> - (List) Specifies the IDs of the connectors in this connection.
- Registration
Token string - (String) Specifies a token that can be used to register a connector against this connection.
- Tenant
Id string - (String) Specifies the tenant ID of the connection.
- Upgrading
Connector stringId - (String) Specifies the connector ID that is currently in upgrade.
- Connection
Id string - (String) Specifies the unique ID of the connection.
- Connection
Name 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.
- Connector
Ids []string - (List) Specifies the IDs of the connectors in this connection.
- Registration
Token string - (String) Specifies a token that can be used to register a connector against this connection.
- Tenant
Id string - (String) Specifies the tenant ID of the connection.
- Upgrading
Connector stringId - (String) Specifies the connector ID that is currently in upgrade.
- connection
Id String - (String) Specifies the unique ID of the connection.
- connection
Name 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.
- connector
Ids List<String> - (List) Specifies the IDs of the connectors in this connection.
- registration
Token String - (String) Specifies a token that can be used to register a connector against this connection.
- tenant
Id String - (String) Specifies the tenant ID of the connection.
- upgrading
Connector StringId - (String) Specifies the connector ID that is currently in upgrade.
- connection
Id string - (String) Specifies the unique ID of the connection.
- connection
Name 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.
- connector
Ids string[] - (List) Specifies the IDs of the connectors in this connection.
- registration
Token string - (String) Specifies a token that can be used to register a connector against this connection.
- tenant
Id string - (String) Specifies the tenant ID of the connection.
- upgrading
Connector stringId - (String) Specifies the connector ID that is currently in upgrade.
- connection_
id str - (String) Specifies the unique ID of the connection.
- connection_
name 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 Sequence[str] - (List) Specifies the IDs of the connectors in this connection.
- registration_
token str - (String) Specifies a token that can be used to register a connector against this connection.
- tenant_
id str - (String) Specifies the tenant ID of the connection.
- upgrading_
connector_ strid - (String) Specifies the connector ID that is currently in upgrade.
- connection
Id String - (String) Specifies the unique ID of the connection.
- connection
Name 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.
- connector
Ids List<String> - (List) Specifies the IDs of the connectors in this connection.
- registration
Token String - (String) Specifies a token that can be used to register a connector against this connection.
- tenant
Id String - (String) Specifies the tenant ID of the connection.
- upgrading
Connector StringId - (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.