Viewing docs for Auth0 v3.56.0
published on Friday, Nov 6, 2026 by Pulumi
published on Friday, Nov 6, 2026 by Pulumi
Viewing docs for Auth0 v3.56.0
published on Friday, Nov 6, 2026 by Pulumi
published on Friday, Nov 6, 2026 by Pulumi
Data source to retrieve a specific Experiment Center experiment by id. (EA only)
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as auth0 from "@pulumi/auth0";
// An existing Experiment Center experiment loaded using its ID.
const loginUiTest = auth0.getExperiment({
id: "exp_XXXXXXXXXXXXXXX",
});
import pulumi
import pulumi_auth0 as auth0
# An existing Experiment Center experiment loaded using its ID.
login_ui_test = auth0.get_experiment(id="exp_XXXXXXXXXXXXXXX")
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 existing Experiment Center experiment loaded using its ID.
_, err := auth0.GetExperiment(ctx, &auth0.LookupExperimentArgs{
Id: "exp_XXXXXXXXXXXXXXX",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Auth0 = Pulumi.Auth0;
return await Deployment.RunAsync(() =>
{
// An existing Experiment Center experiment loaded using its ID.
var loginUiTest = Auth0.GetExperiment.Invoke(new()
{
Id = "exp_XXXXXXXXXXXXXXX",
});
});
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.GetExperimentArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 existing Experiment Center experiment loaded using its ID.
final var loginUiTest = Auth0Functions.getExperiment(GetExperimentArgs.builder()
.id("exp_XXXXXXXXXXXXXXX")
.build());
}
}
variables:
# An existing Experiment Center experiment loaded using its ID.
loginUiTest:
fn::invoke:
function: auth0:getExperiment
arguments:
id: exp_XXXXXXXXXXXXXXX
terraform {
required_providers {
auth0 = {
source = "pulumi/auth0"
}
}
}
data "auth0_experiment" "loginUiTest" {
id = "exp_XXXXXXXXXXXXXXX"
}
# An existing Experiment Center experiment loaded using its ID.
Using getExperiment
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 getExperiment(args: GetExperimentArgs, opts?: InvokeOptions): Promise<GetExperimentResult>
function getExperimentOutput(args: GetExperimentOutputArgs, opts?: InvokeOutputOptions): Output<GetExperimentResult>def get_experiment(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetExperimentResult
def get_experiment_output(id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetExperimentResult]func LookupExperiment(ctx *Context, args *LookupExperimentArgs, opts ...InvokeOption) (*LookupExperimentResult, error)
func LookupExperimentOutput(ctx *Context, args *LookupExperimentOutputArgs, opts ...InvokeOption) LookupExperimentResultOutput> Note: This function is named LookupExperiment in the Go SDK.
public static class GetExperiment
{
public static Task<GetExperimentResult> InvokeAsync(GetExperimentArgs args, InvokeOptions? opts = null)
public static Output<GetExperimentResult> Invoke(GetExperimentInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetExperimentResult> Invoke(GetExperimentInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetExperimentResult> getExperiment(GetExperimentArgs args, InvokeOptions options)
public static Output<GetExperimentResult> getExperiment(GetExperimentArgs args, InvokeOptions options)
public static Output<GetExperimentResult> getExperiment(GetExperimentArgs args, InvokeOutputOptions options)
fn::invoke:
function: auth0:index/getExperiment:getExperiment
arguments:
# arguments dictionarydata "auth0_get_experiment" "name" {
# arguments
}The following arguments are supported:
- Id string
- The ID of the experiment.
- Id string
- The ID of the experiment.
- id string
- The ID of the experiment.
- id String
- The ID of the experiment.
- id string
- The ID of the experiment.
- id str
- The ID of the experiment.
- id String
- The ID of the experiment.
getExperiment Result
The following output properties are available:
- Allocation
Strategy string - The traffic allocation strategy. One of percentage, segment. Changing this replaces the experiment.
- Allocations
List<Get
Experiment Allocation> - The ordered traffic allocations. At least one is required when configured. Removing all allocations replaces the experiment.
- Authentication
Flow string - The authentication flow targeted by the experiment. One of authentication, mfaenrollment, mfachallenge, passwordreset, passkeyenrollment, all.
- Created
At string - The ISO 8601 formatted date the experiment was created.
- Current
Level int - The current ramp level, if levels are configured.
- Default
Config string - The configuration source for an Auth0-managed feature flag. One of tenant, flag. Removing it replaces the experiment.
- Description string
- Description of the experiment.
- Editable
Fields List<string> - Fields that the API reports as editable.
- Ended
At string - The ISO 8601 formatted date the experiment was completed.
- Feature
Flag stringId - The ID of the feature flag evaluated by this experiment. Changing this replaces the experiment.
- Feature
Flag stringName - The name of the feature flag evaluated by this experiment.
- Feature
Flag stringSnapshot - The snapshot of the feature flag.
- Id string
- The ID of the experiment.
- Is
Valid bool - Whether the experiment is ready to activate.
- Levels List<int>
- The ordered ramp levels. Only for the percentage strategy. Removing them replaces the experiment.
- Name string
- The name of the experiment.
- Started
At string - The ISO 8601 formatted date the experiment was first activated.
- Status string
- The lifecycle status of the experiment. One of draft, active, paused, completed, archived. A non-draft status on creation is applied internally after the experiment is created as a draft. If the status update fails, Terraform marks the entire resource tainted and plans to replace it on the next apply. An active experiment cannot be deleted.
- Updated
At string - The ISO 8601 formatted date the experiment was updated.
- Allocation
Strategy string - The traffic allocation strategy. One of percentage, segment. Changing this replaces the experiment.
- Allocations
[]Get
Experiment Allocation - The ordered traffic allocations. At least one is required when configured. Removing all allocations replaces the experiment.
- Authentication
Flow string - The authentication flow targeted by the experiment. One of authentication, mfaenrollment, mfachallenge, passwordreset, passkeyenrollment, all.
- Created
At string - The ISO 8601 formatted date the experiment was created.
- Current
Level int - The current ramp level, if levels are configured.
- Default
Config string - The configuration source for an Auth0-managed feature flag. One of tenant, flag. Removing it replaces the experiment.
- Description string
- Description of the experiment.
- Editable
Fields []string - Fields that the API reports as editable.
- Ended
At string - The ISO 8601 formatted date the experiment was completed.
- Feature
Flag stringId - The ID of the feature flag evaluated by this experiment. Changing this replaces the experiment.
- Feature
Flag stringName - The name of the feature flag evaluated by this experiment.
- Feature
Flag stringSnapshot - The snapshot of the feature flag.
- Id string
- The ID of the experiment.
- Is
Valid bool - Whether the experiment is ready to activate.
- Levels []int
- The ordered ramp levels. Only for the percentage strategy. Removing them replaces the experiment.
- Name string
- The name of the experiment.
- Started
At string - The ISO 8601 formatted date the experiment was first activated.
- Status string
- The lifecycle status of the experiment. One of draft, active, paused, completed, archived. A non-draft status on creation is applied internally after the experiment is created as a draft. If the status update fails, Terraform marks the entire resource tainted and plans to replace it on the next apply. An active experiment cannot be deleted.
- Updated
At string - The ISO 8601 formatted date the experiment was updated.
- allocation_
strategy string - The traffic allocation strategy. One of percentage, segment. Changing this replaces the experiment.
- allocations list(object)
- The ordered traffic allocations. At least one is required when configured. Removing all allocations replaces the experiment.
- authentication_
flow string - The authentication flow targeted by the experiment. One of authentication, mfaenrollment, mfachallenge, passwordreset, passkeyenrollment, all.
- created_
at string - The ISO 8601 formatted date the experiment was created.
- current_
level number - The current ramp level, if levels are configured.
- default_
config string - The configuration source for an Auth0-managed feature flag. One of tenant, flag. Removing it replaces the experiment.
- description string
- Description of the experiment.
- editable_
fields list(string) - Fields that the API reports as editable.
- ended_
at string - The ISO 8601 formatted date the experiment was completed.
- feature_
flag_ stringid - The ID of the feature flag evaluated by this experiment. Changing this replaces the experiment.
- feature_
flag_ stringname - The name of the feature flag evaluated by this experiment.
- feature_
flag_ stringsnapshot - The snapshot of the feature flag.
- id string
- The ID of the experiment.
- is_
valid bool - Whether the experiment is ready to activate.
- levels list(number)
- The ordered ramp levels. Only for the percentage strategy. Removing them replaces the experiment.
- name string
- The name of the experiment.
- started_
at string - The ISO 8601 formatted date the experiment was first activated.
- status string
- The lifecycle status of the experiment. One of draft, active, paused, completed, archived. A non-draft status on creation is applied internally after the experiment is created as a draft. If the status update fails, Terraform marks the entire resource tainted and plans to replace it on the next apply. An active experiment cannot be deleted.
- updated_
at string - The ISO 8601 formatted date the experiment was updated.
- allocation
Strategy String - The traffic allocation strategy. One of percentage, segment. Changing this replaces the experiment.
- allocations
List<Get
Experiment Allocation> - The ordered traffic allocations. At least one is required when configured. Removing all allocations replaces the experiment.
- authentication
Flow String - The authentication flow targeted by the experiment. One of authentication, mfaenrollment, mfachallenge, passwordreset, passkeyenrollment, all.
- created
At String - The ISO 8601 formatted date the experiment was created.
- current
Level Integer - The current ramp level, if levels are configured.
- default
Config String - The configuration source for an Auth0-managed feature flag. One of tenant, flag. Removing it replaces the experiment.
- description String
- Description of the experiment.
- editable
Fields List<String> - Fields that the API reports as editable.
- ended
At String - The ISO 8601 formatted date the experiment was completed.
- feature
Flag StringId - The ID of the feature flag evaluated by this experiment. Changing this replaces the experiment.
- feature
Flag StringName - The name of the feature flag evaluated by this experiment.
- feature
Flag StringSnapshot - The snapshot of the feature flag.
- id String
- The ID of the experiment.
- is
Valid Boolean - Whether the experiment is ready to activate.
- levels List<Integer>
- The ordered ramp levels. Only for the percentage strategy. Removing them replaces the experiment.
- name String
- The name of the experiment.
- started
At String - The ISO 8601 formatted date the experiment was first activated.
- status String
- The lifecycle status of the experiment. One of draft, active, paused, completed, archived. A non-draft status on creation is applied internally after the experiment is created as a draft. If the status update fails, Terraform marks the entire resource tainted and plans to replace it on the next apply. An active experiment cannot be deleted.
- updated
At String - The ISO 8601 formatted date the experiment was updated.
- allocation
Strategy string - The traffic allocation strategy. One of percentage, segment. Changing this replaces the experiment.
- allocations
Get
Experiment Allocation[] - The ordered traffic allocations. At least one is required when configured. Removing all allocations replaces the experiment.
- authentication
Flow string - The authentication flow targeted by the experiment. One of authentication, mfaenrollment, mfachallenge, passwordreset, passkeyenrollment, all.
- created
At string - The ISO 8601 formatted date the experiment was created.
- current
Level number - The current ramp level, if levels are configured.
- default
Config string - The configuration source for an Auth0-managed feature flag. One of tenant, flag. Removing it replaces the experiment.
- description string
- Description of the experiment.
- editable
Fields string[] - Fields that the API reports as editable.
- ended
At string - The ISO 8601 formatted date the experiment was completed.
- feature
Flag stringId - The ID of the feature flag evaluated by this experiment. Changing this replaces the experiment.
- feature
Flag stringName - The name of the feature flag evaluated by this experiment.
- feature
Flag stringSnapshot - The snapshot of the feature flag.
- id string
- The ID of the experiment.
- is
Valid boolean - Whether the experiment is ready to activate.
- levels number[]
- The ordered ramp levels. Only for the percentage strategy. Removing them replaces the experiment.
- name string
- The name of the experiment.
- started
At string - The ISO 8601 formatted date the experiment was first activated.
- status string
- The lifecycle status of the experiment. One of draft, active, paused, completed, archived. A non-draft status on creation is applied internally after the experiment is created as a draft. If the status update fails, Terraform marks the entire resource tainted and plans to replace it on the next apply. An active experiment cannot be deleted.
- updated
At string - The ISO 8601 formatted date the experiment was updated.
- allocation_
strategy str - The traffic allocation strategy. One of percentage, segment. Changing this replaces the experiment.
- allocations
Sequence[Get
Experiment Allocation] - The ordered traffic allocations. At least one is required when configured. Removing all allocations replaces the experiment.
- authentication_
flow str - The authentication flow targeted by the experiment. One of authentication, mfaenrollment, mfachallenge, passwordreset, passkeyenrollment, all.
- created_
at str - The ISO 8601 formatted date the experiment was created.
- current_
level int - The current ramp level, if levels are configured.
- default_
config str - The configuration source for an Auth0-managed feature flag. One of tenant, flag. Removing it replaces the experiment.
- description str
- Description of the experiment.
- editable_
fields Sequence[str] - Fields that the API reports as editable.
- ended_
at str - The ISO 8601 formatted date the experiment was completed.
- feature_
flag_ strid - The ID of the feature flag evaluated by this experiment. Changing this replaces the experiment.
- feature_
flag_ strname - The name of the feature flag evaluated by this experiment.
- feature_
flag_ strsnapshot - The snapshot of the feature flag.
- id str
- The ID of the experiment.
- is_
valid bool - Whether the experiment is ready to activate.
- levels Sequence[int]
- The ordered ramp levels. Only for the percentage strategy. Removing them replaces the experiment.
- name str
- The name of the experiment.
- started_
at str - The ISO 8601 formatted date the experiment was first activated.
- status str
- The lifecycle status of the experiment. One of draft, active, paused, completed, archived. A non-draft status on creation is applied internally after the experiment is created as a draft. If the status update fails, Terraform marks the entire resource tainted and plans to replace it on the next apply. An active experiment cannot be deleted.
- updated_
at str - The ISO 8601 formatted date the experiment was updated.
- allocation
Strategy String - The traffic allocation strategy. One of percentage, segment. Changing this replaces the experiment.
- allocations List<Property Map>
- The ordered traffic allocations. At least one is required when configured. Removing all allocations replaces the experiment.
- authentication
Flow String - The authentication flow targeted by the experiment. One of authentication, mfaenrollment, mfachallenge, passwordreset, passkeyenrollment, all.
- created
At String - The ISO 8601 formatted date the experiment was created.
- current
Level Number - The current ramp level, if levels are configured.
- default
Config String - The configuration source for an Auth0-managed feature flag. One of tenant, flag. Removing it replaces the experiment.
- description String
- Description of the experiment.
- editable
Fields List<String> - Fields that the API reports as editable.
- ended
At String - The ISO 8601 formatted date the experiment was completed.
- feature
Flag StringId - The ID of the feature flag evaluated by this experiment. Changing this replaces the experiment.
- feature
Flag StringName - The name of the feature flag evaluated by this experiment.
- feature
Flag StringSnapshot - The snapshot of the feature flag.
- id String
- The ID of the experiment.
- is
Valid Boolean - Whether the experiment is ready to activate.
- levels List<Number>
- The ordered ramp levels. Only for the percentage strategy. Removing them replaces the experiment.
- name String
- The name of the experiment.
- started
At String - The ISO 8601 formatted date the experiment was first activated.
- status String
- The lifecycle status of the experiment. One of draft, active, paused, completed, archived. A non-draft status on creation is applied internally after the experiment is created as a draft. If the status update fails, Terraform marks the entire resource tainted and plans to replace it on the next apply. An active experiment cannot be deleted.
- updated
At String - The ISO 8601 formatted date the experiment was updated.
Supporting Types
GetExperimentAllocation
- Is
Control bool - Whether this allocation is the control variation. At most one allocation can be the control.
- Is
Fallback bool - Whether this allocation is the fallback. Only for the segment strategy.
- Priority int
- The evaluation priority of this allocation. Only for the segment strategy.
- Segment
Id string - The segment targeted by this allocation. Only for the segment strategy. Omit for the fallback allocation.
- Segment
Name string - The name of the targeted segment.
- Segment
Snapshot string - The snapshot of the segment.
- Variation
Id string - The ID of the feature flag variation assigned to this allocation.
- Variation
Name string - The name of the assigned variation.
- Variation
Snapshot string - The snapshot of the variation.
- Weight int
- The percentage weight of this allocation. Only for the percentage strategy. Omit when using levels.
- Is
Control bool - Whether this allocation is the control variation. At most one allocation can be the control.
- Is
Fallback bool - Whether this allocation is the fallback. Only for the segment strategy.
- Priority int
- The evaluation priority of this allocation. Only for the segment strategy.
- Segment
Id string - The segment targeted by this allocation. Only for the segment strategy. Omit for the fallback allocation.
- Segment
Name string - The name of the targeted segment.
- Segment
Snapshot string - The snapshot of the segment.
- Variation
Id string - The ID of the feature flag variation assigned to this allocation.
- Variation
Name string - The name of the assigned variation.
- Variation
Snapshot string - The snapshot of the variation.
- Weight int
- The percentage weight of this allocation. Only for the percentage strategy. Omit when using levels.
- is_
control bool - Whether this allocation is the control variation. At most one allocation can be the control.
- is_
fallback bool - Whether this allocation is the fallback. Only for the segment strategy.
- priority number
- The evaluation priority of this allocation. Only for the segment strategy.
- segment_
id string - The segment targeted by this allocation. Only for the segment strategy. Omit for the fallback allocation.
- segment_
name string - The name of the targeted segment.
- segment_
snapshot string - The snapshot of the segment.
- variation_
id string - The ID of the feature flag variation assigned to this allocation.
- variation_
name string - The name of the assigned variation.
- variation_
snapshot string - The snapshot of the variation.
- weight number
- The percentage weight of this allocation. Only for the percentage strategy. Omit when using levels.
- is
Control Boolean - Whether this allocation is the control variation. At most one allocation can be the control.
- is
Fallback Boolean - Whether this allocation is the fallback. Only for the segment strategy.
- priority Integer
- The evaluation priority of this allocation. Only for the segment strategy.
- segment
Id String - The segment targeted by this allocation. Only for the segment strategy. Omit for the fallback allocation.
- segment
Name String - The name of the targeted segment.
- segment
Snapshot String - The snapshot of the segment.
- variation
Id String - The ID of the feature flag variation assigned to this allocation.
- variation
Name String - The name of the assigned variation.
- variation
Snapshot String - The snapshot of the variation.
- weight Integer
- The percentage weight of this allocation. Only for the percentage strategy. Omit when using levels.
- is
Control boolean - Whether this allocation is the control variation. At most one allocation can be the control.
- is
Fallback boolean - Whether this allocation is the fallback. Only for the segment strategy.
- priority number
- The evaluation priority of this allocation. Only for the segment strategy.
- segment
Id string - The segment targeted by this allocation. Only for the segment strategy. Omit for the fallback allocation.
- segment
Name string - The name of the targeted segment.
- segment
Snapshot string - The snapshot of the segment.
- variation
Id string - The ID of the feature flag variation assigned to this allocation.
- variation
Name string - The name of the assigned variation.
- variation
Snapshot string - The snapshot of the variation.
- weight number
- The percentage weight of this allocation. Only for the percentage strategy. Omit when using levels.
- is_
control bool - Whether this allocation is the control variation. At most one allocation can be the control.
- is_
fallback bool - Whether this allocation is the fallback. Only for the segment strategy.
- priority int
- The evaluation priority of this allocation. Only for the segment strategy.
- segment_
id str - The segment targeted by this allocation. Only for the segment strategy. Omit for the fallback allocation.
- segment_
name str - The name of the targeted segment.
- segment_
snapshot str - The snapshot of the segment.
- variation_
id str - The ID of the feature flag variation assigned to this allocation.
- variation_
name str - The name of the assigned variation.
- variation_
snapshot str - The snapshot of the variation.
- weight int
- The percentage weight of this allocation. Only for the percentage strategy. Omit when using levels.
- is
Control Boolean - Whether this allocation is the control variation. At most one allocation can be the control.
- is
Fallback Boolean - Whether this allocation is the fallback. Only for the segment strategy.
- priority Number
- The evaluation priority of this allocation. Only for the segment strategy.
- segment
Id String - The segment targeted by this allocation. Only for the segment strategy. Omit for the fallback allocation.
- segment
Name String - The name of the targeted segment.
- segment
Snapshot String - The snapshot of the segment.
- variation
Id String - The ID of the feature flag variation assigned to this allocation.
- variation
Name String - The name of the assigned variation.
- variation
Snapshot String - The snapshot of the variation.
- weight Number
- The percentage weight of this allocation. Only for the percentage strategy. Omit when using levels.
Package Details
- Repository
- Auth0 pulumi/pulumi-auth0
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
auth0Terraform Provider.
Viewing docs for Auth0 v3.56.0
published on Friday, Nov 6, 2026 by Pulumi
published on Friday, Nov 6, 2026 by Pulumi