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

ibm.BackupRecoveryDataSourceConnection

Explore with Pulumi AI

Create, update, and delete Data-Source Connections with this resource.

Example Usage

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

const backupRecoveryDataSourceConnectionInstance = new ibm.BackupRecoveryDataSourceConnection("backupRecoveryDataSourceConnectionInstance", {connectionName: "connection_name"});
Copy
import pulumi
import pulumi_ibm as ibm

backup_recovery_data_source_connection_instance = ibm.BackupRecoveryDataSourceConnection("backupRecoveryDataSourceConnectionInstance", connection_name="connection_name")
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.NewBackupRecoveryDataSourceConnection(ctx, "backupRecoveryDataSourceConnectionInstance", &ibm.BackupRecoveryDataSourceConnectionArgs{
			ConnectionName: pulumi.String("connection_name"),
		})
		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 backupRecoveryDataSourceConnectionInstance = new Ibm.BackupRecoveryDataSourceConnection("backupRecoveryDataSourceConnectionInstance", new()
    {
        ConnectionName = "connection_name",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.BackupRecoveryDataSourceConnection;
import com.pulumi.ibm.BackupRecoveryDataSourceConnectionArgs;
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) {
        var backupRecoveryDataSourceConnectionInstance = new BackupRecoveryDataSourceConnection("backupRecoveryDataSourceConnectionInstance", BackupRecoveryDataSourceConnectionArgs.builder()
            .connectionName("connection_name")
            .build());

    }
}
Copy
resources:
  backupRecoveryDataSourceConnectionInstance:
    type: ibm:BackupRecoveryDataSourceConnection
    properties:
      connectionName: connection_name
Copy

Create BackupRecoveryDataSourceConnection Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new BackupRecoveryDataSourceConnection(name: string, args: BackupRecoveryDataSourceConnectionArgs, opts?: CustomResourceOptions);
@overload
def BackupRecoveryDataSourceConnection(resource_name: str,
                                       args: BackupRecoveryDataSourceConnectionArgs,
                                       opts: Optional[ResourceOptions] = None)

@overload
def BackupRecoveryDataSourceConnection(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       connection_name: Optional[str] = None,
                                       x_ibm_tenant_id: Optional[str] = None,
                                       backup_recovery_data_source_connection_id: Optional[str] = None)
func NewBackupRecoveryDataSourceConnection(ctx *Context, name string, args BackupRecoveryDataSourceConnectionArgs, opts ...ResourceOption) (*BackupRecoveryDataSourceConnection, error)
public BackupRecoveryDataSourceConnection(string name, BackupRecoveryDataSourceConnectionArgs args, CustomResourceOptions? opts = null)
public BackupRecoveryDataSourceConnection(String name, BackupRecoveryDataSourceConnectionArgs args)
public BackupRecoveryDataSourceConnection(String name, BackupRecoveryDataSourceConnectionArgs args, CustomResourceOptions options)
type: ibm:BackupRecoveryDataSourceConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. BackupRecoveryDataSourceConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. BackupRecoveryDataSourceConnectionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. BackupRecoveryDataSourceConnectionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. BackupRecoveryDataSourceConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. BackupRecoveryDataSourceConnectionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var backupRecoveryDataSourceConnectionResource = new Ibm.BackupRecoveryDataSourceConnection("backupRecoveryDataSourceConnectionResource", new()
{
    ConnectionName = "string",
    XIbmTenantId = "string",
    BackupRecoveryDataSourceConnectionId = "string",
});
Copy
example, err := ibm.NewBackupRecoveryDataSourceConnection(ctx, "backupRecoveryDataSourceConnectionResource", &ibm.BackupRecoveryDataSourceConnectionArgs{
	ConnectionName:                       pulumi.String("string"),
	XIbmTenantId:                         pulumi.String("string"),
	BackupRecoveryDataSourceConnectionId: pulumi.String("string"),
})
Copy
var backupRecoveryDataSourceConnectionResource = new BackupRecoveryDataSourceConnection("backupRecoveryDataSourceConnectionResource", BackupRecoveryDataSourceConnectionArgs.builder()
    .connectionName("string")
    .xIbmTenantId("string")
    .backupRecoveryDataSourceConnectionId("string")
    .build());
