ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getSmEnRegistration
Explore with Pulumi AI
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:
- Instance
Id string - The GUID of the Secrets Manager instance.
- Endpoint
Type 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
.
- Constraints: Allowable values are:
- 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 string - The GUID of the Secrets Manager instance.
- Endpoint
Type 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
.
- Constraints: Allowable values are:
- 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 String - The GUID of the Secrets Manager instance.
- endpoint
Type 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
.
- Constraints: Allowable values are:
- 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 string - The GUID of the Secrets Manager instance.
- endpoint
Type 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
.
- Constraints: Allowable values are:
- 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
.
- Constraints: Allowable values are:
- 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.
- instance
Id String - The GUID of the Secrets Manager instance.
- endpoint
Type 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
.
- Constraints: Allowable values are:
- 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:
- Event
Notifications stringInstance Crn - (String) A CRN that uniquely identifies an IBM Cloud resource.
- Constraints: The maximum length is
512
characters. The minimum length is9
characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
.
- Constraints: The maximum length is
- Id string
- The unique identifier of the data source.
- Instance
Id string - Region string
- Endpoint
Type string
- Event
Notifications stringInstance Crn - (String) A CRN that uniquely identifies an IBM Cloud resource.
- Constraints: The maximum length is
512
characters. The minimum length is9
characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
.
- Constraints: The maximum length is
- Id string
- The unique identifier of the data source.
- Instance
Id string - Region string
- Endpoint
Type string
- event
Notifications StringInstance Crn - (String) A CRN that uniquely identifies an IBM Cloud resource.
- Constraints: The maximum length is
512
characters. The minimum length is9
characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
.
- Constraints: The maximum length is
- id String
- The unique identifier of the data source.
- instance
Id String - region String
- endpoint
Type String
- event
Notifications stringInstance Crn - (String) A CRN that uniquely identifies an IBM Cloud resource.
- Constraints: The maximum length is
512
characters. The minimum length is9
characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
.
- Constraints: The maximum length is
- id string
- The unique identifier of the data source.
- instance
Id string - region string
- endpoint
Type string
- event_
notifications_ strinstance_ crn - (String) A CRN that uniquely identifies an IBM Cloud resource.
- Constraints: The maximum length is
512
characters. The minimum length is9
characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
.
- Constraints: The maximum length is
- id str
- The unique identifier of the data source.
- instance_
id str - region str
- endpoint_
type str
- event
Notifications StringInstance Crn - (String) A CRN that uniquely identifies an IBM Cloud resource.
- Constraints: The maximum length is
512
characters. The minimum length is9
characters. The value must match regular expression/^crn:v0-9*+,;=@\/]|%[0-9A-Z]{2})*){8}$/
.
- Constraints: The maximum length is
- id String
- The unique identifier of the data source.
- instance
Id String - region String
- endpoint
Type String
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.