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

ibm.SmEnRegistration

Explore with Pulumi AI

Provides a resource for NotificationsRegistrationPrototype. This allows NotificationsRegistrationPrototype to be created, updated and deleted.

Example Usage

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

const smEnRegistration = new ibm.SmEnRegistration("smEnRegistration", {
    instanceId: ibm_resource_instance.sm_instance.guid,
    region: "us-south",
    eventNotificationsInstanceCrn: "crn:v1:bluemix:public:event-notifications:us-south:a/22018f3c34ff4ff193698d15ca316946:578ad1a4-2fd8-4e66-95d5-79a842ba91f8::",
    eventNotificationsSourceDescription: "Optional description of this source in an Event Notifications instance.",
    eventNotificationsSourceName: "My Secrets Manager",
});
Copy
import pulumi
import pulumi_ibm as ibm

sm_en_registration = ibm.SmEnRegistration("smEnRegistration",
    instance_id=ibm_resource_instance["sm_instance"]["guid"],
    region="us-south",
    event_notifications_instance_crn="crn:v1:bluemix:public:event-notifications:us-south:a/22018f3c34ff4ff193698d15ca316946:578ad1a4-2fd8-4e66-95d5-79a842ba91f8::",
    event_notifications_source_description="Optional description of this source in an Event Notifications instance.",
    event_notifications_source_name="My Secrets Manager")
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.NewSmEnRegistration(ctx, "smEnRegistration", &ibm.SmEnRegistrationArgs{
			InstanceId:                          pulumi.Any(ibm_resource_instance.Sm_instance.Guid),
			Region:                              pulumi.String("us-south"),
			EventNotificationsInstanceCrn:       pulumi.String("crn:v1:bluemix:public:event-notifications:us-south:a/22018f3c34ff4ff193698d15ca316946:578ad1a4-2fd8-4e66-95d5-79a842ba91f8::"),
			EventNotificationsSourceDescription: pulumi.String("Optional description of this source in an Event Notifications instance."),
			EventNotificationsSourceName:        pulumi.String("My Secrets Manager"),
		})
		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 smEnRegistration = new Ibm.SmEnRegistration("smEnRegistration", new()
    {
        InstanceId = ibm_resource_instance.Sm_instance.Guid,
        Region = "us-south",
        EventNotificationsInstanceCrn = "crn:v1:bluemix:public:event-notifications:us-south:a/22018f3c34ff4ff193698d15ca316946:578ad1a4-2fd8-4e66-95d5-79a842ba91f8::",
        EventNotificationsSourceDescription = "Optional description of this source in an Event Notifications instance.",
        EventNotificationsSourceName = "My Secrets Manager",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.SmEnRegistration;
import com.pulumi.ibm.SmEnRegistrationArgs;
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 smEnRegistration = new SmEnRegistration("smEnRegistration", SmEnRegistrationArgs.builder()
            .instanceId(ibm_resource_instance.sm_instance().guid())
            .region("us-south")
            .eventNotificationsInstanceCrn("crn:v1:bluemix:public:event-notifications:us-south:a/22018f3c34ff4ff193698d15ca316946:578ad1a4-2fd8-4e66-95d5-79a842ba91f8::")
            .eventNotificationsSourceDescription("Optional description of this source in an Event Notifications instance.")
            .eventNotificationsSourceName("My Secrets Manager")
            .build());

    }
}
Copy
resources:
  smEnRegistration:
    type: ibm:SmEnRegistration
    properties:
      instanceId: ${ibm_resource_instance.sm_instance.guid}
      region: us-south
      eventNotificationsInstanceCrn: 'crn:v1:bluemix:public:event-notifications:us-south:a/22018f3c34ff4ff193698d15ca316946:578ad1a4-2fd8-4e66-95d5-79a842ba91f8::'
      eventNotificationsSourceDescription: Optional description of this source in an Event Notifications instance.
      eventNotificationsSourceName: My Secrets Manager
Copy

Provider Configuration

The IBM Cloud provider offers a flexible means of providing credentials for authentication. The following methods are supported, in this order, and explained below:

  • Static credentials
  • Environment variables

To find which credentials are required for this resource, see the service table here.

Static credentials

You can provide your static credentials by adding the ibmcloud_api_key, iaas_classic_username, and iaas_classic_api_key arguments in the IBM Cloud provider block.

Usage:

provider "ibm" {
    ibmcloud_api_key = ""
    iaas_classic_username = ""
    iaas_classic_api_key = ""
}

Environment variables

You can provide your credentials by exporting the IC_API_KEY, IAAS_CLASSIC_USERNAME, and IAAS_CLASSIC_API_KEY environment variables, representing your IBM Cloud platform API key, IBM Cloud Classic Infrastructure (SoftLayer) user name, and IBM Cloud infrastructure API key, respectively.