Copy
backup_recovery_data_source_connection_resource = ibm.BackupRecoveryDataSourceConnection("backupRecoveryDataSourceConnectionResource",
    connection_name="string",
    x_ibm_tenant_id="string",
    backup_recovery_data_source_connection_id="string")
Copy
const backupRecoveryDataSourceConnectionResource = new ibm.BackupRecoveryDataSourceConnection("backupRecoveryDataSourceConnectionResource", {
    connectionName: "string",
    xIbmTenantId: "string",
    backupRecoveryDataSourceConnectionId: "string",
});
Copy
type: ibm:BackupRecoveryDataSourceConnection
properties:
    backupRecoveryDataSourceConnectionId: string
    connectionName: string
    xIbmTenantId: string
Copy

BackupRecoveryDataSourceConnection Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The BackupRecoveryDataSourceConnection resource accepts the following input properties:

ConnectionName This property is required. 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.
XIbmTenantId This property is required. string
Id of the tenant accessing the cluster.
BackupRecoveryDataSourceConnectionId string
The unique identifier of the Data-Source Connection.
ConnectionName This property is required. 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.
XIbmTenantId This property is required. string
Id of the tenant accessing the cluster.
BackupRecoveryDataSourceConnectionId string
The unique identifier of the Data-Source Connection.
connectionName This property is required. 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.
xIbmTenantId This property is required. String
Id of the tenant accessing the cluster.
backupRecoveryDataSourceConnectionId String
The unique identifier of the Data-Source Connection.
connectionName This property is required. 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.
xIbmTenantId This property is required. string
Id of the tenant accessing the cluster.
backupRecoveryDataSourceConnectionId string
The unique identifier of the Data-Source Connection.
connection_name This property is required. str
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.
x_ibm_tenant_id This property is required. str
Id of the tenant accessing the cluster.
backup_recovery_data_source_connection_id str
The unique identifier of the Data-Source Connection.
connectionName This property is required. 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.
xIbmTenantId This property is required. String
Id of the tenant accessing the cluster.
backupRecoveryDataSourceConnectionId String
The unique identifier of the Data-Source Connection.

Outputs

All input properties are implicitly available as output properties. Additionally, the BackupRecoveryDataSourceConnection resource produces the following output properties:

ConnectionId string
The unique identifier of Connection.
ConnectorIds List<string>
(List) Specifies the IDs of the connectors in this connection.
Id string
The provider-assigned unique ID for this managed resource.
RegistrationToken string
(String) Specifies a token that can be used to register a connector against this connection.
TenantId string
(String) Specifies the tenant ID of the connection.
UpgradingConnectorId string
(String) Specifies the connector ID that is currently in upgrade.
ConnectionId string
The unique identifier of Connection.
ConnectorIds []string
(List) Specifies the IDs of the connectors in this connection.
Id string
The provider-assigned unique ID for this managed resource.
RegistrationToken string
(String) Specifies a token that can be used to register a connector against this connection.
TenantId string
(String) Specifies the tenant ID of the connection.
UpgradingConnectorId string
(String) Specifies the connector ID that is currently in upgrade.
connectionId String
The unique identifier of Connection.
connectorIds List<String>
(List) Specifies the IDs of the connectors in this connection.
id String
The provider-assigned unique ID for this managed resource.
registrationToken String
(String) Specifies a token that can be used to register a connector against this connection.
tenantId String
(String) Specifies the tenant ID of the connection.
upgradingConnectorId String
(String) Specifies the connector ID that is currently in upgrade.
connectionId string
The unique identifier of Connection.
connectorIds string[]
(List) Specifies the IDs of the connectors in this connection.
id string
The provider-assigned unique ID for this managed resource.
registrationToken string
(String) Specifies a token that can be used to register a connector against this connection.
tenantId string
(String) Specifies the tenant ID of the connection.
upgradingConnectorId string
(String) Specifies the connector ID that is currently in upgrade.
connection_id str
The unique identifier of Connection.
connector_ids Sequence[str]
(List) Specifies the IDs of the connectors in this connection.
id str
The provider-assigned unique ID for this managed resource.
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_id str
(String) Specifies the connector ID that is currently in upgrade.
connectionId String
The unique identifier of Connection.
connectorIds List<String>
(List) Specifies the IDs of the connectors in this connection.
id String
The provider-assigned unique ID for this managed resource.
registrationToken String
(String) Specifies a token that can be used to register a connector against this connection.
tenantId String
(String) Specifies the tenant ID of the connection.
upgradingConnectorId String
(String) Specifies the connector ID that is currently in upgrade.

