ibm.BackupRecoveryConnectionRegistrationToken
Explore with Pulumi AI
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:
- Connection
Id string - Specifies the ID of the connection, connectors belonging to which are to be fetched.
- 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.
- Backup
Recovery stringConnection Registration Token Id - The unique identifier of the backup_recovery_connection_registration_token.
- Connection
Id string - Specifies the ID of the connection, connectors belonging to which are to be fetched.
- 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.
- Backup
Recovery stringConnection Registration Token Id - The unique identifier of the backup_recovery_connection_registration_token.
- connection
Id String - Specifies the ID of the connection, connectors belonging to which are to be fetched.
- 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.
- backup
Recovery StringConnection Registration Token Id - The unique identifier of the backup_recovery_connection_registration_token.
- connection
Id string - Specifies the ID of the connection, connectors belonging to which are to be fetched.
- 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.
- backup
Recovery stringConnection Registration Token Id - 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_ strtenant_ id - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
- backup_
recovery_ strconnection_ registration_ token_ id - The unique identifier of the backup_recovery_connection_registration_token.
- connection
Id String - Specifies the ID of the connection, connectors belonging to which are to be fetched.
- 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.
- backup
Recovery StringConnection Registration Token Id - 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.
- Registration
Token string - (String)
- Id string
- The provider-assigned unique ID for this managed resource.
- Registration
Token string - (String)
- id String
- The provider-assigned unique ID for this managed resource.
- registration
Token String - (String)
- id string
- The provider-assigned unique ID for this managed resource.
- registration
Token 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.
- registration
Token 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.
- Backup
Recovery stringConnection Registration Token Id - The unique identifier of the backup_recovery_connection_registration_token.
- Connection
Id string - Specifies the ID of the connection, connectors belonging to which are to be fetched.
- Registration
Token string - (String)
- 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.
- Backup
Recovery stringConnection Registration Token Id - The unique identifier of the backup_recovery_connection_registration_token.
- Connection
Id string - Specifies the ID of the connection, connectors belonging to which are to be fetched.
- Registration
Token string - (String)
- 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.
- backup
Recovery StringConnection Registration Token Id - The unique identifier of the backup_recovery_connection_registration_token.
- connection
Id String - Specifies the ID of the connection, connectors belonging to which are to be fetched.
- registration
Token String - (String)
- 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.
- backup
Recovery stringConnection Registration Token Id - The unique identifier of the backup_recovery_connection_registration_token.
- connection
Id string - Specifies the ID of the connection, connectors belonging to which are to be fetched.
- registration
Token string - (String)
- 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.
- backup_
recovery_ strconnection_ registration_ token_ id - 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_ strtenant_ id - Specifies the key to be used to encrypt the source credential. If includeSourceCredentials is set to true this key must be specified.
- backup
Recovery StringConnection Registration Token Id - The unique identifier of the backup_recovery_connection_registration_token.
- connection
Id String - Specifies the ID of the connection, connectors belonging to which are to be fetched.
- registration
Token String - (String)
- 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.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.