provider "ibm" {}

Usage:

export IC_API_KEY="ibmcloud_api_key"
export IAAS_CLASSIC_USERNAME="iaas_classic_username"
export IAAS_CLASSIC_API_KEY="iaas_classic_api_key"
pulumi preview

Note:

  1. Create or find your ibmcloud_api_key and iaas_classic_api_key here.
  • Select My IBM Cloud API Keys option from view dropdown for ibmcloud_api_key
  • Select Classic Infrastructure API Keys option from view dropdown for iaas_classic_api_key
  1. For iaas_classic_username
  • Go to Users
  • Click on user.
  • Find user name in the VPN password section under User Details tab

For more informaton, see here.

Create SmEnRegistration Resource

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

Constructor syntax

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

@overload
def SmEnRegistration(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     event_notifications_instance_crn: Optional[str] = None,
                     event_notifications_source_name: Optional[str] = None,
                     instance_id: Optional[str] = None,
                     endpoint_type: Optional[str] = None,
                     event_notifications_source_description: Optional[str] = None,
                     region: Optional[str] = None,
                     sm_en_registration_id: Optional[str] = None)
func NewSmEnRegistration(ctx *Context, name string, args SmEnRegistrationArgs, opts ...ResourceOption) (*SmEnRegistration, error)
public SmEnRegistration(string name, SmEnRegistrationArgs args, CustomResourceOptions? opts = null)
public SmEnRegistration(String name, SmEnRegistrationArgs args)
public SmEnRegistration(String name, SmEnRegistrationArgs args, CustomResourceOptions options)
type: ibm:SmEnRegistration
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. SmEnRegistrationArgs
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. SmEnRegistrationArgs
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. SmEnRegistrationArgs
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. SmEnRegistrationArgs
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. SmEnRegistrationArgs
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 smEnRegistrationResource = new Ibm.SmEnRegistration("smEnRegistrationResource", new()
{
    EventNotificationsInstanceCrn = "string",
    EventNotificationsSourceName = "string",
    InstanceId = "string",
    EndpointType = "string",
    EventNotificationsSourceDescription = "string",
    Region = "string",
    SmEnRegistrationId = "string",
});
Copy
example, err := ibm.NewSmEnRegistration(ctx, "smEnRegistrationResource", &ibm.SmEnRegistrationArgs{
EventNotificationsInstanceCrn: pulumi.String("string"),
EventNotificationsSourceName: pulumi.String("string"),
InstanceId: pulumi.String("string"),
EndpointType: pulumi.String("string"),
EventNotificationsSourceDescription: pulumi.String("string"),
Region: pulumi.String("string"),
SmEnRegistrationId: pulumi.String("string"),
})
Copy
var smEnRegistrationResource = new SmEnRegistration("smEnRegistrationResource", SmEnRegistrationArgs.builder()
    .eventNotificationsInstanceCrn("string")
    .eventNotificationsSourceName("string")
    .instanceId("string")
    .endpointType("string")
    .eventNotificationsSourceDescription("string")
    .region("string")
    .smEnRegistrationId("string")
    .build());
Copy
sm_en_registration_resource = ibm.SmEnRegistration("smEnRegistrationResource",
    event_notifications_instance_crn="string",
    event_notifications_source_name="string",
    instance_id="string",
    endpoint_type="string",
    event_notifications_source_description="string",
    region="string",
    sm_en_registration_id="string")
Copy
const smEnRegistrationResource = new ibm.SmEnRegistration("smEnRegistrationResource", {
    eventNotificationsInstanceCrn: "string",
    eventNotificationsSourceName: "string",
    instanceId: "string",
    endpointType: "string",
    eventNotificationsSourceDescription: "string",
    region: "string",
    smEnRegistrationId: "string",
});
Copy
type: ibm:SmEnRegistration
properties:
    endpointType: string
    eventNotificationsInstanceCrn: string
    eventNotificationsSourceDescription: string
    eventNotificationsSourceName: string
    instanceId: string
    region: string
    smEnRegistrationId: string
Copy

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

EventNotificationsInstanceCrn This property is required. string
A CRN that uniquely identifies an IBM Cloud resource.

  • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
EventNotificationsSourceName This property is required. string
The name that is displayed as a source that is in your Event Notifications instance.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /(.*?)/.
InstanceId This property is required. string
The GUID of the Secrets Manager instance.
EndpointType string
The endpoint type. If not provided the endpoint type is determined by the visibility argument provided in the provider configuration.

  • Constraints: Allowable values are: private, public.
EventNotificationsSourceDescription string
An optional description for the source that is in your Event Notifications instance.

  • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
