1. Packages
  2. Ibm Provider
  3. API Docs
  4. BackupRecoveryConnectionRegistrationToken
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.BackupRecoveryConnectionRegistrationToken

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const backupRecoveryConnectionRegistrationTokenInstance = new ibm.BackupRecoveryConnectionRegistrationToken("backupRecoveryConnectionRegistrationTokenInstance", {
        connectionId: ibm_backup_recovery_data_source_connection.backup_recovery_data_source_connection_instance.connectionID,
        xIbmTenantId: "x_ibm_tenant_id",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    backup_recovery_connection_registration_token_instance = ibm.BackupRecoveryConnectionRegistrationToken("backupRecoveryConnectionRegistrationTokenInstance",
        connection_id=ibm_backup_recovery_data_source_connection["backup_recovery_data_source_connection_instance"]["connectionID"],
        x_ibm_tenant_id="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.NewBackupRecoveryConnectionRegistrationToken(ctx, "backupRecoveryConnectionRegistrationTokenInstance", &ibm.BackupRecoveryConnectionRegistrationTokenArgs{
    			ConnectionId: pulumi.Any(ibm_backup_recovery_data_source_connection.Backup_recovery_data_source_connection_instance.ConnectionID),
    			XIbmTenantId: pulumi.String("x_ibm_tenant_id"),
    		})
    		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 backupRecoveryConnectionRegistrationTokenInstance = new Ibm.BackupRecoveryConnectionRegistrationToken("backupRecoveryConnectionRegistrationTokenInstance", new()
        {
            ConnectionId = ibm_backup_recovery_data_source_connection.Backup_recovery_data_source_connection_instance.ConnectionID,
            XIbmTenantId = "x_ibm_tenant_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.BackupRecoveryConnectionRegistrationToken;
    import com.pulumi.ibm.BackupRecoveryConnectionRegistrationTokenArgs;
    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 backupRecoveryConnectionRegistrationTokenInstance = new BackupRecoveryConnectionRegistrationToken("backupRecoveryConnectionRegistrationTokenInstance", BackupRecoveryConnectionRegistrationTokenArgs.builder()
                .connectionId(ibm_backup_recovery_data_source_connection.backup_recovery_data_source_connection_instance().connectionID())
                .xIbmTenantId("x_ibm_tenant_id")
                .build());
    
        }
    }
    
    resources:
      backupRecoveryConnectionRegistrationTokenInstance:
        type: ibm:BackupRecoveryConnectionRegistrationToken
        properties:
          connectionId: ${ibm_backup_recovery_data_source_connection.backup_recovery_data_source_connection_instance.connectionID}
          xIbmTenantId: x_ibm_tenant_id
    

    Create BackupRecoveryConnectionRegistrationToken Resource

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

    Constructor syntax

    new BackupRecoveryConnectionRegistrationToken(name: string, args: BackupRecoveryConnectionRegistrationTokenArgs, opts?: CustomResourceOptions);
    @overload
    def BackupRecoveryConnectionRegistrationToken(resource_name: str,
                                                  args: BackupRecoveryConnectionRegistrationTokenArgs,
                                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def BackupRecoveryConnectionRegistrationToken(resource_name: str,
                                                  opts: Optional[ResourceOptions] = None,
                                                  connection_id: Optional[str] = None,
                                                  x_ibm_tenant_id: Optional[str] = None,
                                                  backup_recovery_connection_registration_token_id: Optional[str] = None)
    func NewBackupRecoveryConnectionRegistrationToken(ctx *Context, name string, args BackupRecoveryConnectionRegistrationTokenArgs, opts ...ResourceOption) (*BackupRecoveryConnectionRegistrationToken, error)
    public BackupRecoveryConnectionRegistrationToken(string name, BackupRecoveryConnectionRegistrationTokenArgs args, CustomResourceOptions? opts = null)
    public BackupRecoveryConnectionRegistrationToken(String name, BackupRecoveryConnectionRegistrationTokenArgs args)
    public BackupRecoveryConnectionRegistrationToken(String name, BackupRecoveryConnectionRegistrationTokenArgs args, CustomResourceOptions options)
    
    type: ibm:BackupRecoveryConnectionRegistrationToken
    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 BackupRecoveryConnectionRegistrationTokenArgs
    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 BackupRecoveryConnectionRegistrationTokenArgs
    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 BackupRecoveryConnectionRegistrationTokenArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BackupRecoveryConnectionRegistrationTokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BackupRecoveryConnectionRegistrationTokenArgs
    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 backupRecoveryConnectionRegistrationTokenResource = new Ibm.BackupRecoveryConnectionRegistrationToken("backupRecoveryConnectionRegistrationTokenResource", new()
    {
        ConnectionId = "string",
        XIbmTenantId = "string",
        BackupRecoveryConnectionRegistrationTokenId = "string",
    });
    
    example, err := ibm.NewBackupRecoveryConnectionRegistrationToken(ctx, "backupRecoveryConnectionRegistrationTokenResource", &ibm.BackupRecoveryConnectionRegistrationTokenArgs{
    	ConnectionId: pulumi.String("string"),
    	XIbmTenantId: pulumi.String("string"),
    	BackupRecoveryConnectionRegistrationTokenId: pulumi.String("string"),
    })
    
    var backupRecoveryConnectionRegistrationTokenResource = new BackupRecoveryConnectionRegistrationToken("backupRecoveryConnectionRegistrationTokenResource", BackupRecoveryConnectionRegistrationTokenArgs.builder()
        .connectionId("string")
        .xIbmTenantId("string")
        .backupRecoveryConnectionRegistrationTokenId("string")
        .build());
    
    backup_recovery_connection_registration_token_resource = ibm.BackupRecoveryConnectionRegistrationToken("backupRecoveryConnectionRegistrationTokenResource",
        connection_id="string",
        x_ibm_tenant_id="string",
        backup_recovery_connection_registration_token_id="string")
    
    const backupRecoveryConnectionRegistrationTokenResource = new ibm.BackupRecoveryConnectionRegistrationToken("backupRecoveryConnectionRegistrationTokenResource", {
        connectionId: "string",
        xIbmTenantId: "string",
        backupRecoveryConnectionRegistrationTokenId: "string",
    });
    
    type: ibm:BackupRecoveryConnectionRegistrationToken
    properties:
        backupRecoveryConnectionRegistrationTokenId: string
        connectionId: string
        xIbmTenantId: string
    

    BackupRecoveryConnectionRegistrationToken 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 BackupRecoveryConnectionRegistrationToken resource accepts the following input properties:

    ConnectionId string
    Specifies the ID of the connection, connectors belonging to which are to be fetched.
    XIbmTenantId string
    Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
    BackupRecoveryConnectionRegistrationTokenId string
    The unique identifier of the backup_recovery_connection_registration_token.
    ConnectionId string
    Specifies the ID of the connection, connectors belonging to which are to be fetched.
    XIbmTenantId string
    Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
    BackupRecoveryConnectionRegistrationTokenId string
    The unique identifier of the backup_recovery_connection_registration_token.
    connectionId String
    Specifies the ID of the connection, connectors belonging to which are to be fetched.
    xIbmTenantId String
    Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
    backupRecoveryConnectionRegistrationTokenId String
    The unique identifier of the backup_recovery_connection_registration_token.
    connectionId string
    Specifies the ID of the connection, connectors belonging to which are to be fetched.
    xIbmTenantId string
    Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
    backupRecoveryConnectionRegistrationTokenId string
    The unique identifier of the backup_recovery_connection_registration_token.
    connection_id str
    Specifies the ID of the connection, connectors belonging to which are to be fetched.
    x_ibm_tenant_id str
    Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
    backup_recovery_connection_registration_token_id str
    The unique identifier of the backup_recovery_connection_registration_token.
    connectionId String
    Specifies the ID of the connection, connectors belonging to which are to be fetched.
    xIbmTenantId String
    Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
    backupRecoveryConnectionRegistrationTokenId String
    The unique identifier of the backup_recovery_connection_registration_token.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    RegistrationToken string
    (String)
    Id string
    The provider-assigned unique ID for this managed resource.
    RegistrationToken string
    (String)
    id String
    The provider-assigned unique ID for this managed resource.
    registrationToken String
    (String)
    id string
    The provider-assigned unique ID for this managed resource.
    registrationToken string
    (String)
    id str
    The provider-assigned unique ID for this managed resource.
    registration_token str
    (String)
    id String
    The provider-assigned unique ID for this managed resource.
    registrationToken String
    (String)

    Look up Existing BackupRecoveryConnectionRegistrationToken Resource

    Get an existing BackupRecoveryConnectionRegistrationToken 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?: BackupRecoveryConnectionRegistrationTokenState, opts?: CustomResourceOptions): BackupRecoveryConnectionRegistrationToken
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            backup_recovery_connection_registration_token_id: Optional[str] = None,
            connection_id: Optional[str] = None,
            registration_token: Optional[str] = None,
            x_ibm_tenant_id: Optional[str] = None) -> BackupRecoveryConnectionRegistrationToken
    func GetBackupRecoveryConnectionRegistrationToken(ctx *Context, name string, id IDInput, state *BackupRecoveryConnectionRegistrationTokenState, opts ...ResourceOption) (*BackupRecoveryConnectionRegistrationToken, error)
    public static BackupRecoveryConnectionRegistrationToken Get(string name, Input<string> id, BackupRecoveryConnectionRegistrationTokenState? state, CustomResourceOptions? opts = null)
    public static BackupRecoveryConnectionRegistrationToken get(String name, Output<String> id, BackupRecoveryConnectionRegistrationTokenState state, CustomResourceOptions options)
    resources:  _:    type: ibm:BackupRecoveryConnectionRegistrationToken    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.
    The following state arguments are supported:
    BackupRecoveryConnectionRegistrationTokenId string
    The unique identifier of the backup_recovery_connection_registration_token.
    ConnectionId string
    Specifies the ID of the connection, connectors belonging to which are to be fetched.
    RegistrationToken string
    (String)
    XIbmTenantId string
    Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
    BackupRecoveryConnectionRegistrationTokenId string
    The unique identifier of the backup_recovery_connection_registration_token.
    ConnectionId string
    Specifies the ID of the connection, connectors belonging to which are to be fetched.
    RegistrationToken string
    (String)
    XIbmTenantId string
    Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
    backupRecoveryConnectionRegistrationTokenId String
    The unique identifier of the backup_recovery_connection_registration_token.
    connectionId String
    Specifies the ID of the connection, connectors belonging to which are to be fetched.
    registrationToken String
    (String)
    xIbmTenantId String
    Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
    backupRecoveryConnectionRegistrationTokenId string
    The unique identifier of the backup_recovery_connection_registration_token.
    connectionId string
    Specifies the ID of the connection, connectors belonging to which are to be fetched.
    registrationToken string
    (String)
    xIbmTenantId string
    Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
    backup_recovery_connection_registration_token_id str
    The unique identifier of the backup_recovery_connection_registration_token.
    connection_id str
    Specifies the ID of the connection, connectors belonging to which are to be fetched.
    registration_token str
    (String)
    x_ibm_tenant_id str
    Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
    backupRecoveryConnectionRegistrationTokenId String
    The unique identifier of the backup_recovery_connection_registration_token.
    connectionId String
    Specifies the ID of the connection, connectors belonging to which are to be fetched.
    registrationToken String
    (String)
    xIbmTenantId String
    Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud