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

ibm.getSmEnRegistration

Explore with Pulumi AI

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

    Provides a read-only data source for event notification registrartion. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const enRegistration = ibm.getSmEnRegistration({
        instanceId: ibm_resource_instance.sm_instance.guid,
        region: "us-south",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    en_registration = ibm.get_sm_en_registration(instance_id=ibm_resource_instance["sm_instance"]["guid"],
        region="us-south")
    
    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.LookupSmEnRegistration(ctx, &ibm.LookupSmEnRegistrationArgs{
    			InstanceId: ibm_resource_instance.Sm_instance.Guid,
    			Region:     pulumi.StringRef("us-south"),
    		}, nil)
    		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 enRegistration = Ibm.GetSmEnRegistration.Invoke(new()
        {
            InstanceId = ibm_resource_instance.Sm_instance.Guid,
            Region = "us-south",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetSmEnRegistrationArgs;
    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) {
            final var enRegistration = IbmFunctions.getSmEnRegistration(GetSmEnRegistrationArgs.builder()
                .instanceId(ibm_resource_instance.sm_instance().guid())
                .region("us-south")
                .build());
    
        }
    }
    
    variables:
      enRegistration:
        fn::invoke:
          function: ibm:getSmEnRegistration
          arguments:
            instanceId: ${ibm_resource_instance.sm_instance.guid}
            region: us-south
    

    Using getSmEnRegistration

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSmEnRegistration(args: GetSmEnRegistrationArgs, opts?: InvokeOptions): Promise<GetSmEnRegistrationResult>
    function getSmEnRegistrationOutput(args: GetSmEnRegistrationOutputArgs, opts?: InvokeOptions): Output<GetSmEnRegistrationResult>
    def get_sm_en_registration(endpoint_type: Optional[str] = None,
                               id: Optional[str] = None,
                               instance_id: Optional[str] = None,
                               region: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetSmEnRegistrationResult
    def get_sm_en_registration_output(endpoint_type: Optional[pulumi.Input[str]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               instance_id: Optional[pulumi.Input[str]] = None,
                               region: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetSmEnRegistrationResult]
    func LookupSmEnRegistration(ctx *Context, args *LookupSmEnRegistrationArgs, opts ...InvokeOption) (*LookupSmEnRegistrationResult, error)
    func LookupSmEnRegistrationOutput(ctx *Context, args *LookupSmEnRegistrationOutputArgs, opts ...InvokeOption) LookupSmEnRegistrationResultOutput

    > Note: This function is named LookupSmEnRegistration in the Go SDK.

    public static class GetSmEnRegistration 
    {
        public static Task<GetSmEnRegistrationResult> InvokeAsync(GetSmEnRegistrationArgs args, InvokeOptions? opts = null)
        public static Output<GetSmEnRegistrationResult> Invoke(GetSmEnRegistrationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSmEnRegistrationResult> getSmEnRegistration(GetSmEnRegistrationArgs args, InvokeOptions options)
    public static Output<GetSmEnRegistrationResult> getSmEnRegistration(GetSmEnRegistrationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getSmEnRegistration:getSmEnRegistration
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId 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.
    Id string
    The unique identifier of the data source.
    Region string
    The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
    InstanceId 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.
    Id string
    The unique identifier of the data source.
    Region string
    The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
    instanceId 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.
    id String
    The unique identifier of the data source.
    region String
    The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
    instanceId 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.
    id string
    The unique identifier of the data source.
    region string
    The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
    instance_id 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.
    id str
    The unique identifier of the data source.
    region str
    The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
    instanceId 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.
    id String
    The unique identifier of the data source.
    region String
    The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.

    getSmEnRegistration Result

    The following output properties are available:

    EventNotificationsInstanceCrn string
    (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}$/.
    Id string
    The unique identifier of the data source.
    InstanceId string
    Region string
    EndpointType string
    EventNotificationsInstanceCrn string
    (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}$/.
    Id string
    The unique identifier of the data source.
    InstanceId string
    Region string
    EndpointType string
    eventNotificationsInstanceCrn String
    (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}$/.
    id String
    The unique identifier of the data source.
    instanceId String
    region String
    endpointType String
    eventNotificationsInstanceCrn string
    (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}$/.
    id string
    The unique identifier of the data source.
    instanceId string
    region string
    endpointType string
    event_notifications_instance_crn str
    (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}$/.
    id str
    The unique identifier of the data source.
    instance_id str
    region str
    endpoint_type str
    eventNotificationsInstanceCrn String
    (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}$/.
    id String
    The unique identifier of the data source.
    instanceId String
    region String
    endpointType String

    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