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"});
import pulumi
import pulumi_ibm as ibm
backup_recovery_data_source_connection_instance = ibm.BackupRecoveryDataSourceConnection("backupRecoveryDataSourceConnectionInstance", connection_name="connection_name")
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
})
}
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",
});
});
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());
}
}
resources:
backupRecoveryDataSourceConnectionInstance:
type: ibm:BackupRecoveryDataSourceConnection
properties:
connectionName: connection_name
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 string
- The unique name of the resource.
- args BackupRecoveryDataSourceConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args BackupRecoveryDataSourceConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupRecoveryDataSourceConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := ibm.NewBackupRecoveryDataSourceConnection(ctx, "backupRecoveryDataSourceConnectionResource", &ibm.BackupRecoveryDataSourceConnectionArgs{
ConnectionName: pulumi.String("string"),
XIbmTenantId: pulumi.String("string"),
BackupRecoveryDataSourceConnectionId: pulumi.String("string"),
})
var backupRecoveryDataSourceConnectionResource = new BackupRecoveryDataSourceConnection("backupRecoveryDataSourceConnectionResource", BackupRecoveryDataSourceConnectionArgs.builder()
.connectionName("string")
.xIbmTenantId("string")
.backupRecoveryDataSourceConnectionId("string")
.build());
backup_recovery_data_source_connection_resource = ibm.BackupRecoveryDataSourceConnection("backupRecoveryDataSourceConnectionResource",
connection_name="string",
x_ibm_tenant_id="string",
backup_recovery_data_source_connection_id="string")
const backupRecoveryDataSourceConnectionResource = new ibm.BackupRecoveryDataSourceConnection("backupRecoveryDataSourceConnectionResource", {
connectionName: "string",
xIbmTenantId: "string",
backupRecoveryDataSourceConnectionId: "string",
});
type: ibm:BackupRecoveryDataSourceConnection
properties:
backupRecoveryDataSourceConnectionId: string
connectionName: string
xIbmTenantId: string
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:
- Connection
Name 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.
- XIbm
Tenant stringId - Id of the tenant accessing the cluster.
- Backup
Recovery stringData Source Connection Id - The unique identifier of the Data-Source Connection.
- Connection
Name 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.
- XIbm
Tenant stringId - Id of the tenant accessing the cluster.
- Backup
Recovery stringData Source Connection Id - The unique identifier of the Data-Source Connection.
- connection
Name 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.
- x
Ibm StringTenant Id - Id of the tenant accessing the cluster.
- backup
Recovery StringData Source Connection Id - The unique identifier of the Data-Source Connection.
- connection
Name 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.
- x
Ibm stringTenant Id - Id of the tenant accessing the cluster.
- backup
Recovery stringData Source Connection Id - The unique identifier of the Data-Source 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.
- x_
ibm_ strtenant_ id - Id of the tenant accessing the cluster.
- backup_
recovery_ strdata_ source_ connection_ id - The unique identifier of the Data-Source Connection.
- connection
Name 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.
- x
Ibm StringTenant Id - Id of the tenant accessing the cluster.
- backup
Recovery StringData Source Connection Id - 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:
- Connection
Id string - The unique identifier of Connection.
- Connector
Ids List<string> - (List) Specifies the IDs of the connectors in this connection.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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 - The unique identifier of Connection.
- Connector
Ids []string - (List) Specifies the IDs of the connectors in this connection.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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 - The unique identifier of Connection.
- connector
Ids List<String> - (List) Specifies the IDs of the connectors in this connection.
- id String
- The provider-assigned unique ID for this managed resource.
- 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 - The unique identifier of Connection.
- connector
Ids string[] - (List) Specifies the IDs of the connectors in this connection.
- id string
- The provider-assigned unique ID for this managed resource.
- 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 - 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_ strid - (String) Specifies the connector ID that is currently in upgrade.
- connection
Id String - The unique identifier of Connection.
- connector
Ids List<String> - (List) Specifies the IDs of the connectors in this connection.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Backup
Recovery stringData Source Connection Id - The unique identifier of the Data-Source Connection.
- Connection
Id string - The unique identifier of Connection.
- Connection
Name 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.
- XIbm
Tenant stringId - Id of the tenant accessing the cluster.
- Backup
Recovery stringData Source Connection Id - The unique identifier of the Data-Source Connection.
- Connection
Id string - The unique identifier of Connection.
- Connection
Name 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.
- XIbm
Tenant stringId - Id of the tenant accessing the cluster.
- backup
Recovery StringData Source Connection Id - The unique identifier of the Data-Source Connection.
- connection
Id String - The unique identifier of Connection.
- connection
Name 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.
- x
Ibm StringTenant Id - Id of the tenant accessing the cluster.
- backup
Recovery stringData Source Connection Id - The unique identifier of the Data-Source Connection.
- connection
Id string - The unique identifier of Connection.
- connection
Name 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.
- x
Ibm stringTenant Id - Id of the tenant accessing the cluster.
- backup_
recovery_ strdata_ source_ connection_ id - 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_ strid - (String) Specifies the connector ID that is currently in upgrade.
- x_
ibm_ strtenant_ id - Id of the tenant accessing the cluster.
- backup
Recovery StringData Source Connection Id - The unique identifier of the Data-Source Connection.
- connection
Id String - The unique identifier of Connection.
- connection
Name 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.
- x
Ibm StringTenant Id - 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.