1. Packages
  2. Packages
  3. Harness Provider
  4. API Docs
  5. chaos
  6. getExperiment
Viewing docs for Harness v0.12.0
published on Tuesday, Apr 21, 2026 by Pulumi
harness logo
Viewing docs for Harness v0.12.0
published on Tuesday, Apr 21, 2026 by Pulumi

    Data source for looking up chaos experiments

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    // ============================================================================
    // Harness Chaos Experiment Data Source Examples
    // ============================================================================
    //
    // The harness_chaos_experiment data source retrieves information about
    // existing chaos experiments.
    //
    // Lookup Methods:
    // 1. By identity (fast, direct GET) - RECOMMENDED
    // 2. By name (slower, uses LIST + filter)
    // ============================================================================
    // ----------------------------------------------------------------------------
    // Example 1: Lookup by Identity (Recommended)
    // ----------------------------------------------------------------------------
    // Fast lookup using the experiment's unique identity
    const byIdentity = harness.chaos.getExperiment({
        orgId: "my_org",
        projectId: "my_project",
        identity: "my-chaos-experiment",
    });
    export const experimentId = byIdentity.then(byIdentity => byIdentity.experimentId);
    export const experimentInfraType = byIdentity.then(byIdentity => byIdentity.infraType);
    export const experimentTemplateName = byIdentity.then(byIdentity => byIdentity.templateDetails?.[0]?.templateName);
    // ----------------------------------------------------------------------------
    // Example 2: Lookup by Name
    // ----------------------------------------------------------------------------
    // Lookup using the experiment's display name (slower than identity lookup)
    const byName = harness.chaos.getExperiment({
        orgId: "my_org",
        projectId: "my_project",
        name: "My Chaos Experiment",
    });
    export const experimentIdentity = byName.then(byName => byName.identity);
    // ----------------------------------------------------------------------------
    // Example 3: Use in Other Resources
    // ----------------------------------------------------------------------------
    // Reference experiment data in other resources
    const existing = harness.chaos.getExperiment({
        orgId: "my_org",
        projectId: "my_project",
        identity: "prod-experiment",
    });
    // Example: Create monitoring based on experiment
    const chaosMonitor = new harness.platform.MonitoredService("chaos_monitor", {
        orgIdentifier: existing.then(existing => existing.orgId),
        projectIdentifier: existing.then(existing => existing.projectId),
        identifier: existing.then(existing => `monitor-${existing.identity}`),
        name: existing.then(existing => `Monitor for ${existing.name}`),
        description: existing.then(existing => `Monitoring for: ${existing.description}`),
    });
    
    import pulumi
    import pulumi_harness as harness
    
    # ============================================================================
    # Harness Chaos Experiment Data Source Examples
    # ============================================================================
    #
    # The harness_chaos_experiment data source retrieves information about
    # existing chaos experiments.
    #
    # Lookup Methods:
    # 1. By identity (fast, direct GET) - RECOMMENDED
    # 2. By name (slower, uses LIST + filter)
    # ============================================================================
    # ----------------------------------------------------------------------------
    # Example 1: Lookup by Identity (Recommended)
    # ----------------------------------------------------------------------------
    # Fast lookup using the experiment's unique identity
    by_identity = harness.chaos.get_experiment(org_id="my_org",
        project_id="my_project",
        identity="my-chaos-experiment")
    pulumi.export("experimentId", by_identity.experiment_id)
    pulumi.export("experimentInfraType", by_identity.infra_type)
    pulumi.export("experimentTemplateName", by_identity.template_details[0].template_name)
    # ----------------------------------------------------------------------------
    # Example 2: Lookup by Name
    # ----------------------------------------------------------------------------
    # Lookup using the experiment's display name (slower than identity lookup)
    by_name = harness.chaos.get_experiment(org_id="my_org",
        project_id="my_project",
        name="My Chaos Experiment")
    pulumi.export("experimentIdentity", by_name.identity)
    # ----------------------------------------------------------------------------
    # Example 3: Use in Other Resources
    # ----------------------------------------------------------------------------
    # Reference experiment data in other resources
    existing = harness.chaos.get_experiment(org_id="my_org",
        project_id="my_project",
        identity="prod-experiment")
    # Example: Create monitoring based on experiment
    chaos_monitor = harness.platform.MonitoredService("chaos_monitor",
        org_identifier=existing.org_id,
        project_identifier=existing.project_id,
        identifier=f"monitor-{existing.identity}",
        name=f"Monitor for {existing.name}",
        description=f"Monitoring for: {existing.description}")
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/chaos"
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// ============================================================================
    		// Harness Chaos Experiment Data Source Examples
    		// ============================================================================
    		//
    		// The harness_chaos_experiment data source retrieves information about
    		// existing chaos experiments.
    		//
    		// Lookup Methods:
    		// 1. By identity (fast, direct GET) - RECOMMENDED
    		// 2. By name (slower, uses LIST + filter)
    		// ============================================================================
    		// ----------------------------------------------------------------------------
    		// Example 1: Lookup by Identity (Recommended)
    		// ----------------------------------------------------------------------------
    		// Fast lookup using the experiment's unique identity
    		byIdentity, err := chaos.LookupExperiment(ctx, &chaos.LookupExperimentArgs{
    			OrgId:     "my_org",
    			ProjectId: "my_project",
    			Identity:  pulumi.StringRef("my-chaos-experiment"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("experimentId", byIdentity.ExperimentId)
    		ctx.Export("experimentInfraType", byIdentity.InfraType)
    		ctx.Export("experimentTemplateName", byIdentity.TemplateDetails[0].TemplateName)
    		// ----------------------------------------------------------------------------
    		// Example 2: Lookup by Name
    		// ----------------------------------------------------------------------------
    		// Lookup using the experiment's display name (slower than identity lookup)
    		byName, err := chaos.LookupExperiment(ctx, &chaos.LookupExperimentArgs{
    			OrgId:     "my_org",
    			ProjectId: "my_project",
    			Name:      pulumi.StringRef("My Chaos Experiment"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("experimentIdentity", byName.Identity)
    		// ----------------------------------------------------------------------------
    		// Example 3: Use in Other Resources
    		// ----------------------------------------------------------------------------
    		// Reference experiment data in other resources
    		existing, err := chaos.LookupExperiment(ctx, &chaos.LookupExperimentArgs{
    			OrgId:     "my_org",
    			ProjectId: "my_project",
    			Identity:  pulumi.StringRef("prod-experiment"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Example: Create monitoring based on experiment
    		_, err = platform.NewMonitoredService(ctx, "chaos_monitor", &platform.MonitoredServiceArgs{
    			OrgIdentifier:     existing.OrgId,
    			ProjectIdentifier: existing.ProjectId,
    			Identifier:        pulumi.Sprintf("monitor-%v", existing.Identity),
    			Name:              fmt.Sprintf("Monitor for %v", existing.Name),
    			Description:       fmt.Sprintf("Monitoring for: %v", existing.Description),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        // ============================================================================
        // Harness Chaos Experiment Data Source Examples
        // ============================================================================
        //
        // The harness_chaos_experiment data source retrieves information about
        // existing chaos experiments.
        //
        // Lookup Methods:
        // 1. By identity (fast, direct GET) - RECOMMENDED
        // 2. By name (slower, uses LIST + filter)
        // ============================================================================
        // ----------------------------------------------------------------------------
        // Example 1: Lookup by Identity (Recommended)
        // ----------------------------------------------------------------------------
        // Fast lookup using the experiment's unique identity
        var byIdentity = Harness.Chaos.GetExperiment.Invoke(new()
        {
            OrgId = "my_org",
            ProjectId = "my_project",
            Identity = "my-chaos-experiment",
        });
    
        // ----------------------------------------------------------------------------
        // Example 2: Lookup by Name
        // ----------------------------------------------------------------------------
        // Lookup using the experiment's display name (slower than identity lookup)
        var byName = Harness.Chaos.GetExperiment.Invoke(new()
        {
            OrgId = "my_org",
            ProjectId = "my_project",
            Name = "My Chaos Experiment",
        });
    
        // ----------------------------------------------------------------------------
        // Example 3: Use in Other Resources
        // ----------------------------------------------------------------------------
        // Reference experiment data in other resources
        var existing = Harness.Chaos.GetExperiment.Invoke(new()
        {
            OrgId = "my_org",
            ProjectId = "my_project",
            Identity = "prod-experiment",
        });
    
        // Example: Create monitoring based on experiment
        var chaosMonitor = new Harness.Platform.MonitoredService("chaos_monitor", new()
        {
            OrgIdentifier = existing.Apply(getExperimentResult => getExperimentResult.OrgId),
            ProjectIdentifier = existing.Apply(getExperimentResult => getExperimentResult.ProjectId),
            Identifier = $"monitor-{existing.Apply(getExperimentResult => getExperimentResult.Identity)}",
            Name = $"Monitor for {existing.Apply(getExperimentResult => getExperimentResult.Name)}",
            Description = $"Monitoring for: {existing.Apply(getExperimentResult => getExperimentResult.Description)}",
        });
    
        return new Dictionary<string, object?>
        {
            ["experimentId"] = byIdentity.Apply(getExperimentResult => getExperimentResult.ExperimentId),
            ["experimentInfraType"] = byIdentity.Apply(getExperimentResult => getExperimentResult.InfraType),
            ["experimentTemplateName"] = byIdentity.Apply(getExperimentResult => getExperimentResult.TemplateDetails[0]?.TemplateName),
            ["experimentIdentity"] = byName.Apply(getExperimentResult => getExperimentResult.Identity),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.chaos.ChaosFunctions;
    import com.pulumi.harness.chaos.inputs.GetExperimentArgs;
    import com.pulumi.harness.platform.MonitoredService;
    import com.pulumi.harness.platform.MonitoredServiceArgs;
    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) {
            // ============================================================================
            // Harness Chaos Experiment Data Source Examples
            // ============================================================================
            //
            // The harness_chaos_experiment data source retrieves information about
            // existing chaos experiments.
            //
            // Lookup Methods:
            // 1. By identity (fast, direct GET) - RECOMMENDED
            // 2. By name (slower, uses LIST + filter)
            // ============================================================================
            // ----------------------------------------------------------------------------
            // Example 1: Lookup by Identity (Recommended)
            // ----------------------------------------------------------------------------
            // Fast lookup using the experiment's unique identity
            final var byIdentity = ChaosFunctions.getExperiment(GetExperimentArgs.builder()
                .orgId("my_org")
                .projectId("my_project")
                .identity("my-chaos-experiment")
                .build());
    
            ctx.export("experimentId", byIdentity.experimentId());
            ctx.export("experimentInfraType", byIdentity.infraType());
            ctx.export("experimentTemplateName", byIdentity.templateDetails()[0].templateName());
            // ----------------------------------------------------------------------------
            // Example 2: Lookup by Name
            // ----------------------------------------------------------------------------
            // Lookup using the experiment's display name (slower than identity lookup)
            final var byName = ChaosFunctions.getExperiment(GetExperimentArgs.builder()
                .orgId("my_org")
                .projectId("my_project")
                .name("My Chaos Experiment")
                .build());
    
            ctx.export("experimentIdentity", byName.identity());
            // ----------------------------------------------------------------------------
            // Example 3: Use in Other Resources
            // ----------------------------------------------------------------------------
            // Reference experiment data in other resources
            final var existing = ChaosFunctions.getExperiment(GetExperimentArgs.builder()
                .orgId("my_org")
                .projectId("my_project")
                .identity("prod-experiment")
                .build());
    
            // Example: Create monitoring based on experiment
            var chaosMonitor = new MonitoredService("chaosMonitor", MonitoredServiceArgs.builder()
                .orgIdentifier(existing.orgId())
                .projectIdentifier(existing.projectId())
                .identifier(String.format("monitor-%s", existing.identity()))
                .name(String.format("Monitor for %s", existing.name()))
                .description(String.format("Monitoring for: %s", existing.description()))
                .build());
    
        }
    }
    
    resources:
      # Example: Create monitoring based on experiment
      chaosMonitor:
        type: harness:platform:MonitoredService
        name: chaos_monitor
        properties:
          orgIdentifier: ${existing.orgId}
          projectIdentifier: ${existing.projectId}
          identifier: monitor-${existing.identity}
          name: Monitor for ${existing.name}
          description: 'Monitoring for: ${existing.description}'
    variables:
      # ============================================================================
      # Harness Chaos Experiment Data Source Examples
      # ============================================================================
      #
      # The harness_chaos_experiment data source retrieves information about
      # existing chaos experiments.
      #
      # Lookup Methods:
      # 1. By identity (fast, direct GET) - RECOMMENDED
      # 2. By name (slower, uses LIST + filter)
      # ============================================================================
    
      # ----------------------------------------------------------------------------
      # Example 1: Lookup by Identity (Recommended)
      # ----------------------------------------------------------------------------
      # Fast lookup using the experiment's unique identity
      byIdentity:
        fn::invoke:
          function: harness:chaos:getExperiment
          arguments:
            orgId: my_org
            projectId: my_project
            identity: my-chaos-experiment
      # ----------------------------------------------------------------------------
      # Example 2: Lookup by Name
      # ----------------------------------------------------------------------------
      # Lookup using the experiment's display name (slower than identity lookup)
      byName:
        fn::invoke:
          function: harness:chaos:getExperiment
          arguments:
            orgId: my_org
            projectId: my_project
            name: My Chaos Experiment
      # ----------------------------------------------------------------------------
      # Example 3: Use in Other Resources
      # ----------------------------------------------------------------------------
      # Reference experiment data in other resources
      existing:
        fn::invoke:
          function: harness:chaos:getExperiment
          arguments:
            orgId: my_org
            projectId: my_project
            identity: prod-experiment
    outputs:
      # Use the retrieved data
      experimentId: ${byIdentity.experimentId}
      experimentInfraType: ${byIdentity.infraType}
      experimentTemplateName: ${byIdentity.templateDetails[0].templateName}
      experimentIdentity: ${byName.identity}
    

    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?: InvokeOptions): Output<GetExperimentResult>
    def get_experiment(identity: Optional[str] = None,
                       name: Optional[str] = None,
                       org_id: Optional[str] = None,
                       project_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetExperimentResult
    def get_experiment_output(identity: Optional[pulumi.Input[str]] = None,
                       name: Optional[pulumi.Input[str]] = None,
                       org_id: Optional[pulumi.Input[str]] = None,
                       project_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = 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 CompletableFuture<GetExperimentResult> getExperiment(GetExperimentArgs args, InvokeOptions options)
    public static Output<GetExperimentResult> getExperiment(GetExperimentArgs args, InvokeOptions options)
    
    fn::invoke:
      function: harness:chaos/getExperiment:getExperiment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OrgId string
    Organization identifier
    ProjectId string
    Project identifier
    Identity string
    Experiment identity to lookup
    Name string
    Experiment name to lookup
    OrgId string
    Organization identifier
    ProjectId string
    Project identifier
    Identity string
    Experiment identity to lookup
    Name string
    Experiment name to lookup
    orgId String
    Organization identifier
    projectId String
    Project identifier
    identity String
    Experiment identity to lookup
    name String
    Experiment name to lookup
    orgId string
    Organization identifier
    projectId string
    Project identifier
    identity string
    Experiment identity to lookup
    name string
    Experiment name to lookup
    org_id str
    Organization identifier
    project_id str
    Project identifier
    identity str
    Experiment identity to lookup
    name str
    Experiment name to lookup
    orgId String
    Organization identifier
    projectId String
    Project identifier
    identity String
    Experiment identity to lookup
    name String
    Experiment name to lookup

    getExperiment Result

    The following output properties are available:

    CreatedAt int
    Creation timestamp (Unix)
    CreatedBy string
    Username of the creator
    CronSyntax string
    Cron expression for scheduled execution
    Description string
    Description of the chaos experiment
    ExperimentId string
    Full experiment ID
    ExperimentType string
    Type of the experiment
    FaultIds List<string>
    List of fault IDs used in the experiment
    HubIdentity string
    Identity of the hub where template resides
    Id string
    The provider-assigned unique ID for this managed resource.
    ImportType string
    Import type (REFERENCE or LOCAL)
    InfraId string
    Resolved infrastructure ID
    InfraRef string
    Infrastructure reference
    InfraType string
    Infrastructure type
    IsCronEnabled bool
    Whether cron scheduling is enabled
    IsCustomExperiment bool
    Whether this is a custom experiment
    IsSingleRunCronEnabled bool
    Whether single-run cron is enabled
    LastExecutedAt int
    Timestamp of last execution
    OrgId string
    Organization identifier
    ProjectId string
    Project identifier
    Revision string
    Template revision used
    Tags List<string>
    Tags to categorize the experiment
    TargetNetworkMapId string
    Target network map ID
    TemplateDetails List<GetExperimentTemplateDetail>
    Template details for REFERENCE imports
    TemplateIdentity string
    Identity of the experiment template
    TotalExperimentRuns int
    Total number of experiment runs
    UpdatedAt int
    Last update timestamp (Unix)
    UpdatedBy string
    Username of the last updater
    Identity string
    Experiment identity to lookup
    Name string
    Experiment name to lookup
    CreatedAt int
    Creation timestamp (Unix)
    CreatedBy string
    Username of the creator
    CronSyntax string
    Cron expression for scheduled execution
    Description string
    Description of the chaos experiment
    ExperimentId string
    Full experiment ID
    ExperimentType string
    Type of the experiment
    FaultIds []string
    List of fault IDs used in the experiment
    HubIdentity string
    Identity of the hub where template resides
    Id string
    The provider-assigned unique ID for this managed resource.
    ImportType string
    Import type (REFERENCE or LOCAL)
    InfraId string
    Resolved infrastructure ID
    InfraRef string
    Infrastructure reference
    InfraType string
    Infrastructure type
    IsCronEnabled bool
    Whether cron scheduling is enabled
    IsCustomExperiment bool
    Whether this is a custom experiment
    IsSingleRunCronEnabled bool
    Whether single-run cron is enabled
    LastExecutedAt int
    Timestamp of last execution
    OrgId string
    Organization identifier
    ProjectId string
    Project identifier
    Revision string
    Template revision used
    Tags []string
    Tags to categorize the experiment
    TargetNetworkMapId string
    Target network map ID
    TemplateDetails []GetExperimentTemplateDetail
    Template details for REFERENCE imports
    TemplateIdentity string
    Identity of the experiment template
    TotalExperimentRuns int
    Total number of experiment runs
    UpdatedAt int
    Last update timestamp (Unix)
    UpdatedBy string
    Username of the last updater
    Identity string
    Experiment identity to lookup
    Name string
    Experiment name to lookup
    createdAt Integer
    Creation timestamp (Unix)
    createdBy String
    Username of the creator
    cronSyntax String
    Cron expression for scheduled execution
    description String
    Description of the chaos experiment
    experimentId String
    Full experiment ID
    experimentType String
    Type of the experiment
    faultIds List<String>
    List of fault IDs used in the experiment
    hubIdentity String
    Identity of the hub where template resides
    id String
    The provider-assigned unique ID for this managed resource.
    importType String
    Import type (REFERENCE or LOCAL)
    infraId String
    Resolved infrastructure ID
    infraRef String
    Infrastructure reference
    infraType String
    Infrastructure type
    isCronEnabled Boolean
    Whether cron scheduling is enabled
    isCustomExperiment Boolean
    Whether this is a custom experiment
    isSingleRunCronEnabled Boolean
    Whether single-run cron is enabled
    lastExecutedAt Integer
    Timestamp of last execution
    orgId String
    Organization identifier
    projectId String
    Project identifier
    revision String
    Template revision used
    tags List<String>
    Tags to categorize the experiment
    targetNetworkMapId String
    Target network map ID
    templateDetails List<GetExperimentTemplateDetail>
    Template details for REFERENCE imports
    templateIdentity String
    Identity of the experiment template
    totalExperimentRuns Integer
    Total number of experiment runs
    updatedAt Integer
    Last update timestamp (Unix)
    updatedBy String
    Username of the last updater
    identity String
    Experiment identity to lookup
    name String
    Experiment name to lookup
    createdAt number
    Creation timestamp (Unix)
    createdBy string
    Username of the creator
    cronSyntax string
    Cron expression for scheduled execution
    description string
    Description of the chaos experiment
    experimentId string
    Full experiment ID
    experimentType string
    Type of the experiment
    faultIds string[]
    List of fault IDs used in the experiment
    hubIdentity string
    Identity of the hub where template resides
    id string
    The provider-assigned unique ID for this managed resource.
    importType string
    Import type (REFERENCE or LOCAL)
    infraId string
    Resolved infrastructure ID
    infraRef string
    Infrastructure reference
    infraType string
    Infrastructure type
    isCronEnabled boolean
    Whether cron scheduling is enabled
    isCustomExperiment boolean
    Whether this is a custom experiment
    isSingleRunCronEnabled boolean
    Whether single-run cron is enabled
    lastExecutedAt number
    Timestamp of last execution
    orgId string
    Organization identifier
    projectId string
    Project identifier
    revision string
    Template revision used
    tags string[]
    Tags to categorize the experiment
    targetNetworkMapId string
    Target network map ID
    templateDetails GetExperimentTemplateDetail[]
    Template details for REFERENCE imports
    templateIdentity string
    Identity of the experiment template
    totalExperimentRuns number
    Total number of experiment runs
    updatedAt number
    Last update timestamp (Unix)
    updatedBy string
    Username of the last updater
    identity string
    Experiment identity to lookup
    name string
    Experiment name to lookup
    created_at int
    Creation timestamp (Unix)
    created_by str
    Username of the creator
    cron_syntax str
    Cron expression for scheduled execution
    description str
    Description of the chaos experiment
    experiment_id str
    Full experiment ID
    experiment_type str
    Type of the experiment
    fault_ids Sequence[str]
    List of fault IDs used in the experiment
    hub_identity str
    Identity of the hub where template resides
    id str
    The provider-assigned unique ID for this managed resource.
    import_type str
    Import type (REFERENCE or LOCAL)
    infra_id str
    Resolved infrastructure ID
    infra_ref str
    Infrastructure reference
    infra_type str
    Infrastructure type
    is_cron_enabled bool
    Whether cron scheduling is enabled
    is_custom_experiment bool
    Whether this is a custom experiment
    is_single_run_cron_enabled bool
    Whether single-run cron is enabled
    last_executed_at int
    Timestamp of last execution
    org_id str
    Organization identifier
    project_id str
    Project identifier
    revision str
    Template revision used
    tags Sequence[str]
    Tags to categorize the experiment
    target_network_map_id str
    Target network map ID
    template_details Sequence[GetExperimentTemplateDetail]
    Template details for REFERENCE imports
    template_identity str
    Identity of the experiment template
    total_experiment_runs int
    Total number of experiment runs
    updated_at int
    Last update timestamp (Unix)
    updated_by str
    Username of the last updater
    identity str
    Experiment identity to lookup
    name str
    Experiment name to lookup
    createdAt Number
    Creation timestamp (Unix)
    createdBy String
    Username of the creator
    cronSyntax String
    Cron expression for scheduled execution
    description String
    Description of the chaos experiment
    experimentId String
    Full experiment ID
    experimentType String
    Type of the experiment
    faultIds List<String>
    List of fault IDs used in the experiment
    hubIdentity String
    Identity of the hub where template resides
    id String
    The provider-assigned unique ID for this managed resource.
    importType String
    Import type (REFERENCE or LOCAL)
    infraId String
    Resolved infrastructure ID
    infraRef String
    Infrastructure reference
    infraType String
    Infrastructure type
    isCronEnabled Boolean
    Whether cron scheduling is enabled
    isCustomExperiment Boolean
    Whether this is a custom experiment
    isSingleRunCronEnabled Boolean
    Whether single-run cron is enabled
    lastExecutedAt Number
    Timestamp of last execution
    orgId String
    Organization identifier
    projectId String
    Project identifier
    revision String
    Template revision used
    tags List<String>
    Tags to categorize the experiment
    targetNetworkMapId String
    Target network map ID
    templateDetails List<Property Map>
    Template details for REFERENCE imports
    templateIdentity String
    Identity of the experiment template
    totalExperimentRuns Number
    Total number of experiment runs
    updatedAt Number
    Last update timestamp (Unix)
    updatedBy String
    Username of the last updater
    identity String
    Experiment identity to lookup
    name String
    Experiment name to lookup

    Supporting Types

    GetExperimentTemplateDetail

    HubReference string
    Hub reference
    Identity string
    Template identity
    Reference string
    Template reference
    Revision string
    Template revision
    HubReference string
    Hub reference
    Identity string
    Template identity
    Reference string
    Template reference
    Revision string
    Template revision
    hubReference String
    Hub reference
    identity String
    Template identity
    reference String
    Template reference
    revision String
    Template revision
    hubReference string
    Hub reference
    identity string
    Template identity
    reference string
    Template reference
    revision string
    Template revision
    hub_reference str
    Hub reference
    identity str
    Template identity
    reference str
    Template reference
    revision str
    Template revision
    hubReference String
    Hub reference
    identity String
    Template identity
    reference String
    Template reference
    revision String
    Template revision

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Viewing docs for Harness v0.12.0
    published on Tuesday, Apr 21, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.