1. Packages
  2. Auth0 Provider
  3. API Docs
  4. getFlow
Auth0 v3.17.1 published on Tuesday, Apr 15, 2025 by Pulumi

auth0.getFlow

Explore with Pulumi AI

Auth0 v3.17.1 published on Tuesday, Apr 15, 2025 by Pulumi

Data source to retrieve a specific Auth0 Flow by id

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as auth0 from "@pulumi/auth0";

// An Auth0 flow loaded using its ID.
const myFlowData = auth0.getFlow({
    id: "af_5CTYdsXHLoLXD7ZVwvFHew",
});
Copy
import pulumi
import pulumi_auth0 as auth0

# An Auth0 flow loaded using its ID.
my_flow_data = auth0.get_flow(id="af_5CTYdsXHLoLXD7ZVwvFHew")
Copy
package main

import (
	"github.com/pulumi/pulumi-auth0/sdk/v3/go/auth0"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// An Auth0 flow loaded using its ID.
		_, err := auth0.LookupFlow(ctx, &auth0.LookupFlowArgs{
			Id: "af_5CTYdsXHLoLXD7ZVwvFHew",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Auth0 = Pulumi.Auth0;

return await Deployment.RunAsync(() => 
{
    // An Auth0 flow loaded using its ID.
    var myFlowData = Auth0.GetFlow.Invoke(new()
    {
        Id = "af_5CTYdsXHLoLXD7ZVwvFHew",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.auth0.Auth0Functions;
import com.pulumi.auth0.inputs.GetFlowArgs;
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) {
        // An Auth0 flow loaded using its ID.
        final var myFlowData = Auth0Functions.getFlow(GetFlowArgs.builder()
            .id("af_5CTYdsXHLoLXD7ZVwvFHew")
            .build());

    }
}
Copy
variables:
  # An Auth0 flow loaded using its ID.
  myFlowData:
    fn::invoke:
      function: auth0:getFlow
      arguments:
        id: af_5CTYdsXHLoLXD7ZVwvFHew
Copy

Using getFlow

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 getFlow(args: GetFlowArgs, opts?: InvokeOptions): Promise<GetFlowResult>
function getFlowOutput(args: GetFlowOutputArgs, opts?: InvokeOptions): Output<GetFlowResult>
Copy
def get_flow(id: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetFlowResult
def get_flow_output(id: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetFlowResult]
Copy
func LookupFlow(ctx *Context, args *LookupFlowArgs, opts ...InvokeOption) (*LookupFlowResult, error)
func LookupFlowOutput(ctx *Context, args *LookupFlowOutputArgs, opts ...InvokeOption) LookupFlowResultOutput
Copy

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

public static class GetFlow 
{
    public static Task<GetFlowResult> InvokeAsync(GetFlowArgs args, InvokeOptions? opts = null)
    public static Output<GetFlowResult> Invoke(GetFlowInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetFlowResult> getFlow(GetFlowArgs args, InvokeOptions options)
public static Output<GetFlowResult> getFlow(GetFlowArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: auth0:index/getFlow:getFlow
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
The id of the Flow.
Id This property is required. string
The id of the Flow.
id This property is required. String
The id of the Flow.
id This property is required. string
The id of the Flow.
id This property is required. str
The id of the Flow.
id This property is required. String
The id of the Flow.

getFlow Result

The following output properties are available:

Actions string
Actions of the flow.
Id string
The id of the Flow.
Name string
Name of the flow.
Actions string
Actions of the flow.
Id string
The id of the Flow.
Name string
Name of the flow.
actions String
Actions of the flow.
id String
The id of the Flow.
name String
Name of the flow.
actions string
Actions of the flow.
id string
The id of the Flow.
name string
Name of the flow.
actions str
Actions of the flow.
id str
The id of the Flow.
name str
Name of the flow.
actions String
Actions of the flow.
id String
The id of the Flow.
name String
Name of the flow.

Package Details

Repository
Auth0 pulumi/pulumi-auth0
License
Apache-2.0
Notes
This Pulumi package is based on the auth0 Terraform Provider.
Auth0 v3.17.1 published on Tuesday, Apr 15, 2025 by Pulumi