Region string
The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
SmEnRegistrationId string
The unique identifier of the NotificationsRegistrationPrototype.
EventNotificationsInstanceCrn This property is required. string
A CRN that uniquely identifies an IBM Cloud resource.

  • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
EventNotificationsSourceName This property is required. string
The name that is displayed as a source that is in your Event Notifications instance.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /(.*?)/.
InstanceId This property is required. string
The GUID of the Secrets Manager instance.
EndpointType string
The endpoint type. If not provided the endpoint type is determined by the visibility argument provided in the provider configuration.

  • Constraints: Allowable values are: private, public.
EventNotificationsSourceDescription string
An optional description for the source that is in your Event Notifications instance.

  • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
Region string
The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
SmEnRegistrationId string
The unique identifier of the NotificationsRegistrationPrototype.
eventNotificationsInstanceCrn This property is required. String
A CRN that uniquely identifies an IBM Cloud resource.

  • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
eventNotificationsSourceName This property is required. String
The name that is displayed as a source that is in your Event Notifications instance.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /(.*?)/.
instanceId This property is required. String
The GUID of the Secrets Manager instance.
endpointType String
The endpoint type. If not provided the endpoint type is determined by the visibility argument provided in the provider configuration.

  • Constraints: Allowable values are: private, public.
eventNotificationsSourceDescription String
An optional description for the source that is in your Event Notifications instance.

  • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
region String
The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
smEnRegistrationId String
The unique identifier of the NotificationsRegistrationPrototype.
eventNotificationsInstanceCrn This property is required. string
A CRN that uniquely identifies an IBM Cloud resource.

  • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
eventNotificationsSourceName This property is required. string
The name that is displayed as a source that is in your Event Notifications instance.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /(.*?)/.
instanceId This property is required. string
The GUID of the Secrets Manager instance.
endpointType string
The endpoint type. If not provided the endpoint type is determined by the visibility argument provided in the provider configuration.

  • Constraints: Allowable values are: private, public.
eventNotificationsSourceDescription string
An optional description for the source that is in your Event Notifications instance.

  • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
region string
The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
smEnRegistrationId string
The unique identifier of the NotificationsRegistrationPrototype.
event_notifications_instance_crn This property is required. str
A CRN that uniquely identifies an IBM Cloud resource.

  • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
event_notifications_source_name This property is required. str
The name that is displayed as a source that is in your Event Notifications instance.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /(.*?)/.
instance_id This property is required. str
The GUID of the Secrets Manager instance.
endpoint_type str
The endpoint type. If not provided the endpoint type is determined by the visibility argument provided in the provider configuration.

  • Constraints: Allowable values are: private, public.
event_notifications_source_description str
An optional description for the source that is in your Event Notifications instance.

  • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
region str
The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
sm_en_registration_id str
The unique identifier of the NotificationsRegistrationPrototype.
eventNotificationsInstanceCrn This property is required. String
A CRN that uniquely identifies an IBM Cloud resource.

  • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
eventNotificationsSourceName This property is required. String
The name that is displayed as a source that is in your Event Notifications instance.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /(.*?)/.
instanceId This property is required. String
The GUID of the Secrets Manager instance.
endpointType String
The endpoint type. If not provided the endpoint type is determined by the visibility argument provided in the provider configuration.

  • Constraints: Allowable values are: private, public.
eventNotificationsSourceDescription String
An optional description for the source that is in your Event Notifications instance.

  • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
region String
The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
smEnRegistrationId String
The unique identifier of the NotificationsRegistrationPrototype.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing SmEnRegistration Resource

Get an existing SmEnRegistration 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?: SmEnRegistrationState, opts?: CustomResourceOptions): SmEnRegistration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        endpoint_type: Optional[str] = None,
        event_notifications_instance_crn: Optional[str] = None,
        event_notifications_source_description: Optional[str] = None,
        event_notifications_source_name: Optional[str] = None,
        instance_id: Optional[str] = None,
        region: Optional[str] = None,
        sm_en_registration_id: Optional[str] = None) -> SmEnRegistration
func GetSmEnRegistration(ctx *Context, name string, id IDInput, state *SmEnRegistrationState, opts ...ResourceOption) (*SmEnRegistration, error)
public static SmEnRegistration Get(string name, Input<string> id, SmEnRegistrationState? state, CustomResourceOptions? opts = null)
public static SmEnRegistration get(String name, Output<String> id, SmEnRegistrationState state, CustomResourceOptions options)
resources:  _:    type: ibm:SmEnRegistration    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:
EndpointType string
The endpoint type. If not provided the endpoint type is determined by the visibility argument provided in the provider configuration.

  • Constraints: Allowable values are: private, public.
EventNotificationsInstanceCrn string
A CRN that uniquely identifies an IBM Cloud resource.

  • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