Look up Existing BackupRecoveryDataSourceConnection Resource

Get an existing BackupRecoveryDataSourceConnection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: BackupRecoveryDataSourceConnectionState, opts?: CustomResourceOptions): BackupRecoveryDataSourceConnection
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        backup_recovery_data_source_connection_id: Optional[str] = None,
        connection_id: Optional[str] = None,
        connection_name: Optional[str] = None,
        connector_ids: Optional[Sequence[str]] = None,
        registration_token: Optional[str] = None,
        tenant_id: Optional[str] = None,
        upgrading_connector_id: Optional[str] = None,
        x_ibm_tenant_id: Optional[str] = None) -> BackupRecoveryDataSourceConnection
func GetBackupRecoveryDataSourceConnection(ctx *Context, name string, id IDInput, state *BackupRecoveryDataSourceConnectionState, opts ...ResourceOption) (*BackupRecoveryDataSourceConnection, error)
public static BackupRecoveryDataSourceConnection Get(string name, Input<string> id, BackupRecoveryDataSourceConnectionState? state, CustomResourceOptions? opts = null)
public static BackupRecoveryDataSourceConnection get(String name, Output<String> id, BackupRecoveryDataSourceConnectionState state, CustomResourceOptions options)
resources:  _:    type: ibm:BackupRecoveryDataSourceConnection    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
BackupRecoveryDataSourceConnectionId string
The unique identifier of the Data-Source Connection.
ConnectionId string
The unique identifier of Connection.
ConnectionName 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 List<string>
(List) Specifies the IDs of the connectors in this connection.
RegistrationToken string
(String) Specifies a token that can be used to register a connector against this connection.
TenantId string
(String) Specifies the tenant ID of the connection.
UpgradingConnectorId string
(String) Specifies the connector ID that is currently in upgrade.
XIbmTenantId string
Id of the tenant accessing the cluster.
BackupRecoveryDataSourceConnectionId string
The unique identifier of the Data-Source Connection.
ConnectionId string
The unique identifier of Connection.
ConnectionName 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 []string
(List) Specifies the IDs of the connectors in this connection.
RegistrationToken string
(String) Specifies a token that can be used to register a connector against this connection.
TenantId string
(String) Specifies the tenant ID of the connection.
UpgradingConnectorId string
(String) Specifies the connector ID that is currently in upgrade.
XIbmTenantId string
Id of the tenant accessing the cluster.
backupRecoveryDataSourceConnectionId String
The unique identifier of the Data-Source Connection.
connectionId String
The unique identifier of Connection.
connectionName 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 List<String>
(List) Specifies the IDs of the connectors in this connection.
registrationToken String
(String) Specifies a token that can be used to register a connector against this connection.
tenantId String
(String) Specifies the tenant ID of the connection.
upgradingConnectorId String
(String) Specifies the connector ID that is currently in upgrade.
xIbmTenantId String
Id of the tenant accessing the cluster.
backupRecoveryDataSourceConnectionId string
The unique identifier of the Data-Source Connection.
connectionId string
The unique identifier of Connection.
connectionName 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 string[]
(List) Specifies the IDs of the connectors in this connection.
registrationToken string
(String) Specifies a token that can be used to register a connector against this connection.
tenantId string
(String) Specifies the tenant ID of the connection.
upgradingConnectorId string
(String) Specifies the connector ID that is currently in upgrade.
xIbmTenantId string
Id of the tenant accessing the cluster.
backup_recovery_data_source_connection_id str
The unique identifier of the Data-Source Connection.
connection_id str
The unique identifier of Connection.
connection_name str
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_id str
(String) Specifies the connector ID that is currently in upgrade.
x_ibm_tenant_id str
Id of the tenant accessing the cluster.
backupRecoveryDataSourceConnectionId String
The unique identifier of the Data-Source Connection.
connectionId String
The unique identifier of Connection.
connectionName 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 List<String>
(List) Specifies the IDs of the connectors in this connection.
registrationToken String
(String) Specifies a token that can be used to register a connector against this connection.
tenantId String
(String) Specifies the tenant ID of the connection.
upgradingConnectorId String
(String) Specifies the connector ID that is currently in upgrade.
xIbmTenantId String
Id of the tenant accessing the cluster.

Package Details

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