1. Packages
  2. Zitadel
  3. API Docs
  4. getTriggerActions
zitadel v0.1.8 published on Thursday, May 30, 2024 by pulumiverse

zitadel.getTriggerActions

Explore with Pulumi AI

zitadel logo
zitadel v0.1.8 published on Thursday, May 30, 2024 by pulumiverse

    Resource representing triggers, when actions get started

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zitadel = Pulumi.Zitadel;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Zitadel.GetTriggerActions.Invoke(new()
        {
            OrgId = data.Zitadel_org.Default.Id,
            FlowType = "FLOW_TYPE_EXTERNAL_AUTHENTICATION",
            TriggerType = "TRIGGER_TYPE_POST_AUTHENTICATION",
        });
    
        return new Dictionary<string, object?>
        {
            ["triggerActions"] = @default,
        };
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-zitadel/sdk/go/zitadel"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := zitadel.LookupTriggerActions(ctx, &zitadel.LookupTriggerActionsArgs{
    			OrgId:       pulumi.StringRef(data.Zitadel_org.Default.Id),
    			FlowType:    "FLOW_TYPE_EXTERNAL_AUTHENTICATION",
    			TriggerType: "TRIGGER_TYPE_POST_AUTHENTICATION",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("triggerActions", _default)
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zitadel.ZitadelFunctions;
    import com.pulumi.zitadel.inputs.GetTriggerActionsArgs;
    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 default = ZitadelFunctions.getTriggerActions(GetTriggerActionsArgs.builder()
                .orgId(data.zitadel_org().default().id())
                .flowType("FLOW_TYPE_EXTERNAL_AUTHENTICATION")
                .triggerType("TRIGGER_TYPE_POST_AUTHENTICATION")
                .build());
    
            ctx.export("triggerActions", default_);
        }
    }
    
    import pulumi
    import pulumi_zitadel as zitadel
    
    default = zitadel.get_trigger_actions(org_id=data["zitadel_org"]["default"]["id"],
        flow_type="FLOW_TYPE_EXTERNAL_AUTHENTICATION",
        trigger_type="TRIGGER_TYPE_POST_AUTHENTICATION")
    pulumi.export("triggerActions", default)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as zitadel from "@pulumi/zitadel";
    
    const default = zitadel.getTriggerActions({
        orgId: data.zitadel_org["default"].id,
        flowType: "FLOW_TYPE_EXTERNAL_AUTHENTICATION",
        triggerType: "TRIGGER_TYPE_POST_AUTHENTICATION",
    });
    export const triggerActions = _default;
    
    variables:
      default:
        fn::invoke:
          Function: zitadel:getTriggerActions
          Arguments:
            orgId: ${data.zitadel_org.default.id}
            flowType: FLOW_TYPE_EXTERNAL_AUTHENTICATION
            triggerType: TRIGGER_TYPE_POST_AUTHENTICATION
    outputs:
      triggerActions: ${default}
    

    Using getTriggerActions

    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 getTriggerActions(args: GetTriggerActionsArgs, opts?: InvokeOptions): Promise<GetTriggerActionsResult>
    function getTriggerActionsOutput(args: GetTriggerActionsOutputArgs, opts?: InvokeOptions): Output<GetTriggerActionsResult>
    def get_trigger_actions(flow_type: Optional[str] = None,
                            org_id: Optional[str] = None,
                            trigger_type: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetTriggerActionsResult
    def get_trigger_actions_output(flow_type: Optional[pulumi.Input[str]] = None,
                            org_id: Optional[pulumi.Input[str]] = None,
                            trigger_type: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetTriggerActionsResult]
    func LookupTriggerActions(ctx *Context, args *LookupTriggerActionsArgs, opts ...InvokeOption) (*LookupTriggerActionsResult, error)
    func LookupTriggerActionsOutput(ctx *Context, args *LookupTriggerActionsOutputArgs, opts ...InvokeOption) LookupTriggerActionsResultOutput

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

    public static class GetTriggerActions 
    {
        public static Task<GetTriggerActionsResult> InvokeAsync(GetTriggerActionsArgs args, InvokeOptions? opts = null)
        public static Output<GetTriggerActionsResult> Invoke(GetTriggerActionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTriggerActionsResult> getTriggerActions(GetTriggerActionsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: zitadel:index/getTriggerActions:getTriggerActions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FlowType string
    Type of the flow to which the action triggers belong
    TriggerType string
    Trigger type on when the actions get triggered
    OrgId string
    ID of the organization
    FlowType string
    Type of the flow to which the action triggers belong
    TriggerType string
    Trigger type on when the actions get triggered
    OrgId string
    ID of the organization
    flowType String
    Type of the flow to which the action triggers belong
    triggerType String
    Trigger type on when the actions get triggered
    orgId String
    ID of the organization
    flowType string
    Type of the flow to which the action triggers belong
    triggerType string
    Trigger type on when the actions get triggered
    orgId string
    ID of the organization
    flow_type str
    Type of the flow to which the action triggers belong
    trigger_type str
    Trigger type on when the actions get triggered
    org_id str
    ID of the organization
    flowType String
    Type of the flow to which the action triggers belong
    triggerType String
    Trigger type on when the actions get triggered
    orgId String
    ID of the organization

    getTriggerActions Result

    The following output properties are available:

    ActionIds List<string>
    IDs of the triggered actions
    FlowType string
    Type of the flow to which the action triggers belong
    Id string
    The provider-assigned unique ID for this managed resource.
    TriggerType string
    Trigger type on when the actions get triggered
    OrgId string
    ID of the organization
    ActionIds []string
    IDs of the triggered actions
    FlowType string
    Type of the flow to which the action triggers belong
    Id string
    The provider-assigned unique ID for this managed resource.
    TriggerType string
    Trigger type on when the actions get triggered
    OrgId string
    ID of the organization
    actionIds List<String>
    IDs of the triggered actions
    flowType String
    Type of the flow to which the action triggers belong
    id String
    The provider-assigned unique ID for this managed resource.
    triggerType String
    Trigger type on when the actions get triggered
    orgId String
    ID of the organization
    actionIds string[]
    IDs of the triggered actions
    flowType string
    Type of the flow to which the action triggers belong
    id string
    The provider-assigned unique ID for this managed resource.
    triggerType string
    Trigger type on when the actions get triggered
    orgId string
    ID of the organization
    action_ids Sequence[str]
    IDs of the triggered actions
    flow_type str
    Type of the flow to which the action triggers belong
    id str
    The provider-assigned unique ID for this managed resource.
    trigger_type str
    Trigger type on when the actions get triggered
    org_id str
    ID of the organization
    actionIds List<String>
    IDs of the triggered actions
    flowType String
    Type of the flow to which the action triggers belong
    id String
    The provider-assigned unique ID for this managed resource.
    triggerType String
    Trigger type on when the actions get triggered
    orgId String
    ID of the organization

    Package Details

    Repository
    zitadel pulumiverse/pulumi-zitadel
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the zitadel Terraform Provider.
    zitadel logo
    zitadel v0.1.8 published on Thursday, May 30, 2024 by pulumiverse