1. Packages
  2. Harness Provider
  3. API Docs
  4. chaos
  5. getInfrastructureV2
Harness v0.8.4 published on Thursday, Sep 11, 2025 by Pulumi

harness.chaos.getInfrastructureV2

Explore with Pulumi AI

harness logo
Harness v0.8.4 published on Thursday, Sep 11, 2025 by Pulumi

    Data source for retrieving a Harness Chaos Infrastructure V2.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    // Data source to fetch a specific agent by name
    const byName = harness.service.getDiscoveryAgent({
        name: "example-agent",
        orgIdentifier: orgIdentifier,
        projectIdentifier: projectIdentifier,
        environmentIdentifier: environmentIdentifier,
    });
    export const agentDetailsByName = byName;
    // Data source to fetch a specific agent by identity
    const byIdentity = harness.service.getDiscoveryAgent({
        identity: "example-infra",
        orgIdentifier: orgIdentifier,
        projectIdentifier: projectIdentifier,
        environmentIdentifier: environmentIdentifier,
    });
    export const agentDetailsByIdentity = byIdentity;
    
    import pulumi
    import pulumi_harness as harness
    
    # Data source to fetch a specific agent by name
    by_name = harness.service.get_discovery_agent(name="example-agent",
        org_identifier=org_identifier,
        project_identifier=project_identifier,
        environment_identifier=environment_identifier)
    pulumi.export("agentDetailsByName", by_name)
    # Data source to fetch a specific agent by identity
    by_identity = harness.service.get_discovery_agent(identity="example-infra",
        org_identifier=org_identifier,
        project_identifier=project_identifier,
        environment_identifier=environment_identifier)
    pulumi.export("agentDetailsByIdentity", by_identity)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/service"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Data source to fetch a specific agent by name
    		byName, err := service.LookupDiscoveryAgent(ctx, &service.LookupDiscoveryAgentArgs{
    			Name:                  pulumi.StringRef("example-agent"),
    			OrgIdentifier:         pulumi.StringRef(orgIdentifier),
    			ProjectIdentifier:     pulumi.StringRef(projectIdentifier),
    			EnvironmentIdentifier: environmentIdentifier,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("agentDetailsByName", byName)
    		// Data source to fetch a specific agent by identity
    		byIdentity, err := service.LookupDiscoveryAgent(ctx, &service.LookupDiscoveryAgentArgs{
    			Identity:              pulumi.StringRef("example-infra"),
    			OrgIdentifier:         pulumi.StringRef(orgIdentifier),
    			ProjectIdentifier:     pulumi.StringRef(projectIdentifier),
    			EnvironmentIdentifier: environmentIdentifier,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("agentDetailsByIdentity", byIdentity)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        // Data source to fetch a specific agent by name
        var byName = Harness.Service.GetDiscoveryAgent.Invoke(new()
        {
            Name = "example-agent",
            OrgIdentifier = orgIdentifier,
            ProjectIdentifier = projectIdentifier,
            EnvironmentIdentifier = environmentIdentifier,
        });
    
        // Data source to fetch a specific agent by identity
        var byIdentity = Harness.Service.GetDiscoveryAgent.Invoke(new()
        {
            Identity = "example-infra",
            OrgIdentifier = orgIdentifier,
            ProjectIdentifier = projectIdentifier,
            EnvironmentIdentifier = environmentIdentifier,
        });
    
        return new Dictionary<string, object?>
        {
            ["agentDetailsByName"] = byName,
            ["agentDetailsByIdentity"] = byIdentity,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.service.ServiceFunctions;
    import com.pulumi.harness.service.inputs.GetDiscoveryAgentArgs;
    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) {
            // Data source to fetch a specific agent by name
            final var byName = ServiceFunctions.getDiscoveryAgent(GetDiscoveryAgentArgs.builder()
                .name("example-agent")
                .orgIdentifier(orgIdentifier)
                .projectIdentifier(projectIdentifier)
                .environmentIdentifier(environmentIdentifier)
                .build());
    
            ctx.export("agentDetailsByName", byName);
            // Data source to fetch a specific agent by identity
            final var byIdentity = ServiceFunctions.getDiscoveryAgent(GetDiscoveryAgentArgs.builder()
                .identity("example-infra")
                .orgIdentifier(orgIdentifier)
                .projectIdentifier(projectIdentifier)
                .environmentIdentifier(environmentIdentifier)
                .build());
    
            ctx.export("agentDetailsByIdentity", byIdentity);
        }
    }
    
    variables:
      # Data source to fetch a specific agent by name
      byName:
        fn::invoke:
          function: harness:service:getDiscoveryAgent
          arguments:
            name: example-agent
            orgIdentifier: ${orgIdentifier}
            projectIdentifier: ${projectIdentifier}
            environmentIdentifier: ${environmentIdentifier}
      # Data source to fetch a specific agent by identity
      byIdentity:
        fn::invoke:
          function: harness:service:getDiscoveryAgent
          arguments:
            identity: example-infra
            orgIdentifier: ${orgIdentifier}
            projectIdentifier: ${projectIdentifier}
            environmentIdentifier: ${environmentIdentifier}
    outputs:
      agentDetailsByName: ${byName}
      agentDetailsByIdentity: ${byIdentity}
    

    Using getInfrastructureV2

    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 getInfrastructureV2(args: GetInfrastructureV2Args, opts?: InvokeOptions): Promise<GetInfrastructureV2Result>
    function getInfrastructureV2Output(args: GetInfrastructureV2OutputArgs, opts?: InvokeOptions): Output<GetInfrastructureV2Result>
    def get_infrastructure_v2(environment_id: Optional[str] = None,
                              image_registries: Optional[Sequence[GetInfrastructureV2ImageRegistry]] = None,
                              infra_id: Optional[str] = None,
                              mtls: Optional[GetInfrastructureV2Mtls] = None,
                              org_id: Optional[str] = None,
                              project_id: Optional[str] = None,
                              proxy: Optional[GetInfrastructureV2Proxy] = None,
                              tolerations: Optional[Sequence[GetInfrastructureV2Toleration]] = None,
                              volume_mounts: Optional[Sequence[GetInfrastructureV2VolumeMount]] = None,
                              volumes: Optional[Sequence[GetInfrastructureV2Volume]] = None,
                              opts: Optional[InvokeOptions] = None) -> GetInfrastructureV2Result
    def get_infrastructure_v2_output(environment_id: Optional[pulumi.Input[str]] = None,
                              image_registries: Optional[pulumi.Input[Sequence[pulumi.Input[GetInfrastructureV2ImageRegistryArgs]]]] = None,
                              infra_id: Optional[pulumi.Input[str]] = None,
                              mtls: Optional[pulumi.Input[GetInfrastructureV2MtlsArgs]] = None,
                              org_id: Optional[pulumi.Input[str]] = None,
                              project_id: Optional[pulumi.Input[str]] = None,
                              proxy: Optional[pulumi.Input[GetInfrastructureV2ProxyArgs]] = None,
                              tolerations: Optional[pulumi.Input[Sequence[pulumi.Input[GetInfrastructureV2TolerationArgs]]]] = None,
                              volume_mounts: Optional[pulumi.Input[Sequence[pulumi.Input[GetInfrastructureV2VolumeMountArgs]]]] = None,
                              volumes: Optional[pulumi.Input[Sequence[pulumi.Input[GetInfrastructureV2VolumeArgs]]]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetInfrastructureV2Result]
    func LookupInfrastructureV2(ctx *Context, args *LookupInfrastructureV2Args, opts ...InvokeOption) (*LookupInfrastructureV2Result, error)
    func LookupInfrastructureV2Output(ctx *Context, args *LookupInfrastructureV2OutputArgs, opts ...InvokeOption) LookupInfrastructureV2ResultOutput

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

    public static class GetInfrastructureV2 
    {
        public static Task<GetInfrastructureV2Result> InvokeAsync(GetInfrastructureV2Args args, InvokeOptions? opts = null)
        public static Output<GetInfrastructureV2Result> Invoke(GetInfrastructureV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInfrastructureV2Result> getInfrastructureV2(GetInfrastructureV2Args args, InvokeOptions options)
    public static Output<GetInfrastructureV2Result> getInfrastructureV2(GetInfrastructureV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: harness:chaos/getInfrastructureV2:getInfrastructureV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EnvironmentId string
    The ID of the environment.
    InfraId string
    The ID of the infrastructure.
    OrgId string
    The ID of the organization.
    ProjectId string
    The ID of the project.
    ImageRegistries List<GetInfrastructureV2ImageRegistry>
    Configuration for the container image registry.
    Mtls GetInfrastructureV2Mtls
    mTLS configuration for the infrastructure.
    Proxy GetInfrastructureV2Proxy
    Proxy configuration for the infrastructure.
    Tolerations List<GetInfrastructureV2Toleration>
    If specified, the pod's tolerations.
    VolumeMounts List<GetInfrastructureV2VolumeMount>
    Volume mounts for the container.
    Volumes List<GetInfrastructureV2Volume>
    Volumes to be created in the infrastructure.
    EnvironmentId string
    The ID of the environment.
    InfraId string
    The ID of the infrastructure.
    OrgId string
    The ID of the organization.
    ProjectId string
    The ID of the project.
    ImageRegistries []GetInfrastructureV2ImageRegistry
    Configuration for the container image registry.
    Mtls GetInfrastructureV2Mtls
    mTLS configuration for the infrastructure.
    Proxy GetInfrastructureV2Proxy
    Proxy configuration for the infrastructure.
    Tolerations []GetInfrastructureV2Toleration
    If specified, the pod's tolerations.
    VolumeMounts []GetInfrastructureV2VolumeMount
    Volume mounts for the container.
    Volumes []GetInfrastructureV2Volume
    Volumes to be created in the infrastructure.
    environmentId String
    The ID of the environment.
    infraId String
    The ID of the infrastructure.
    orgId String
    The ID of the organization.
    projectId String
    The ID of the project.
    imageRegistries List<GetInfrastructureV2ImageRegistry>
    Configuration for the container image registry.
    mtls GetInfrastructureV2Mtls
    mTLS configuration for the infrastructure.
    proxy GetInfrastructureV2Proxy
    Proxy configuration for the infrastructure.
    tolerations List<GetInfrastructureV2Toleration>
    If specified, the pod's tolerations.
    volumeMounts List<GetInfrastructureV2VolumeMount>
    Volume mounts for the container.
    volumes List<GetInfrastructureV2Volume>
    Volumes to be created in the infrastructure.
    environmentId string
    The ID of the environment.
    infraId string
    The ID of the infrastructure.
    orgId string
    The ID of the organization.
    projectId string
    The ID of the project.
    imageRegistries GetInfrastructureV2ImageRegistry[]
    Configuration for the container image registry.
    mtls GetInfrastructureV2Mtls
    mTLS configuration for the infrastructure.
    proxy GetInfrastructureV2Proxy
    Proxy configuration for the infrastructure.
    tolerations GetInfrastructureV2Toleration[]
    If specified, the pod's tolerations.
    volumeMounts GetInfrastructureV2VolumeMount[]
    Volume mounts for the container.
    volumes GetInfrastructureV2Volume[]
    Volumes to be created in the infrastructure.
    environment_id str
    The ID of the environment.
    infra_id str
    The ID of the infrastructure.
    org_id str
    The ID of the organization.
    project_id str
    The ID of the project.
    image_registries Sequence[GetInfrastructureV2ImageRegistry]
    Configuration for the container image registry.
    mtls GetInfrastructureV2Mtls
    mTLS configuration for the infrastructure.
    proxy GetInfrastructureV2Proxy
    Proxy configuration for the infrastructure.
    tolerations Sequence[GetInfrastructureV2Toleration]
    If specified, the pod's tolerations.
    volume_mounts Sequence[GetInfrastructureV2VolumeMount]
    Volume mounts for the container.
    volumes Sequence[GetInfrastructureV2Volume]
    Volumes to be created in the infrastructure.
    environmentId String
    The ID of the environment.
    infraId String
    The ID of the infrastructure.
    orgId String
    The ID of the organization.
    projectId String
    The ID of the project.
    imageRegistries List<Property Map>
    Configuration for the container image registry.
    mtls Property Map
    mTLS configuration for the infrastructure.
    proxy Property Map
    Proxy configuration for the infrastructure.
    tolerations List<Property Map>
    If specified, the pod's tolerations.
    volumeMounts List<Property Map>
    Volume mounts for the container.
    volumes List<Property Map>
    Volumes to be created in the infrastructure.

    getInfrastructureV2 Result

    The following output properties are available:

    Annotation Dictionary<string, string>
    Containers string
    List of containers in the infrastructure.
    CreatedAt string
    Created at of the infrastructure.
    CreatedBy string
    Created by of the infrastructure.
    Description string
    Description of the infrastructure.
    EnvironmentId string
    The ID of the environment.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Identifier of the infrastructure.
    Identity string
    Identity of the infrastructure.
    ImageRegistries List<GetInfrastructureV2ImageRegistry>
    Configuration for the container image registry.
    InfraId string
    The ID of the infrastructure.
    InfraScope string
    Scope of the infrastructure.
    InfraType string
    Type of the infrastructure.
    InsecureSkipVerify bool
    IsAiEnabled bool
    IsChaosEnabled bool
    Label Dictionary<string, string>
    LastHeartbeat int
    Last heartbeat of the infrastructure.
    LastWorkflowTimestamp string
    Last workflow timestamp of the infrastructure.
    Name string
    Name of the infrastructure.
    Namespace string
    Kubernetes namespace for the infrastructure.
    NoOfSchedules int
    Number of schedules for the infrastructure.
    NoOfWorkflows int
    Number of workflows for the infrastructure.
    NodeSelector Dictionary<string, string>
    OrgId string
    The ID of the organization.
    ProjectId string
    The ID of the project.
    RunAsGroup int
    RunAsUser int
    ServiceAccount string
    Service account used by the infrastructure.
    Status string
    Status of the infrastructure.
    Tags List<string>
    Tags of the infrastructure.
    UpdateStatus string
    Update status of the infrastructure.
    UpdatedAt string
    Updated at of the infrastructure.
    UpdatedBy string
    Updated by of the infrastructure.
    Mtls GetInfrastructureV2Mtls
    mTLS configuration for the infrastructure.
    Proxy GetInfrastructureV2Proxy
    Proxy configuration for the infrastructure.
    Tolerations List<GetInfrastructureV2Toleration>
    If specified, the pod's tolerations.
    VolumeMounts List<GetInfrastructureV2VolumeMount>
    Volume mounts for the container.
    Volumes List<GetInfrastructureV2Volume>
    Volumes to be created in the infrastructure.
    Annotation map[string]string
    Containers string
    List of containers in the infrastructure.
    CreatedAt string
    Created at of the infrastructure.
    CreatedBy string
    Created by of the infrastructure.
    Description string
    Description of the infrastructure.
    EnvironmentId string
    The ID of the environment.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Identifier of the infrastructure.
    Identity string
    Identity of the infrastructure.
    ImageRegistries []GetInfrastructureV2ImageRegistry
    Configuration for the container image registry.
    InfraId string
    The ID of the infrastructure.
    InfraScope string
    Scope of the infrastructure.
    InfraType string
    Type of the infrastructure.
    InsecureSkipVerify bool
    IsAiEnabled bool
    IsChaosEnabled bool
    Label map[string]string
    LastHeartbeat int
    Last heartbeat of the infrastructure.
    LastWorkflowTimestamp string
    Last workflow timestamp of the infrastructure.
    Name string
    Name of the infrastructure.
    Namespace string
    Kubernetes namespace for the infrastructure.
    NoOfSchedules int
    Number of schedules for the infrastructure.
    NoOfWorkflows int
    Number of workflows for the infrastructure.
    NodeSelector map[string]string
    OrgId string
    The ID of the organization.
    ProjectId string
    The ID of the project.
    RunAsGroup int
    RunAsUser int
    ServiceAccount string
    Service account used by the infrastructure.
    Status string
    Status of the infrastructure.
    Tags []string
    Tags of the infrastructure.
    UpdateStatus string
    Update status of the infrastructure.
    UpdatedAt string
    Updated at of the infrastructure.
    UpdatedBy string
    Updated by of the infrastructure.
    Mtls GetInfrastructureV2Mtls
    mTLS configuration for the infrastructure.
    Proxy GetInfrastructureV2Proxy
    Proxy configuration for the infrastructure.
    Tolerations []GetInfrastructureV2Toleration
    If specified, the pod's tolerations.
    VolumeMounts []GetInfrastructureV2VolumeMount
    Volume mounts for the container.
    Volumes []GetInfrastructureV2Volume
    Volumes to be created in the infrastructure.
    annotation Map<String,String>
    containers String
    List of containers in the infrastructure.
    createdAt String
    Created at of the infrastructure.
    createdBy String
    Created by of the infrastructure.
    description String
    Description of the infrastructure.
    environmentId String
    The ID of the environment.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Identifier of the infrastructure.
    identity String
    Identity of the infrastructure.
    imageRegistries List<GetInfrastructureV2ImageRegistry>
    Configuration for the container image registry.
    infraId String
    The ID of the infrastructure.
    infraScope String
    Scope of the infrastructure.
    infraType String
    Type of the infrastructure.
    insecureSkipVerify Boolean
    isAiEnabled Boolean
    isChaosEnabled Boolean
    label Map<String,String>
    lastHeartbeat Integer
    Last heartbeat of the infrastructure.
    lastWorkflowTimestamp String
    Last workflow timestamp of the infrastructure.
    name String
    Name of the infrastructure.
    namespace String
    Kubernetes namespace for the infrastructure.
    noOfSchedules Integer
    Number of schedules for the infrastructure.
    noOfWorkflows Integer
    Number of workflows for the infrastructure.
    nodeSelector Map<String,String>
    orgId String
    The ID of the organization.
    projectId String
    The ID of the project.
    runAsGroup Integer
    runAsUser Integer
    serviceAccount String
    Service account used by the infrastructure.
    status String
    Status of the infrastructure.
    tags List<String>
    Tags of the infrastructure.
    updateStatus String
    Update status of the infrastructure.
    updatedAt String
    Updated at of the infrastructure.
    updatedBy String
    Updated by of the infrastructure.
    mtls GetInfrastructureV2Mtls
    mTLS configuration for the infrastructure.
    proxy GetInfrastructureV2Proxy
    Proxy configuration for the infrastructure.
    tolerations List<GetInfrastructureV2Toleration>
    If specified, the pod's tolerations.
    volumeMounts List<GetInfrastructureV2VolumeMount>
    Volume mounts for the container.
    volumes List<GetInfrastructureV2Volume>
    Volumes to be created in the infrastructure.
    annotation {[key: string]: string}
    containers string
    List of containers in the infrastructure.
    createdAt string
    Created at of the infrastructure.
    createdBy string
    Created by of the infrastructure.
    description string
    Description of the infrastructure.
    environmentId string
    The ID of the environment.
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    Identifier of the infrastructure.
    identity string
    Identity of the infrastructure.
    imageRegistries GetInfrastructureV2ImageRegistry[]
    Configuration for the container image registry.
    infraId string
    The ID of the infrastructure.
    infraScope string
    Scope of the infrastructure.
    infraType string
    Type of the infrastructure.
    insecureSkipVerify boolean
    isAiEnabled boolean
    isChaosEnabled boolean
    label {[key: string]: string}
    lastHeartbeat number
    Last heartbeat of the infrastructure.
    lastWorkflowTimestamp string
    Last workflow timestamp of the infrastructure.
    name string
    Name of the infrastructure.
    namespace string
    Kubernetes namespace for the infrastructure.
    noOfSchedules number
    Number of schedules for the infrastructure.
    noOfWorkflows number
    Number of workflows for the infrastructure.
    nodeSelector {[key: string]: string}
    orgId string
    The ID of the organization.
    projectId string
    The ID of the project.
    runAsGroup number
    runAsUser number
    serviceAccount string
    Service account used by the infrastructure.
    status string
    Status of the infrastructure.
    tags string[]
    Tags of the infrastructure.
    updateStatus string
    Update status of the infrastructure.
    updatedAt string
    Updated at of the infrastructure.
    updatedBy string
    Updated by of the infrastructure.
    mtls GetInfrastructureV2Mtls
    mTLS configuration for the infrastructure.
    proxy GetInfrastructureV2Proxy
    Proxy configuration for the infrastructure.
    tolerations GetInfrastructureV2Toleration[]
    If specified, the pod's tolerations.
    volumeMounts GetInfrastructureV2VolumeMount[]
    Volume mounts for the container.
    volumes GetInfrastructureV2Volume[]
    Volumes to be created in the infrastructure.
    annotation Mapping[str, str]
    containers str
    List of containers in the infrastructure.
    created_at str
    Created at of the infrastructure.
    created_by str
    Created by of the infrastructure.
    description str
    Description of the infrastructure.
    environment_id str
    The ID of the environment.
    id str
    The provider-assigned unique ID for this managed resource.
    identifier str
    Identifier of the infrastructure.
    identity str
    Identity of the infrastructure.
    image_registries Sequence[GetInfrastructureV2ImageRegistry]
    Configuration for the container image registry.
    infra_id str
    The ID of the infrastructure.
    infra_scope str
    Scope of the infrastructure.
    infra_type str
    Type of the infrastructure.
    insecure_skip_verify bool
    is_ai_enabled bool
    is_chaos_enabled bool
    label Mapping[str, str]
    last_heartbeat int
    Last heartbeat of the infrastructure.
    last_workflow_timestamp str
    Last workflow timestamp of the infrastructure.
    name str
    Name of the infrastructure.
    namespace str
    Kubernetes namespace for the infrastructure.
    no_of_schedules int
    Number of schedules for the infrastructure.
    no_of_workflows int
    Number of workflows for the infrastructure.
    node_selector Mapping[str, str]
    org_id str
    The ID of the organization.
    project_id str
    The ID of the project.
    run_as_group int
    run_as_user int
    service_account str
    Service account used by the infrastructure.
    status str
    Status of the infrastructure.
    tags Sequence[str]
    Tags of the infrastructure.
    update_status str
    Update status of the infrastructure.
    updated_at str
    Updated at of the infrastructure.
    updated_by str
    Updated by of the infrastructure.
    mtls GetInfrastructureV2Mtls
    mTLS configuration for the infrastructure.
    proxy GetInfrastructureV2Proxy
    Proxy configuration for the infrastructure.
    tolerations Sequence[GetInfrastructureV2Toleration]
    If specified, the pod's tolerations.
    volume_mounts Sequence[GetInfrastructureV2VolumeMount]
    Volume mounts for the container.
    volumes Sequence[GetInfrastructureV2Volume]
    Volumes to be created in the infrastructure.
    annotation Map<String>
    containers String
    List of containers in the infrastructure.
    createdAt String
    Created at of the infrastructure.
    createdBy String
    Created by of the infrastructure.
    description String
    Description of the infrastructure.
    environmentId String
    The ID of the environment.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Identifier of the infrastructure.
    identity String
    Identity of the infrastructure.
    imageRegistries List<Property Map>
    Configuration for the container image registry.
    infraId String
    The ID of the infrastructure.
    infraScope String
    Scope of the infrastructure.
    infraType String
    Type of the infrastructure.
    insecureSkipVerify Boolean
    isAiEnabled Boolean
    isChaosEnabled Boolean
    label Map<String>
    lastHeartbeat Number
    Last heartbeat of the infrastructure.
    lastWorkflowTimestamp String
    Last workflow timestamp of the infrastructure.
    name String
    Name of the infrastructure.
    namespace String
    Kubernetes namespace for the infrastructure.
    noOfSchedules Number
    Number of schedules for the infrastructure.
    noOfWorkflows Number
    Number of workflows for the infrastructure.
    nodeSelector Map<String>
    orgId String
    The ID of the organization.
    projectId String
    The ID of the project.
    runAsGroup Number
    runAsUser Number
    serviceAccount String
    Service account used by the infrastructure.
    status String
    Status of the infrastructure.
    tags List<String>
    Tags of the infrastructure.
    updateStatus String
    Update status of the infrastructure.
    updatedAt String
    Updated at of the infrastructure.
    updatedBy String
    Updated by of the infrastructure.
    mtls Property Map
    mTLS configuration for the infrastructure.
    proxy Property Map
    Proxy configuration for the infrastructure.
    tolerations List<Property Map>
    If specified, the pod's tolerations.
    volumeMounts List<Property Map>
    Volume mounts for the container.
    volumes List<Property Map>
    Volumes to be created in the infrastructure.

    Supporting Types

    GetInfrastructureV2ImageRegistry

    CreatedAt string
    Timestamp when the registry was created.
    CustomImages List<GetInfrastructureV2ImageRegistryCustomImage>
    Custom image configurations. Required when usecustomimages is true.
    Identifiers List<GetInfrastructureV2ImageRegistryIdentifier>
    Scoped identifiers for the registry.
    InfraId string
    ID of the infrastructure.
    IsDefault bool
    Whether this is the default registry.
    IsOverrideAllowed bool
    Whether override is allowed for this registry.
    IsPrivate bool
    Whether the registry is private.
    RegistryAccount string
    The account name for the container registry.
    RegistryServer string
    The container image registry server URL (e.g., docker.io, gcr.io).
    UpdatedAt string
    Timestamp when the registry was last updated.
    UseCustomImages bool
    Whether to use custom images instead of default ones.
    SecretName string
    Name of the Kubernetes secret containing registry credentials.
    CreatedAt string
    Timestamp when the registry was created.
    CustomImages []GetInfrastructureV2ImageRegistryCustomImage
    Custom image configurations. Required when usecustomimages is true.
    Identifiers []GetInfrastructureV2ImageRegistryIdentifier
    Scoped identifiers for the registry.
    InfraId string
    ID of the infrastructure.
    IsDefault bool
    Whether this is the default registry.
    IsOverrideAllowed bool
    Whether override is allowed for this registry.
    IsPrivate bool
    Whether the registry is private.
    RegistryAccount string
    The account name for the container registry.
    RegistryServer string
    The container image registry server URL (e.g., docker.io, gcr.io).
    UpdatedAt string
    Timestamp when the registry was last updated.
    UseCustomImages bool
    Whether to use custom images instead of default ones.
    SecretName string
    Name of the Kubernetes secret containing registry credentials.
    createdAt String
    Timestamp when the registry was created.
    customImages List<GetInfrastructureV2ImageRegistryCustomImage>
    Custom image configurations. Required when usecustomimages is true.
    identifiers List<GetInfrastructureV2ImageRegistryIdentifier>
    Scoped identifiers for the registry.
    infraId String
    ID of the infrastructure.
    isDefault Boolean
    Whether this is the default registry.
    isOverrideAllowed Boolean
    Whether override is allowed for this registry.
    isPrivate Boolean
    Whether the registry is private.
    registryAccount String
    The account name for the container registry.
    registryServer String
    The container image registry server URL (e.g., docker.io, gcr.io).
    updatedAt String
    Timestamp when the registry was last updated.
    useCustomImages Boolean
    Whether to use custom images instead of default ones.
    secretName String
    Name of the Kubernetes secret containing registry credentials.
    createdAt string
    Timestamp when the registry was created.
    customImages GetInfrastructureV2ImageRegistryCustomImage[]
    Custom image configurations. Required when usecustomimages is true.
    identifiers GetInfrastructureV2ImageRegistryIdentifier[]
    Scoped identifiers for the registry.
    infraId string
    ID of the infrastructure.
    isDefault boolean
    Whether this is the default registry.
    isOverrideAllowed boolean
    Whether override is allowed for this registry.
    isPrivate boolean
    Whether the registry is private.
    registryAccount string
    The account name for the container registry.
    registryServer string
    The container image registry server URL (e.g., docker.io, gcr.io).
    updatedAt string
    Timestamp when the registry was last updated.
    useCustomImages boolean
    Whether to use custom images instead of default ones.
    secretName string
    Name of the Kubernetes secret containing registry credentials.
    created_at str
    Timestamp when the registry was created.
    custom_images Sequence[GetInfrastructureV2ImageRegistryCustomImage]
    Custom image configurations. Required when usecustomimages is true.
    identifiers Sequence[GetInfrastructureV2ImageRegistryIdentifier]
    Scoped identifiers for the registry.
    infra_id str
    ID of the infrastructure.
    is_default bool
    Whether this is the default registry.
    is_override_allowed bool
    Whether override is allowed for this registry.
    is_private bool
    Whether the registry is private.
    registry_account str
    The account name for the container registry.
    registry_server str
    The container image registry server URL (e.g., docker.io, gcr.io).
    updated_at str
    Timestamp when the registry was last updated.
    use_custom_images bool
    Whether to use custom images instead of default ones.
    secret_name str
    Name of the Kubernetes secret containing registry credentials.
    createdAt String
    Timestamp when the registry was created.
    customImages List<Property Map>
    Custom image configurations. Required when usecustomimages is true.
    identifiers List<Property Map>
    Scoped identifiers for the registry.
    infraId String
    ID of the infrastructure.
    isDefault Boolean
    Whether this is the default registry.
    isOverrideAllowed Boolean
    Whether override is allowed for this registry.
    isPrivate Boolean
    Whether the registry is private.
    registryAccount String
    The account name for the container registry.
    registryServer String
    The container image registry server URL (e.g., docker.io, gcr.io).
    updatedAt String
    Timestamp when the registry was last updated.
    useCustomImages Boolean
    Whether to use custom images instead of default ones.
    secretName String
    Name of the Kubernetes secret containing registry credentials.

    GetInfrastructureV2ImageRegistryCustomImage

    Ddcr string
    Custom image for ddcr.
    DdcrFault string
    Custom image for ddcr-fault.
    DdcrLib string
    Custom image for ddcr-lib.
    LogWatcher string
    Custom image for log-watcher.
    Ddcr string
    Custom image for ddcr.
    DdcrFault string
    Custom image for ddcr-fault.
    DdcrLib string
    Custom image for ddcr-lib.
    LogWatcher string
    Custom image for log-watcher.
    ddcr String
    Custom image for ddcr.
    ddcrFault String
    Custom image for ddcr-fault.
    ddcrLib String
    Custom image for ddcr-lib.
    logWatcher String
    Custom image for log-watcher.
    ddcr string
    Custom image for ddcr.
    ddcrFault string
    Custom image for ddcr-fault.
    ddcrLib string
    Custom image for ddcr-lib.
    logWatcher string
    Custom image for log-watcher.
    ddcr str
    Custom image for ddcr.
    ddcr_fault str
    Custom image for ddcr-fault.
    ddcr_lib str
    Custom image for ddcr-lib.
    log_watcher str
    Custom image for log-watcher.
    ddcr String
    Custom image for ddcr.
    ddcrFault String
    Custom image for ddcr-fault.
    ddcrLib String
    Custom image for ddcr-lib.
    logWatcher String
    Custom image for log-watcher.

    GetInfrastructureV2ImageRegistryIdentifier

    AccountIdentifier string
    Harness account identifier.
    OrgIdentifier string
    Harness organization identifier.
    ProjectIdentifier string
    Harness project identifier.
    AccountIdentifier string
    Harness account identifier.
    OrgIdentifier string
    Harness organization identifier.
    ProjectIdentifier string
    Harness project identifier.
    accountIdentifier String
    Harness account identifier.
    orgIdentifier String
    Harness organization identifier.
    projectIdentifier String
    Harness project identifier.
    accountIdentifier string
    Harness account identifier.
    orgIdentifier string
    Harness organization identifier.
    projectIdentifier string
    Harness project identifier.
    account_identifier str
    Harness account identifier.
    org_identifier str
    Harness organization identifier.
    project_identifier str
    Harness project identifier.
    accountIdentifier String
    Harness account identifier.
    orgIdentifier String
    Harness organization identifier.
    projectIdentifier String
    Harness project identifier.

    GetInfrastructureV2Mtls

    CertPath string
    Path to the certificate file for mTLS
    KeyPath string
    Path to the private key file for mTLS
    SecretName string
    Name of the Kubernetes secret containing mTLS certificates
    Url string
    URL for the mTLS endpoint
    CertPath string
    Path to the certificate file for mTLS
    KeyPath string
    Path to the private key file for mTLS
    SecretName string
    Name of the Kubernetes secret containing mTLS certificates
    Url string
    URL for the mTLS endpoint
    certPath String
    Path to the certificate file for mTLS
    keyPath String
    Path to the private key file for mTLS
    secretName String
    Name of the Kubernetes secret containing mTLS certificates
    url String
    URL for the mTLS endpoint
    certPath string
    Path to the certificate file for mTLS
    keyPath string
    Path to the private key file for mTLS
    secretName string
    Name of the Kubernetes secret containing mTLS certificates
    url string
    URL for the mTLS endpoint
    cert_path str
    Path to the certificate file for mTLS
    key_path str
    Path to the private key file for mTLS
    secret_name str
    Name of the Kubernetes secret containing mTLS certificates
    url str
    URL for the mTLS endpoint
    certPath String
    Path to the certificate file for mTLS
    keyPath String
    Path to the private key file for mTLS
    secretName String
    Name of the Kubernetes secret containing mTLS certificates
    url String
    URL for the mTLS endpoint

    GetInfrastructureV2Proxy

    Url string
    Proxy URL.
    HttpProxy string
    HTTP proxy URL.
    HttpsProxy string
    HTTPS proxy URL.
    NoProxy string
    List of hosts that should not use proxy.
    Url string
    Proxy URL.
    HttpProxy string
    HTTP proxy URL.
    HttpsProxy string
    HTTPS proxy URL.
    NoProxy string
    List of hosts that should not use proxy.
    url String
    Proxy URL.
    httpProxy String
    HTTP proxy URL.
    httpsProxy String
    HTTPS proxy URL.
    noProxy String
    List of hosts that should not use proxy.
    url string
    Proxy URL.
    httpProxy string
    HTTP proxy URL.
    httpsProxy string
    HTTPS proxy URL.
    noProxy string
    List of hosts that should not use proxy.
    url str
    Proxy URL.
    http_proxy str
    HTTP proxy URL.
    https_proxy str
    HTTPS proxy URL.
    no_proxy str
    List of hosts that should not use proxy.
    url String
    Proxy URL.
    httpProxy String
    HTTP proxy URL.
    httpsProxy String
    HTTPS proxy URL.
    noProxy String
    List of hosts that should not use proxy.

    GetInfrastructureV2Toleration

    Effect string
    Effect indicates the taint effect to match. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
    Key string
    Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists.
    Operator string
    Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal.
    TolerationSeconds int
    TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.
    Value string
    Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.
    Effect string
    Effect indicates the taint effect to match. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
    Key string
    Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists.
    Operator string
    Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal.
    TolerationSeconds int
    TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.
    Value string
    Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.
    effect String
    Effect indicates the taint effect to match. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
    key String
    Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists.
    operator String
    Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal.
    tolerationSeconds Integer
    TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.
    value String
    Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.
    effect string
    Effect indicates the taint effect to match. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
    key string
    Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists.
    operator string
    Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal.
    tolerationSeconds number
    TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.
    value string
    Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.
    effect str
    Effect indicates the taint effect to match. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
    key str
    Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists.
    operator str
    Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal.
    toleration_seconds int
    TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.
    value str
    Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.
    effect String
    Effect indicates the taint effect to match. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
    key String
    Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists.
    operator String
    Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal.
    tolerationSeconds Number
    TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.
    value String
    Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.

    GetInfrastructureV2Volume

    Name string
    Name of the volume. Must be a DNS_LABEL and unique within the pod.
    SizeLimit string
    Size limit of the volume. Example: '10Gi', '100Mi'
    Name string
    Name of the volume. Must be a DNS_LABEL and unique within the pod.
    SizeLimit string
    Size limit of the volume. Example: '10Gi', '100Mi'
    name String
    Name of the volume. Must be a DNS_LABEL and unique within the pod.
    sizeLimit String
    Size limit of the volume. Example: '10Gi', '100Mi'
    name string
    Name of the volume. Must be a DNS_LABEL and unique within the pod.
    sizeLimit string
    Size limit of the volume. Example: '10Gi', '100Mi'
    name str
    Name of the volume. Must be a DNS_LABEL and unique within the pod.
    size_limit str
    Size limit of the volume. Example: '10Gi', '100Mi'
    name String
    Name of the volume. Must be a DNS_LABEL and unique within the pod.
    sizeLimit String
    Size limit of the volume. Example: '10Gi', '100Mi'

    GetInfrastructureV2VolumeMount

    MountPath string
    Path within the container at which the volume should be mounted. Must not contain ':'.
    Name string
    This must match the Name of a Volume.
    MountPropagation string
    Determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used.
    ReadOnly bool
    Mounted read-only if true, read-write otherwise.
    SubPath string
    Path within the volume from which the container's volume should be mounted. Mutually exclusive with subpathexpr.
    SubPathExpr string
    Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to subpath but environment variable references $(VARNAME) are expanded using the container's environment. Mutually exclusive with sub_path.
    MountPath string
    Path within the container at which the volume should be mounted. Must not contain ':'.
    Name string
    This must match the Name of a Volume.
    MountPropagation string
    Determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used.
    ReadOnly bool
    Mounted read-only if true, read-write otherwise.
    SubPath string
    Path within the volume from which the container's volume should be mounted. Mutually exclusive with subpathexpr.
    SubPathExpr string
    Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to subpath but environment variable references $(VARNAME) are expanded using the container's environment. Mutually exclusive with sub_path.
    mountPath String
    Path within the container at which the volume should be mounted. Must not contain ':'.
    name String
    This must match the Name of a Volume.
    mountPropagation String
    Determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used.
    readOnly Boolean
    Mounted read-only if true, read-write otherwise.
    subPath String
    Path within the volume from which the container's volume should be mounted. Mutually exclusive with subpathexpr.
    subPathExpr String
    Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to subpath but environment variable references $(VARNAME) are expanded using the container's environment. Mutually exclusive with sub_path.
    mountPath string
    Path within the container at which the volume should be mounted. Must not contain ':'.
    name string
    This must match the Name of a Volume.
    mountPropagation string
    Determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used.
    readOnly boolean
    Mounted read-only if true, read-write otherwise.
    subPath string
    Path within the volume from which the container's volume should be mounted. Mutually exclusive with subpathexpr.
    subPathExpr string
    Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to subpath but environment variable references $(VARNAME) are expanded using the container's environment. Mutually exclusive with sub_path.
    mount_path str
    Path within the container at which the volume should be mounted. Must not contain ':'.
    name str
    This must match the Name of a Volume.
    mount_propagation str
    Determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used.
    read_only bool
    Mounted read-only if true, read-write otherwise.
    sub_path str
    Path within the volume from which the container's volume should be mounted. Mutually exclusive with subpathexpr.
    sub_path_expr str
    Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to subpath but environment variable references $(VARNAME) are expanded using the container's environment. Mutually exclusive with sub_path.
    mountPath String
    Path within the container at which the volume should be mounted. Must not contain ':'.
    name String
    This must match the Name of a Volume.
    mountPropagation String
    Determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used.
    readOnly Boolean
    Mounted read-only if true, read-write otherwise.
    subPath String
    Path within the volume from which the container's volume should be mounted. Mutually exclusive with subpathexpr.
    subPathExpr String
    Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to subpath but environment variable references $(VARNAME) are expanded using the container's environment. Mutually exclusive with sub_path.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.8.4 published on Thursday, Sep 11, 2025 by Pulumi