EventNotificationsSourceDescription string
An optional description for the source that is in your Event Notifications instance.

  • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
EventNotificationsSourceName string
The name that is displayed as a source that is in your Event Notifications instance.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /(.*?)/.
InstanceId string
The GUID of the Secrets Manager instance.
Region string
The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
SmEnRegistrationId string
The unique identifier of the NotificationsRegistrationPrototype.
EndpointType string
The endpoint type. If not provided the endpoint type is determined by the visibility argument provided in the provider configuration.

  • Constraints: Allowable values are: private, public.
EventNotificationsInstanceCrn string
A CRN that uniquely identifies an IBM Cloud resource.

  • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
EventNotificationsSourceDescription string
An optional description for the source that is in your Event Notifications instance.

  • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
EventNotificationsSourceName string
The name that is displayed as a source that is in your Event Notifications instance.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /(.*?)/.
InstanceId string
The GUID of the Secrets Manager instance.
Region string
The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
SmEnRegistrationId string
The unique identifier of the NotificationsRegistrationPrototype.
endpointType String
The endpoint type. If not provided the endpoint type is determined by the visibility argument provided in the provider configuration.

  • Constraints: Allowable values are: private, public.
eventNotificationsInstanceCrn String
A CRN that uniquely identifies an IBM Cloud resource.

  • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
eventNotificationsSourceDescription String
An optional description for the source that is in your Event Notifications instance.

  • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
eventNotificationsSourceName String
The name that is displayed as a source that is in your Event Notifications instance.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /(.*?)/.
instanceId String
The GUID of the Secrets Manager instance.
region String
The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
smEnRegistrationId String
The unique identifier of the NotificationsRegistrationPrototype.
endpointType string
The endpoint type. If not provided the endpoint type is determined by the visibility argument provided in the provider configuration.

  • Constraints: Allowable values are: private, public.
eventNotificationsInstanceCrn string
A CRN that uniquely identifies an IBM Cloud resource.

  • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
eventNotificationsSourceDescription string
An optional description for the source that is in your Event Notifications instance.

  • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
eventNotificationsSourceName string
The name that is displayed as a source that is in your Event Notifications instance.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /(.*?)/.
instanceId string
The GUID of the Secrets Manager instance.
region string
The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
smEnRegistrationId string
The unique identifier of the NotificationsRegistrationPrototype.
endpoint_type str
The endpoint type. If not provided the endpoint type is determined by the visibility argument provided in the provider configuration.

  • Constraints: Allowable values are: private, public.
event_notifications_instance_crn str
A CRN that uniquely identifies an IBM Cloud resource.

  • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
event_notifications_source_description str
An optional description for the source that is in your Event Notifications instance.

  • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
event_notifications_source_name str
The name that is displayed as a source that is in your Event Notifications instance.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /(.*?)/.
instance_id str
The GUID of the Secrets Manager instance.
region str
The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
sm_en_registration_id str
The unique identifier of the NotificationsRegistrationPrototype.
endpointType String
The endpoint type. If not provided the endpoint type is determined by the visibility argument provided in the provider configuration.

  • Constraints: Allowable values are: private, public.
eventNotificationsInstanceCrn String
A CRN that uniquely identifies an IBM Cloud resource.

  • Constraints: The maximum length is 512 characters. The minimum length is 9 characters. The value must match regular expression /^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/.
eventNotificationsSourceDescription String
An optional description for the source that is in your Event Notifications instance.

  • Constraints: The maximum length is 1024 characters. The minimum length is 0 characters. The value must match regular expression /(.*?)/.
eventNotificationsSourceName String
The name that is displayed as a source that is in your Event Notifications instance.

  • Constraints: The maximum length is 256 characters. The minimum length is 2 characters. The value must match regular expression /(.*?)/.
instanceId String
The GUID of the Secrets Manager instance.
region String
The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
smEnRegistrationId String
The unique identifier of the NotificationsRegistrationPrototype.

Import

You can import the ibm_sm_en_registration resource by using region and instance_id. Note that after the import, the value of the property event_notifications_source_name

is null in the Terraform state file. Since this is a required property, you need to provide a value for it in

the corresponding configuration block in your Terraform configuration file. If you don’t know the actual name of the event notification source,

you can put any value. The value is ignored when Terraform updates the resource, because the Secrets Manager API does not modify

the source name after the registration resource is created.

For more information, see the documentation.

Syntax

bash

$ pulumi import ibm:index/smEnRegistration:SmEnRegistration sm_en_registration <region>/<instance_id>
Copy

Example

bash

$ pulumi import ibm:index/smEnRegistration:SmEnRegistration sm_en_registration us-east/6ebc4224-e983-496a-8a54-f40a0bfa9175
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

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