ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud
ibm.getFunctionTrigger
Explore with Pulumi AI
Retrieve information about an existing IBM Cloud Functions trigger as a read-only data source.
Example Usage
The following example retrieves information about the mytrigger trigger.
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const trigger = ibm.getFunctionTrigger({
    name: "trigger-name",
    namespace: "function-namespace-name",
});
import pulumi
import pulumi_ibm as ibm
trigger = ibm.get_function_trigger(name="trigger-name",
    namespace="function-namespace-name")
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.LookupFunctionTrigger(ctx, &ibm.LookupFunctionTriggerArgs{
			Name:      "trigger-name",
			Namespace: "function-namespace-name",
		}, 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 trigger = Ibm.GetFunctionTrigger.Invoke(new()
    {
        Name = "trigger-name",
        Namespace = "function-namespace-name",
    });
});
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.GetFunctionTriggerArgs;
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 trigger = IbmFunctions.getFunctionTrigger(GetFunctionTriggerArgs.builder()
            .name("trigger-name")
            .namespace("function-namespace-name")
            .build());
    }
}
variables:
  trigger:
    fn::invoke:
      function: ibm:getFunctionTrigger
      arguments:
        name: trigger-name
        namespace: function-namespace-name
Using getFunctionTrigger
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 getFunctionTrigger(args: GetFunctionTriggerArgs, opts?: InvokeOptions): Promise<GetFunctionTriggerResult>
function getFunctionTriggerOutput(args: GetFunctionTriggerOutputArgs, opts?: InvokeOptions): Output<GetFunctionTriggerResult>def get_function_trigger(id: Optional[str] = None,
                         name: Optional[str] = None,
                         namespace: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetFunctionTriggerResult
def get_function_trigger_output(id: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         namespace: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetFunctionTriggerResult]func LookupFunctionTrigger(ctx *Context, args *LookupFunctionTriggerArgs, opts ...InvokeOption) (*LookupFunctionTriggerResult, error)
func LookupFunctionTriggerOutput(ctx *Context, args *LookupFunctionTriggerOutputArgs, opts ...InvokeOption) LookupFunctionTriggerResultOutput> Note: This function is named LookupFunctionTrigger in the Go SDK.
public static class GetFunctionTrigger 
{
    public static Task<GetFunctionTriggerResult> InvokeAsync(GetFunctionTriggerArgs args, InvokeOptions? opts = null)
    public static Output<GetFunctionTriggerResult> Invoke(GetFunctionTriggerInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFunctionTriggerResult> getFunctionTrigger(GetFunctionTriggerArgs args, InvokeOptions options)
public static Output<GetFunctionTriggerResult> getFunctionTrigger(GetFunctionTriggerArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getFunctionTrigger:getFunctionTrigger
  arguments:
    # arguments dictionaryThe following arguments are supported:
getFunctionTrigger Result
The following output properties are available:
- Annotations string
 - (String) All annotations to describe the trigger, including those set by you or by IBM Cloud Functions.
 - Id string
 - (String) The ID of the trigger.
 - Name string
 - Namespace string
 - (String) The name of the function namespace.
 - Parameters string
 - (String) All parameters passed to the trigger, including those set by you or by IBM Cloud Functions.
 - Publish bool
 - (Bool) Trigger visibility.
 - Trigger
Id string - (String) The trigger ID.
 - Version string
 - (String) Semantic version of the trigger.
 
- Annotations string
 - (String) All annotations to describe the trigger, including those set by you or by IBM Cloud Functions.
 - Id string
 - (String) The ID of the trigger.
 - Name string
 - Namespace string
 - (String) The name of the function namespace.
 - Parameters string
 - (String) All parameters passed to the trigger, including those set by you or by IBM Cloud Functions.
 - Publish bool
 - (Bool) Trigger visibility.
 - Trigger
Id string - (String) The trigger ID.
 - Version string
 - (String) Semantic version of the trigger.
 
- annotations String
 - (String) All annotations to describe the trigger, including those set by you or by IBM Cloud Functions.
 - id String
 - (String) The ID of the trigger.
 - name String
 - namespace String
 - (String) The name of the function namespace.
 - parameters String
 - (String) All parameters passed to the trigger, including those set by you or by IBM Cloud Functions.
 - publish Boolean
 - (Bool) Trigger visibility.
 - trigger
Id String - (String) The trigger ID.
 - version String
 - (String) Semantic version of the trigger.
 
- annotations string
 - (String) All annotations to describe the trigger, including those set by you or by IBM Cloud Functions.
 - id string
 - (String) The ID of the trigger.
 - name string
 - namespace string
 - (String) The name of the function namespace.
 - parameters string
 - (String) All parameters passed to the trigger, including those set by you or by IBM Cloud Functions.
 - publish boolean
 - (Bool) Trigger visibility.
 - trigger
Id string - (String) The trigger ID.
 - version string
 - (String) Semantic version of the trigger.
 
- annotations str
 - (String) All annotations to describe the trigger, including those set by you or by IBM Cloud Functions.
 - id str
 - (String) The ID of the trigger.
 - name str
 - namespace str
 - (String) The name of the function namespace.
 - parameters str
 - (String) All parameters passed to the trigger, including those set by you or by IBM Cloud Functions.
 - publish bool
 - (Bool) Trigger visibility.
 - trigger_
id str - (String) The trigger ID.
 - version str
 - (String) Semantic version of the trigger.
 
- annotations String
 - (String) All annotations to describe the trigger, including those set by you or by IBM Cloud Functions.
 - id String
 - (String) The ID of the trigger.
 - name String
 - namespace String
 - (String) The name of the function namespace.
 - parameters String
 - (String) All parameters passed to the trigger, including those set by you or by IBM Cloud Functions.
 - publish Boolean
 - (Bool) Trigger visibility.
 - trigger
Id String - (String) The trigger ID.
 - version String
 - (String) Semantic version of the trigger.
 
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider.