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

zitadel.getAction

Explore with Pulumi AI

zitadel logo
zitadel v0.1.8 published on Thursday, May 30, 2024 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 = data.Zitadel_org.Default.Id,
            ActionId = "123456789012345678",
        });
    
        return new Dictionary<string, object?>
        {
            ["action"] = @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.LookupAction(ctx, &zitadel.LookupActionArgs{
    			OrgId:    pulumi.StringRef(data.Zitadel_org.Default.Id),
    			ActionId: "123456789012345678",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("action", _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.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(data.zitadel_org().default().id())
                .actionId("123456789012345678")
                .build());
    
            ctx.export("action", default_);
        }
    }
    
    import pulumi
    import pulumi_zitadel as zitadel
    
    default = zitadel.get_action(org_id=data["zitadel_org"]["default"]["id"],
        action_id="123456789012345678")
    pulumi.export("action", default)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as zitadel from "@pulumi/zitadel";
    
    const default = zitadel.getAction({
        orgId: data.zitadel_org["default"].id,
        actionId: "123456789012345678",
    });
    export const action = _default;
    
    variables:
      default:
        fn::invoke:
          Function: zitadel:getAction
          Arguments:
            orgId: ${data.zitadel_org.default.id}
            actionId: '123456789012345678'
    outputs:
      action: ${default}
    

    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>
    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]
    func LookupAction(ctx *Context, args *LookupActionArgs, opts ...InvokeOption) (*LookupActionResult, error)
    func LookupActionOutput(ctx *Context, args *LookupActionOutputArgs, opts ...InvokeOption) LookupActionResultOutput

    > 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)
    }
    public static CompletableFuture<GetActionResult> getAction(GetActionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: zitadel:index/getAction:getAction
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ActionId string
    The ID of this resource.
    OrgId string
    ID of the organization
    ActionId string
    The ID of this resource.
    OrgId string
    ID of the organization
    actionId String
    The ID of this resource.
    orgId String
    ID of the organization
    actionId string
    The ID of this resource.
    orgId string
    ID of the organization
    action_id str
    The ID of this resource.
    org_id str
    ID of the organization
    actionId String
    The ID of this resource.
    orgId 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 logo
    zitadel v0.1.8 published on Thursday, May 30, 2024 by pulumiverse