1. Packages
  2. Harness Provider
  3. API Docs
  4. getChaosInfrastructure
Harness v0.7.1 published on Saturday, Mar 29, 2025 by Pulumi

harness.getChaosInfrastructure

Explore with Pulumi AI

Harness v0.7.1 published on Saturday, Mar 29, 2025 by Pulumi

Data source for retrieving a chaos infrastructure.

Example Usage

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

const example = harness.getChaosInfrastructure({
    identifier: "identifier",
    orgId: "org_id",
    projectId: "project_id",
    environmentId: "env_id",
});
Copy
import pulumi
import pulumi_harness as harness

example = harness.get_chaos_infrastructure(identifier="identifier",
    org_id="org_id",
    project_id="project_id",
    environment_id="env_id")
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := harness.LookupChaosInfrastructure(ctx, &harness.LookupChaosInfrastructureArgs{
			Identifier:    "identifier",
			OrgId:         "org_id",
			ProjectId:     "project_id",
			EnvironmentId: "env_id",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;

return await Deployment.RunAsync(() => 
{
    var example = Harness.GetChaosInfrastructure.Invoke(new()
    {
        Identifier = "identifier",
        OrgId = "org_id",
        ProjectId = "project_id",
        EnvironmentId = "env_id",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.HarnessFunctions;
import com.pulumi.harness.inputs.GetChaosInfrastructureArgs;
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 example = HarnessFunctions.getChaosInfrastructure(GetChaosInfrastructureArgs.builder()
            .identifier("identifier")
            .orgId("org_id")
            .projectId("project_id")
            .environmentId("env_id")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: harness:getChaosInfrastructure
      arguments:
        identifier: identifier
        orgId: org_id
        projectId: project_id
        environmentId: env_id
Copy

Using getChaosInfrastructure

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 getChaosInfrastructure(args: GetChaosInfrastructureArgs, opts?: InvokeOptions): Promise<GetChaosInfrastructureResult>
function getChaosInfrastructureOutput(args: GetChaosInfrastructureOutputArgs, opts?: InvokeOptions): Output<GetChaosInfrastructureResult>
Copy
def get_chaos_infrastructure(environment_id: Optional[str] = None,
                             identifier: Optional[str] = None,
                             org_id: Optional[str] = None,
                             project_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetChaosInfrastructureResult
def get_chaos_infrastructure_output(environment_id: Optional[pulumi.Input[str]] = None,
                             identifier: Optional[pulumi.Input[str]] = None,
                             org_id: Optional[pulumi.Input[str]] = None,
                             project_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetChaosInfrastructureResult]
Copy
func LookupChaosInfrastructure(ctx *Context, args *LookupChaosInfrastructureArgs, opts ...InvokeOption) (*LookupChaosInfrastructureResult, error)
func LookupChaosInfrastructureOutput(ctx *Context, args *LookupChaosInfrastructureOutputArgs, opts ...InvokeOption) LookupChaosInfrastructureResultOutput
Copy

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

public static class GetChaosInfrastructure 
{
    public static Task<GetChaosInfrastructureResult> InvokeAsync(GetChaosInfrastructureArgs args, InvokeOptions? opts = null)
    public static Output<GetChaosInfrastructureResult> Invoke(GetChaosInfrastructureInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetChaosInfrastructureResult> getChaosInfrastructure(GetChaosInfrastructureArgs args, InvokeOptions options)
public static Output<GetChaosInfrastructureResult> getChaosInfrastructure(GetChaosInfrastructureArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: harness:index/getChaosInfrastructure:getChaosInfrastructure
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

EnvironmentId This property is required. string
Environment identifier of the chaos infrastructure.
Identifier This property is required. string
Identifier of the chaos infrastructure.
OrgId This property is required. string
Identifier of the organization in which the chaos infrastructure is configured.
ProjectId This property is required. string
Identifier of the project in which the chaos infrastructure is configured.
EnvironmentId This property is required. string
Environment identifier of the chaos infrastructure.
Identifier This property is required. string
Identifier of the chaos infrastructure.
OrgId This property is required. string
Identifier of the organization in which the chaos infrastructure is configured.
ProjectId This property is required. string
Identifier of the project in which the chaos infrastructure is configured.
environmentId This property is required. String
Environment identifier of the chaos infrastructure.
identifier This property is required. String
Identifier of the chaos infrastructure.
orgId This property is required. String
Identifier of the organization in which the chaos infrastructure is configured.
projectId This property is required. String
Identifier of the project in which the chaos infrastructure is configured.
environmentId This property is required. string
Environment identifier of the chaos infrastructure.
identifier This property is required. string
Identifier of the chaos infrastructure.
orgId This property is required. string
Identifier of the organization in which the chaos infrastructure is configured.
projectId This property is required. string
Identifier of the project in which the chaos infrastructure is configured.
environment_id This property is required. str
Environment identifier of the chaos infrastructure.
identifier This property is required. str
Identifier of the chaos infrastructure.
org_id This property is required. str
Identifier of the organization in which the chaos infrastructure is configured.
project_id This property is required. str
Identifier of the project in which the chaos infrastructure is configured.
environmentId This property is required. String
Environment identifier of the chaos infrastructure.
identifier This property is required. String
Identifier of the chaos infrastructure.
orgId This property is required. String
Identifier of the organization in which the chaos infrastructure is configured.
projectId This property is required. String
Identifier of the project in which the chaos infrastructure is configured.

getChaosInfrastructure Result

The following output properties are available:

EnvironmentId string
Environment identifier of the chaos infrastructure.
Id string
The provider-assigned unique ID for this managed resource.
Identifier string
Identifier of the chaos infrastructure.
OrgId string
Identifier of the organization in which the chaos infrastructure is configured.
ProjectId string
Identifier of the project in which the chaos infrastructure is configured.
EnvironmentId string
Environment identifier of the chaos infrastructure.
Id string
The provider-assigned unique ID for this managed resource.
Identifier string
Identifier of the chaos infrastructure.
OrgId string
Identifier of the organization in which the chaos infrastructure is configured.
ProjectId string
Identifier of the project in which the chaos infrastructure is configured.
environmentId String
Environment identifier of the chaos infrastructure.
id String
The provider-assigned unique ID for this managed resource.
identifier String
Identifier of the chaos infrastructure.
orgId String
Identifier of the organization in which the chaos infrastructure is configured.
projectId String
Identifier of the project in which the chaos infrastructure is configured.
environmentId string
Environment identifier of the chaos infrastructure.
id string
The provider-assigned unique ID for this managed resource.
identifier string
Identifier of the chaos infrastructure.
orgId string
Identifier of the organization in which the chaos infrastructure is configured.
projectId string
Identifier of the project in which the chaos infrastructure is configured.
environment_id str
Environment identifier of the chaos infrastructure.
id str
The provider-assigned unique ID for this managed resource.
identifier str
Identifier of the chaos infrastructure.
org_id str
Identifier of the organization in which the chaos infrastructure is configured.
project_id str
Identifier of the project in which the chaos infrastructure is configured.
environmentId String
Environment identifier of the chaos infrastructure.
id String
The provider-assigned unique ID for this managed resource.
identifier String
Identifier of the chaos infrastructure.
orgId String
Identifier of the organization in which the chaos infrastructure is configured.
projectId String
Identifier of the project in which the chaos infrastructure is configured.

Package Details

Repository
harness pulumi/pulumi-harness
License
Apache-2.0
Notes
This Pulumi package is based on the harness Terraform Provider.
Harness v0.7.1 published on Saturday, Mar 29, 2025 by Pulumi