1. Packages
  2. Zitadel
  3. API Docs
  4. getTriggerActions
zitadel v0.2.0 published on Monday, Mar 24, 2025 by pulumiverse

zitadel.getTriggerActions

Explore with Pulumi AI

zitadel v0.2.0 published on Monday, Mar 24, 2025 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 = defaultZitadelOrg.Id,
        FlowType = "FLOW_TYPE_EXTERNAL_AUTHENTICATION",
        TriggerType = "TRIGGER_TYPE_POST_AUTHENTICATION",
    });

    return new Dictionary<string, object?>
    {
        ["triggerActions"] = @default,
    };
});
Copy
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(defaultZitadelOrg.Id),
			FlowType:    "FLOW_TYPE_EXTERNAL_AUTHENTICATION",
			TriggerType: "TRIGGER_TYPE_POST_AUTHENTICATION",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("triggerActions", _default)
		return nil
	})
}
Copy
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(defaultZitadelOrg.id())
            .flowType("FLOW_TYPE_EXTERNAL_AUTHENTICATION")
            .triggerType("TRIGGER_TYPE_POST_AUTHENTICATION")
            .build());

        ctx.export("triggerActions", default_);
    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as zitadel from "@pulumi/zitadel";

const default = zitadel.getTriggerActions({
    orgId: defaultZitadelOrg.id,
    flowType: "FLOW_TYPE_EXTERNAL_AUTHENTICATION",
    triggerType: "TRIGGER_TYPE_POST_AUTHENTICATION",
});
export const triggerActions = _default;
Copy
import pulumi
import pulumi_zitadel as zitadel

default = zitadel.get_trigger_actions(org_id=default_zitadel_org["id"],
    flow_type="FLOW_TYPE_EXTERNAL_AUTHENTICATION",
    trigger_type="TRIGGER_TYPE_POST_AUTHENTICATION")
pulumi.export("triggerActions", default)
Copy
variables:
  default:
    fn::invoke:
      Function: zitadel:getTriggerActions
      Arguments:
        orgId: ${defaultZitadelOrg.id}
        flowType: FLOW_TYPE_EXTERNAL_AUTHENTICATION
        triggerType: TRIGGER_TYPE_POST_AUTHENTICATION
outputs:
  triggerActions: ${default}
Copy

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>
Copy
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]
Copy
func LookupTriggerActions(ctx *Context, args *LookupTriggerActionsArgs, opts ...InvokeOption) (*LookupTriggerActionsResult, error)
func LookupTriggerActionsOutput(ctx *Context, args *LookupTriggerActionsOutputArgs, opts ...InvokeOption) LookupTriggerActionsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetTriggerActionsResult> getTriggerActions(GetTriggerActionsArgs args, InvokeOptions options)
public static Output<GetTriggerActionsResult> getTriggerActions(GetTriggerActionsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: zitadel:index/getTriggerActions:getTriggerActions
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

FlowType This property is required. string
Type of the flow to which the action triggers belong
TriggerType This property is required. string
Trigger type on when the actions get triggered
OrgId Changes to this property will trigger replacement. string
ID of the organization
FlowType This property is required. string
Type of the flow to which the action triggers belong
TriggerType This property is required. string
Trigger type on when the actions get triggered
OrgId Changes to this property will trigger replacement. string
ID of the organization
flowType This property is required. String
Type of the flow to which the action triggers belong
triggerType This property is required. String
Trigger type on when the actions get triggered
orgId Changes to this property will trigger replacement. String
ID of the organization
flowType This property is required. string
Type of the flow to which the action triggers belong
triggerType This property is required. string
Trigger type on when the actions get triggered
orgId Changes to this property will trigger replacement. string
ID of the organization
flow_type This property is required. str
Type of the flow to which the action triggers belong
trigger_type This property is required. str
Trigger type on when the actions get triggered
org_id Changes to this property will trigger replacement. str
ID of the organization
flowType This property is required. String
Type of the flow to which the action triggers belong
triggerType This property is required. String
Trigger type on when the actions get triggered
orgId Changes to this property will trigger replacement. 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 v0.2.0 published on Monday, Mar 24, 2025 by pulumiverse