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

zitadel.getAction

Explore with Pulumi AI

zitadel v0.2.0 published on Monday, Mar 24, 2025 by pulumiverse

Datasource representing an action belonging to an organization.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zitadel = Pulumi.Zitadel;

return await Deployment.RunAsync(() => 
{
    var @default = Zitadel.GetAction.Invoke(new()
    {
        OrgId = defaultZitadelOrg.Id,
        ActionId = "123456789012345678",
    });

    return new Dictionary<string, object?>
    {
        ["action"] = @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.LookupAction(ctx, &zitadel.LookupActionArgs{
			OrgId:    pulumi.StringRef(defaultZitadelOrg.Id),
			ActionId: "123456789012345678",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("action", _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.GetActionArgs;
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.getAction(GetActionArgs.builder()
            .orgId(defaultZitadelOrg.id())
            .actionId("123456789012345678")
            .build());

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

const default = zitadel.getAction({
    orgId: defaultZitadelOrg.id,
    actionId: "123456789012345678",
});
export const action = _default;
Copy
import pulumi
import pulumi_zitadel as zitadel

default = zitadel.get_action(org_id=default_zitadel_org["id"],
    action_id="123456789012345678")
pulumi.export("action", default)
Copy
variables:
  default:
    fn::invoke:
      Function: zitadel:getAction
      Arguments:
        orgId: ${defaultZitadelOrg.id}
        actionId: '123456789012345678'
outputs:
  action: ${default}
Copy

Using getAction

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 getAction(args: GetActionArgs, opts?: InvokeOptions): Promise<GetActionResult>
function getActionOutput(args: GetActionOutputArgs, opts?: InvokeOptions): Output<GetActionResult>
Copy
def get_action(action_id: Optional[str] = None,
               org_id: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetActionResult
def get_action_output(action_id: Optional[pulumi.Input[str]] = None,
               org_id: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetActionResult]
Copy
func LookupAction(ctx *Context, args *LookupActionArgs, opts ...InvokeOption) (*LookupActionResult, error)
func LookupActionOutput(ctx *Context, args *LookupActionOutputArgs, opts ...InvokeOption) LookupActionResultOutput
Copy

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

public static class GetAction 
{
    public static Task<GetActionResult> InvokeAsync(GetActionArgs args, InvokeOptions? opts = null)
    public static Output<GetActionResult> Invoke(GetActionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetActionResult> getAction(GetActionArgs args, InvokeOptions options)
public static Output<GetActionResult> getAction(GetActionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: zitadel:index/getAction:getAction
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ActionId This property is required. string
The ID of this resource.
OrgId Changes to this property will trigger replacement. string
ID of the organization
ActionId This property is required. string
The ID of this resource.
OrgId Changes to this property will trigger replacement. string
ID of the organization
actionId This property is required. String
The ID of this resource.
orgId Changes to this property will trigger replacement. String
ID of the organization
actionId This property is required. string
The ID of this resource.
orgId Changes to this property will trigger replacement. string
ID of the organization
action_id This property is required. str
The ID of this resource.
org_id Changes to this property will trigger replacement. str
ID of the organization
actionId This property is required. String
The ID of this resource.
orgId Changes to this property will trigger replacement. String
ID of the organization

getAction Result

The following output properties are available:

ActionId string
The ID of this resource.
AllowedToFail bool
when true, the next action will be called even if this action fails
Id string
The provider-assigned unique ID for this managed resource.
Name string
Script string
State int
the state of the action
Timeout string
after which time the action will be terminated if not finished
OrgId string
ID of the organization
ActionId string
The ID of this resource.
AllowedToFail bool
when true, the next action will be called even if this action fails
Id string
The provider-assigned unique ID for this managed resource.
Name string
Script string
State int
the state of the action
Timeout string
after which time the action will be terminated if not finished
OrgId string
ID of the organization
actionId String
The ID of this resource.
allowedToFail Boolean
when true, the next action will be called even if this action fails
id String
The provider-assigned unique ID for this managed resource.
name String
script String
state Integer
the state of the action
timeout String
after which time the action will be terminated if not finished
orgId String
ID of the organization
actionId string
The ID of this resource.
allowedToFail boolean
when true, the next action will be called even if this action fails
id string
The provider-assigned unique ID for this managed resource.
name string
script string
state number
the state of the action
timeout string
after which time the action will be terminated if not finished
orgId string
ID of the organization
action_id str
The ID of this resource.
allowed_to_fail bool
when true, the next action will be called even if this action fails
id str
The provider-assigned unique ID for this managed resource.
name str
script str
state int
the state of the action
timeout str
after which time the action will be terminated if not finished
org_id str
ID of the organization
actionId String
The ID of this resource.
allowedToFail Boolean
when true, the next action will be called even if this action fails
id String
The provider-assigned unique ID for this managed resource.
name String
script String
state Number
the state of the action
timeout String
after which time the action will be terminated if not finished
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