1. Packages
  2. Packages
  3. Harness Provider
  4. API Docs
  5. chaos
  6. getActionTemplate
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 reading Harness Chaos Action Templates.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const byIdentity = harness.chaos.getActionTemplate({
        orgId: "my_org",
        projectId: "my_project",
        hubIdentity: "my-chaos-hub",
        identity: "delay-action-template",
    });
    export const templateId = byIdentity.then(byIdentity => byIdentity.id);
    
    import pulumi
    import pulumi_harness as harness
    
    by_identity = harness.chaos.get_action_template(org_id="my_org",
        project_id="my_project",
        hub_identity="my-chaos-hub",
        identity="delay-action-template")
    pulumi.export("templateId", by_identity.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/chaos"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		byIdentity, err := chaos.LookupActionTemplate(ctx, &chaos.LookupActionTemplateArgs{
    			OrgId:       pulumi.StringRef("my_org"),
    			ProjectId:   pulumi.StringRef("my_project"),
    			HubIdentity: "my-chaos-hub",
    			Identity:    pulumi.StringRef("delay-action-template"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("templateId", byIdentity.Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var byIdentity = Harness.Chaos.GetActionTemplate.Invoke(new()
        {
            OrgId = "my_org",
            ProjectId = "my_project",
            HubIdentity = "my-chaos-hub",
            Identity = "delay-action-template",
        });
    
        return new Dictionary<string, object?>
        {
            ["templateId"] = byIdentity.Apply(getActionTemplateResult => getActionTemplateResult.Id),
        };
    });
    
    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.GetActionTemplateArgs;
    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 byIdentity = ChaosFunctions.getActionTemplate(GetActionTemplateArgs.builder()
                .orgId("my_org")
                .projectId("my_project")
                .hubIdentity("my-chaos-hub")
                .identity("delay-action-template")
                .build());
    
            ctx.export("templateId", byIdentity.id());
        }
    }
    
    variables:
      byIdentity:
        fn::invoke:
          function: harness:chaos:getActionTemplate
          arguments:
            orgId: my_org
            projectId: my_project
            hubIdentity: my-chaos-hub
            identity: delay-action-template
    outputs:
      templateId: ${byIdentity.id}
    

    Using getActionTemplate

    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 getActionTemplate(args: GetActionTemplateArgs, opts?: InvokeOptions): Promise<GetActionTemplateResult>
    function getActionTemplateOutput(args: GetActionTemplateOutputArgs, opts?: InvokeOptions): Output<GetActionTemplateResult>
    def get_action_template(container_action: Optional[GetActionTemplateContainerAction] = None,
                            custom_script_action: Optional[GetActionTemplateCustomScriptAction] = None,
                            delay_action: Optional[GetActionTemplateDelayAction] = None,
                            description: Optional[str] = None,
                            hub_identity: Optional[str] = None,
                            identity: Optional[str] = None,
                            infrastructure_type: Optional[str] = None,
                            name: Optional[str] = None,
                            org_id: Optional[str] = None,
                            project_id: Optional[str] = None,
                            run_properties: Optional[GetActionTemplateRunProperties] = None,
                            tags: Optional[Sequence[str]] = None,
                            type: Optional[str] = None,
                            variables: Optional[Sequence[GetActionTemplateVariable]] = None,
                            opts: Optional[InvokeOptions] = None) -> GetActionTemplateResult
    def get_action_template_output(container_action: Optional[pulumi.Input[GetActionTemplateContainerActionArgs]] = None,
                            custom_script_action: Optional[pulumi.Input[GetActionTemplateCustomScriptActionArgs]] = None,
                            delay_action: Optional[pulumi.Input[GetActionTemplateDelayActionArgs]] = None,
                            description: Optional[pulumi.Input[str]] = None,
                            hub_identity: Optional[pulumi.Input[str]] = None,
                            identity: Optional[pulumi.Input[str]] = None,
                            infrastructure_type: 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,
                            run_properties: Optional[pulumi.Input[GetActionTemplateRunPropertiesArgs]] = None,
                            tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                            type: Optional[pulumi.Input[str]] = None,
                            variables: Optional[pulumi.Input[Sequence[pulumi.Input[GetActionTemplateVariableArgs]]]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetActionTemplateResult]
    func LookupActionTemplate(ctx *Context, args *LookupActionTemplateArgs, opts ...InvokeOption) (*LookupActionTemplateResult, error)
    func LookupActionTemplateOutput(ctx *Context, args *LookupActionTemplateOutputArgs, opts ...InvokeOption) LookupActionTemplateResultOutput

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

    public static class GetActionTemplate 
    {
        public static Task<GetActionTemplateResult> InvokeAsync(GetActionTemplateArgs args, InvokeOptions? opts = null)
        public static Output<GetActionTemplateResult> Invoke(GetActionTemplateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetActionTemplateResult> getActionTemplate(GetActionTemplateArgs args, InvokeOptions options)
    public static Output<GetActionTemplateResult> getActionTemplate(GetActionTemplateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: harness:chaos/getActionTemplate:getActionTemplate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    HubIdentity string
    Identity of the chaos hub this action template belongs to.
    ContainerAction GetActionTemplateContainerAction
    Container action configuration. Required when type is 'container'.
    CustomScriptAction GetActionTemplateCustomScriptAction
    Custom script action configuration. Required when type is 'customScript'.
    DelayAction GetActionTemplateDelayAction
    Delay action configuration. Required when type is 'delay'.
    Description string
    Description of the action template.
    Identity string
    Unique identifier for the action template (immutable).
    InfrastructureType string
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    Name string
    Name of the action template.
    OrgId string
    Organization identifier.
    ProjectId string
    Project identifier.
    RunProperties GetActionTemplateRunProperties
    Run properties for the action template execution.
    Tags List<string>
    Tags to associate with the action template.
    Type string
    Type of the action template. Valid values: delay, customScript, container.
    Variables List<GetActionTemplateVariable>
    Template variables that can be used in the action.
    HubIdentity string
    Identity of the chaos hub this action template belongs to.
    ContainerAction GetActionTemplateContainerAction
    Container action configuration. Required when type is 'container'.
    CustomScriptAction GetActionTemplateCustomScriptAction
    Custom script action configuration. Required when type is 'customScript'.
    DelayAction GetActionTemplateDelayAction
    Delay action configuration. Required when type is 'delay'.
    Description string
    Description of the action template.
    Identity string
    Unique identifier for the action template (immutable).
    InfrastructureType string
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    Name string
    Name of the action template.
    OrgId string
    Organization identifier.
    ProjectId string
    Project identifier.
    RunProperties GetActionTemplateRunProperties
    Run properties for the action template execution.
    Tags []string
    Tags to associate with the action template.
    Type string
    Type of the action template. Valid values: delay, customScript, container.
    Variables []GetActionTemplateVariable
    Template variables that can be used in the action.
    hubIdentity String
    Identity of the chaos hub this action template belongs to.
    containerAction GetActionTemplateContainerAction
    Container action configuration. Required when type is 'container'.
    customScriptAction GetActionTemplateCustomScriptAction
    Custom script action configuration. Required when type is 'customScript'.
    delayAction GetActionTemplateDelayAction
    Delay action configuration. Required when type is 'delay'.
    description String
    Description of the action template.
    identity String
    Unique identifier for the action template (immutable).
    infrastructureType String
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    name String
    Name of the action template.
    orgId String
    Organization identifier.
    projectId String
    Project identifier.
    runProperties GetActionTemplateRunProperties
    Run properties for the action template execution.
    tags List<String>
    Tags to associate with the action template.
    type String
    Type of the action template. Valid values: delay, customScript, container.
    variables List<GetActionTemplateVariable>
    Template variables that can be used in the action.
    hubIdentity string
    Identity of the chaos hub this action template belongs to.
    containerAction GetActionTemplateContainerAction
    Container action configuration. Required when type is 'container'.
    customScriptAction GetActionTemplateCustomScriptAction
    Custom script action configuration. Required when type is 'customScript'.
    delayAction GetActionTemplateDelayAction
    Delay action configuration. Required when type is 'delay'.
    description string
    Description of the action template.
    identity string
    Unique identifier for the action template (immutable).
    infrastructureType string
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    name string
    Name of the action template.
    orgId string
    Organization identifier.
    projectId string
    Project identifier.
    runProperties GetActionTemplateRunProperties
    Run properties for the action template execution.
    tags string[]
    Tags to associate with the action template.
    type string
    Type of the action template. Valid values: delay, customScript, container.
    variables GetActionTemplateVariable[]
    Template variables that can be used in the action.
    hub_identity str
    Identity of the chaos hub this action template belongs to.
    container_action GetActionTemplateContainerAction
    Container action configuration. Required when type is 'container'.
    custom_script_action GetActionTemplateCustomScriptAction
    Custom script action configuration. Required when type is 'customScript'.
    delay_action GetActionTemplateDelayAction
    Delay action configuration. Required when type is 'delay'.
    description str
    Description of the action template.
    identity str
    Unique identifier for the action template (immutable).
    infrastructure_type str
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    name str
    Name of the action template.
    org_id str
    Organization identifier.
    project_id str
    Project identifier.
    run_properties GetActionTemplateRunProperties
    Run properties for the action template execution.
    tags Sequence[str]
    Tags to associate with the action template.
    type str
    Type of the action template. Valid values: delay, customScript, container.
    variables Sequence[GetActionTemplateVariable]
    Template variables that can be used in the action.
    hubIdentity String
    Identity of the chaos hub this action template belongs to.
    containerAction Property Map
    Container action configuration. Required when type is 'container'.
    customScriptAction Property Map
    Custom script action configuration. Required when type is 'customScript'.
    delayAction Property Map
    Delay action configuration. Required when type is 'delay'.
    description String
    Description of the action template.
    identity String
    Unique identifier for the action template (immutable).
    infrastructureType String
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    name String
    Name of the action template.
    orgId String
    Organization identifier.
    projectId String
    Project identifier.
    runProperties Property Map
    Run properties for the action template execution.
    tags List<String>
    Tags to associate with the action template.
    type String
    Type of the action template. Valid values: delay, customScript, container.
    variables List<Property Map>
    Template variables that can be used in the action.

    getActionTemplate Result

    The following output properties are available:

    AccountId string
    Account identifier.
    CreatedAt int
    Creation timestamp (Unix epoch).
    CreatedBy string
    User who created the action template.
    HubIdentity string
    Identity of the chaos hub this action template belongs to.
    Id string
    The provider-assigned unique ID for this managed resource.
    IdInternal string
    Internal ID of the action template.
    Identity string
    Unique identifier for the action template (immutable).
    IsDefault bool
    Whether this is the default version for predefined actions.
    IsEnterprise bool
    Whether this is an enterprise action template.
    IsRemoved bool
    Whether the action template has been removed.
    Name string
    Name of the action template.
    Revision int
    Revision number of the action template.
    Template string
    Template content/definition.
    Type string
    Type of the action template. Valid values: delay, customScript, container.
    UpdatedAt int
    Last update timestamp (Unix epoch).
    UpdatedBy string
    User who last updated the action template.
    ContainerAction GetActionTemplateContainerAction
    Container action configuration. Required when type is 'container'.
    CustomScriptAction GetActionTemplateCustomScriptAction
    Custom script action configuration. Required when type is 'customScript'.
    DelayAction GetActionTemplateDelayAction
    Delay action configuration. Required when type is 'delay'.
    Description string
    Description of the action template.
    InfrastructureType string
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    OrgId string
    Organization identifier.
    ProjectId string
    Project identifier.
    RunProperties GetActionTemplateRunProperties
    Run properties for the action template execution.
    Tags List<string>
    Tags to associate with the action template.
    Variables List<GetActionTemplateVariable>
    Template variables that can be used in the action.
    AccountId string
    Account identifier.
    CreatedAt int
    Creation timestamp (Unix epoch).
    CreatedBy string
    User who created the action template.
    HubIdentity string
    Identity of the chaos hub this action template belongs to.
    Id string
    The provider-assigned unique ID for this managed resource.
    IdInternal string
    Internal ID of the action template.
    Identity string
    Unique identifier for the action template (immutable).
    IsDefault bool
    Whether this is the default version for predefined actions.
    IsEnterprise bool
    Whether this is an enterprise action template.
    IsRemoved bool
    Whether the action template has been removed.
    Name string
    Name of the action template.
    Revision int
    Revision number of the action template.
    Template string
    Template content/definition.
    Type string
    Type of the action template. Valid values: delay, customScript, container.
    UpdatedAt int
    Last update timestamp (Unix epoch).
    UpdatedBy string
    User who last updated the action template.
    ContainerAction GetActionTemplateContainerAction
    Container action configuration. Required when type is 'container'.
    CustomScriptAction GetActionTemplateCustomScriptAction
    Custom script action configuration. Required when type is 'customScript'.
    DelayAction GetActionTemplateDelayAction
    Delay action configuration. Required when type is 'delay'.
    Description string
    Description of the action template.
    InfrastructureType string
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    OrgId string
    Organization identifier.
    ProjectId string
    Project identifier.
    RunProperties GetActionTemplateRunProperties
    Run properties for the action template execution.
    Tags []string
    Tags to associate with the action template.
    Variables []GetActionTemplateVariable
    Template variables that can be used in the action.
    accountId String
    Account identifier.
    createdAt Integer
    Creation timestamp (Unix epoch).
    createdBy String
    User who created the action template.
    hubIdentity String
    Identity of the chaos hub this action template belongs to.
    id String
    The provider-assigned unique ID for this managed resource.
    idInternal String
    Internal ID of the action template.
    identity String
    Unique identifier for the action template (immutable).
    isDefault Boolean
    Whether this is the default version for predefined actions.
    isEnterprise Boolean
    Whether this is an enterprise action template.
    isRemoved Boolean
    Whether the action template has been removed.
    name String
    Name of the action template.
    revision Integer
    Revision number of the action template.
    template String
    Template content/definition.
    type String
    Type of the action template. Valid values: delay, customScript, container.
    updatedAt Integer
    Last update timestamp (Unix epoch).
    updatedBy String
    User who last updated the action template.
    containerAction GetActionTemplateContainerAction
    Container action configuration. Required when type is 'container'.
    customScriptAction GetActionTemplateCustomScriptAction
    Custom script action configuration. Required when type is 'customScript'.
    delayAction GetActionTemplateDelayAction
    Delay action configuration. Required when type is 'delay'.
    description String
    Description of the action template.
    infrastructureType String
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    orgId String
    Organization identifier.
    projectId String
    Project identifier.
    runProperties GetActionTemplateRunProperties
    Run properties for the action template execution.
    tags List<String>
    Tags to associate with the action template.
    variables List<GetActionTemplateVariable>
    Template variables that can be used in the action.
    accountId string
    Account identifier.
    createdAt number
    Creation timestamp (Unix epoch).
    createdBy string
    User who created the action template.
    hubIdentity string
    Identity of the chaos hub this action template belongs to.
    id string
    The provider-assigned unique ID for this managed resource.
    idInternal string
    Internal ID of the action template.
    identity string
    Unique identifier for the action template (immutable).
    isDefault boolean
    Whether this is the default version for predefined actions.
    isEnterprise boolean
    Whether this is an enterprise action template.
    isRemoved boolean
    Whether the action template has been removed.
    name string
    Name of the action template.
    revision number
    Revision number of the action template.
    template string
    Template content/definition.
    type string
    Type of the action template. Valid values: delay, customScript, container.
    updatedAt number
    Last update timestamp (Unix epoch).
    updatedBy string
    User who last updated the action template.
    containerAction GetActionTemplateContainerAction
    Container action configuration. Required when type is 'container'.
    customScriptAction GetActionTemplateCustomScriptAction
    Custom script action configuration. Required when type is 'customScript'.
    delayAction GetActionTemplateDelayAction
    Delay action configuration. Required when type is 'delay'.
    description string
    Description of the action template.
    infrastructureType string
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    orgId string
    Organization identifier.
    projectId string
    Project identifier.
    runProperties GetActionTemplateRunProperties
    Run properties for the action template execution.
    tags string[]
    Tags to associate with the action template.
    variables GetActionTemplateVariable[]
    Template variables that can be used in the action.
    account_id str
    Account identifier.
    created_at int
    Creation timestamp (Unix epoch).
    created_by str
    User who created the action template.
    hub_identity str
    Identity of the chaos hub this action template belongs to.
    id str
    The provider-assigned unique ID for this managed resource.
    id_internal str
    Internal ID of the action template.
    identity str
    Unique identifier for the action template (immutable).
    is_default bool
    Whether this is the default version for predefined actions.
    is_enterprise bool
    Whether this is an enterprise action template.
    is_removed bool
    Whether the action template has been removed.
    name str
    Name of the action template.
    revision int
    Revision number of the action template.
    template str
    Template content/definition.
    type str
    Type of the action template. Valid values: delay, customScript, container.
    updated_at int
    Last update timestamp (Unix epoch).
    updated_by str
    User who last updated the action template.
    container_action GetActionTemplateContainerAction
    Container action configuration. Required when type is 'container'.
    custom_script_action GetActionTemplateCustomScriptAction
    Custom script action configuration. Required when type is 'customScript'.
    delay_action GetActionTemplateDelayAction
    Delay action configuration. Required when type is 'delay'.
    description str
    Description of the action template.
    infrastructure_type str
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    org_id str
    Organization identifier.
    project_id str
    Project identifier.
    run_properties GetActionTemplateRunProperties
    Run properties for the action template execution.
    tags Sequence[str]
    Tags to associate with the action template.
    variables Sequence[GetActionTemplateVariable]
    Template variables that can be used in the action.
    accountId String
    Account identifier.
    createdAt Number
    Creation timestamp (Unix epoch).
    createdBy String
    User who created the action template.
    hubIdentity String
    Identity of the chaos hub this action template belongs to.
    id String
    The provider-assigned unique ID for this managed resource.
    idInternal String
    Internal ID of the action template.
    identity String
    Unique identifier for the action template (immutable).
    isDefault Boolean
    Whether this is the default version for predefined actions.
    isEnterprise Boolean
    Whether this is an enterprise action template.
    isRemoved Boolean
    Whether the action template has been removed.
    name String
    Name of the action template.
    revision Number
    Revision number of the action template.
    template String
    Template content/definition.
    type String
    Type of the action template. Valid values: delay, customScript, container.
    updatedAt Number
    Last update timestamp (Unix epoch).
    updatedBy String
    User who last updated the action template.
    containerAction Property Map
    Container action configuration. Required when type is 'container'.
    customScriptAction Property Map
    Custom script action configuration. Required when type is 'customScript'.
    delayAction Property Map
    Delay action configuration. Required when type is 'delay'.
    description String
    Description of the action template.
    infrastructureType String
    Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>.
    orgId String
    Organization identifier.
    projectId String
    Project identifier.
    runProperties Property Map
    Run properties for the action template execution.
    tags List<String>
    Tags to associate with the action template.
    variables List<Property Map>
    Template variables that can be used in the action.

    Supporting Types

    GetActionTemplateContainerAction

    Image string
    Container image to use (e.g., 'busybox:latest').
    Annotations Dictionary<string, string>
    Annotations to apply to the container pod.
    Args string
    Arguments to pass to the container command.
    Commands List<string>
    Command to run in the container.
    Envs List<GetActionTemplateContainerActionEnv>
    Environment variables for the container.
    HostIpc bool
    Use host IPC namespace.
    HostNetwork bool
    Use host network namespace.
    HostPid bool
    Use host PID namespace.
    ImagePullPolicy string
    Image pull policy (Always, IfNotPresent, Never). Supports runtime inputs like <+input>.allowedValues(...).
    ImagePullSecrets List<string>
    List of image pull secrets for private registries.
    Labels Dictionary<string, string>
    Labels to apply to the container pod.
    Namespace string
    Kubernetes namespace for the container.
    NodeSelector Dictionary<string, string>
    Node selector for pod scheduling.
    Resources GetActionTemplateContainerActionResources
    Resource requirements for the container.
    ServiceAccountName string
    Kubernetes service account name.
    Tolerations List<GetActionTemplateContainerActionToleration>
    Tolerations for pod scheduling on tainted nodes.
    VolumeMounts List<GetActionTemplateContainerActionVolumeMount>
    Volume mounts for the container.
    Volumes List<GetActionTemplateContainerActionVolume>
    Volumes to attach to the pod.
    Image string
    Container image to use (e.g., 'busybox:latest').
    Annotations map[string]string
    Annotations to apply to the container pod.
    Args string
    Arguments to pass to the container command.
    Commands []string
    Command to run in the container.
    Envs []GetActionTemplateContainerActionEnv
    Environment variables for the container.
    HostIpc bool
    Use host IPC namespace.
    HostNetwork bool
    Use host network namespace.
    HostPid bool
    Use host PID namespace.
    ImagePullPolicy string
    Image pull policy (Always, IfNotPresent, Never). Supports runtime inputs like <+input>.allowedValues(...).
    ImagePullSecrets []string
    List of image pull secrets for private registries.
    Labels map[string]string
    Labels to apply to the container pod.
    Namespace string
    Kubernetes namespace for the container.
    NodeSelector map[string]string
    Node selector for pod scheduling.
    Resources GetActionTemplateContainerActionResources
    Resource requirements for the container.
    ServiceAccountName string
    Kubernetes service account name.
    Tolerations []GetActionTemplateContainerActionToleration
    Tolerations for pod scheduling on tainted nodes.
    VolumeMounts []GetActionTemplateContainerActionVolumeMount
    Volume mounts for the container.
    Volumes []GetActionTemplateContainerActionVolume
    Volumes to attach to the pod.
    image String
    Container image to use (e.g., 'busybox:latest').
    annotations Map<String,String>
    Annotations to apply to the container pod.
    args String
    Arguments to pass to the container command.
    commands List<String>
    Command to run in the container.
    envs List<GetActionTemplateContainerActionEnv>
    Environment variables for the container.
    hostIpc Boolean
    Use host IPC namespace.
    hostNetwork Boolean
    Use host network namespace.
    hostPid Boolean
    Use host PID namespace.
    imagePullPolicy String
    Image pull policy (Always, IfNotPresent, Never). Supports runtime inputs like <+input>.allowedValues(...).
    imagePullSecrets List<String>
    List of image pull secrets for private registries.
    labels Map<String,String>
    Labels to apply to the container pod.
    namespace String
    Kubernetes namespace for the container.
    nodeSelector Map<String,String>
    Node selector for pod scheduling.
    resources GetActionTemplateContainerActionResources
    Resource requirements for the container.
    serviceAccountName String
    Kubernetes service account name.
    tolerations List<GetActionTemplateContainerActionToleration>
    Tolerations for pod scheduling on tainted nodes.
    volumeMounts List<GetActionTemplateContainerActionVolumeMount>
    Volume mounts for the container.
    volumes List<GetActionTemplateContainerActionVolume>
    Volumes to attach to the pod.
    image string
    Container image to use (e.g., 'busybox:latest').
    annotations {[key: string]: string}
    Annotations to apply to the container pod.
    args string
    Arguments to pass to the container command.
    commands string[]
    Command to run in the container.
    envs GetActionTemplateContainerActionEnv[]
    Environment variables for the container.
    hostIpc boolean
    Use host IPC namespace.
    hostNetwork boolean
    Use host network namespace.
    hostPid boolean
    Use host PID namespace.
    imagePullPolicy string
    Image pull policy (Always, IfNotPresent, Never). Supports runtime inputs like <+input>.allowedValues(...).
    imagePullSecrets string[]
    List of image pull secrets for private registries.
    labels {[key: string]: string}
    Labels to apply to the container pod.
    namespace string
    Kubernetes namespace for the container.
    nodeSelector {[key: string]: string}
    Node selector for pod scheduling.
    resources GetActionTemplateContainerActionResources
    Resource requirements for the container.
    serviceAccountName string
    Kubernetes service account name.
    tolerations GetActionTemplateContainerActionToleration[]
    Tolerations for pod scheduling on tainted nodes.
    volumeMounts GetActionTemplateContainerActionVolumeMount[]
    Volume mounts for the container.
    volumes GetActionTemplateContainerActionVolume[]
    Volumes to attach to the pod.
    image str
    Container image to use (e.g., 'busybox:latest').
    annotations Mapping[str, str]
    Annotations to apply to the container pod.
    args str
    Arguments to pass to the container command.
    commands Sequence[str]
    Command to run in the container.
    envs Sequence[GetActionTemplateContainerActionEnv]
    Environment variables for the container.
    host_ipc bool
    Use host IPC namespace.
    host_network bool
    Use host network namespace.
    host_pid bool
    Use host PID namespace.
    image_pull_policy str
    Image pull policy (Always, IfNotPresent, Never). Supports runtime inputs like <+input>.allowedValues(...).
    image_pull_secrets Sequence[str]
    List of image pull secrets for private registries.
    labels Mapping[str, str]
    Labels to apply to the container pod.
    namespace str
    Kubernetes namespace for the container.
    node_selector Mapping[str, str]
    Node selector for pod scheduling.
    resources GetActionTemplateContainerActionResources
    Resource requirements for the container.
    service_account_name str
    Kubernetes service account name.
    tolerations Sequence[GetActionTemplateContainerActionToleration]
    Tolerations for pod scheduling on tainted nodes.
    volume_mounts Sequence[GetActionTemplateContainerActionVolumeMount]
    Volume mounts for the container.
    volumes Sequence[GetActionTemplateContainerActionVolume]
    Volumes to attach to the pod.
    image String
    Container image to use (e.g., 'busybox:latest').
    annotations Map<String>
    Annotations to apply to the container pod.
    args String
    Arguments to pass to the container command.
    commands List<String>
    Command to run in the container.
    envs List<Property Map>
    Environment variables for the container.
    hostIpc Boolean
    Use host IPC namespace.
    hostNetwork Boolean
    Use host network namespace.
    hostPid Boolean
    Use host PID namespace.
    imagePullPolicy String
    Image pull policy (Always, IfNotPresent, Never). Supports runtime inputs like <+input>.allowedValues(...).
    imagePullSecrets List<String>
    List of image pull secrets for private registries.
    labels Map<String>
    Labels to apply to the container pod.
    namespace String
    Kubernetes namespace for the container.
    nodeSelector Map<String>
    Node selector for pod scheduling.
    resources Property Map
    Resource requirements for the container.
    serviceAccountName String
    Kubernetes service account name.
    tolerations List<Property Map>
    Tolerations for pod scheduling on tainted nodes.
    volumeMounts List<Property Map>
    Volume mounts for the container.
    volumes List<Property Map>
    Volumes to attach to the pod.

    GetActionTemplateContainerActionEnv

    Name string
    Environment variable name.
    Value string
    Environment variable value.
    Name string
    Environment variable name.
    Value string
    Environment variable value.
    name String
    Environment variable name.
    value String
    Environment variable value.
    name string
    Environment variable name.
    value string
    Environment variable value.
    name str
    Environment variable name.
    value str
    Environment variable value.
    name String
    Environment variable name.
    value String
    Environment variable value.

    GetActionTemplateContainerActionResources

    Limits Dictionary<string, string>
    Resource limits.
    Requests Dictionary<string, string>
    Resource requests.
    Limits map[string]string
    Resource limits.
    Requests map[string]string
    Resource requests.
    limits Map<String,String>
    Resource limits.
    requests Map<String,String>
    Resource requests.
    limits {[key: string]: string}
    Resource limits.
    requests {[key: string]: string}
    Resource requests.
    limits Mapping[str, str]
    Resource limits.
    requests Mapping[str, str]
    Resource requests.
    limits Map<String>
    Resource limits.
    requests Map<String>
    Resource requests.

    GetActionTemplateContainerActionToleration

    Effect string
    Taint effect (NoSchedule, PreferNoSchedule, NoExecute).
    Key string
    Taint key to tolerate.
    Operator string
    Operator (Exists, Equal).
    TolerationSeconds int
    Toleration seconds for NoExecute effect.
    Value string
    Taint value to tolerate.
    Effect string
    Taint effect (NoSchedule, PreferNoSchedule, NoExecute).
    Key string
    Taint key to tolerate.
    Operator string
    Operator (Exists, Equal).
    TolerationSeconds int
    Toleration seconds for NoExecute effect.
    Value string
    Taint value to tolerate.
    effect String
    Taint effect (NoSchedule, PreferNoSchedule, NoExecute).
    key String
    Taint key to tolerate.
    operator String
    Operator (Exists, Equal).
    tolerationSeconds Integer
    Toleration seconds for NoExecute effect.
    value String
    Taint value to tolerate.
    effect string
    Taint effect (NoSchedule, PreferNoSchedule, NoExecute).
    key string
    Taint key to tolerate.
    operator string
    Operator (Exists, Equal).
    tolerationSeconds number
    Toleration seconds for NoExecute effect.
    value string
    Taint value to tolerate.
    effect str
    Taint effect (NoSchedule, PreferNoSchedule, NoExecute).
    key str
    Taint key to tolerate.
    operator str
    Operator (Exists, Equal).
    toleration_seconds int
    Toleration seconds for NoExecute effect.
    value str
    Taint value to tolerate.
    effect String
    Taint effect (NoSchedule, PreferNoSchedule, NoExecute).
    key String
    Taint key to tolerate.
    operator String
    Operator (Exists, Equal).
    tolerationSeconds Number
    Toleration seconds for NoExecute effect.
    value String
    Taint value to tolerate.

    GetActionTemplateContainerActionVolume

    name String
    Volume name.
    configMap Property Map
    ConfigMap volume configuration.
    emptyDir Property Map
    EmptyDir volume configuration.
    hostPath Property Map
    HostPath volume configuration.
    persistentVolumeClaim Property Map
    PersistentVolumeClaim configuration.
    secret Property Map
    Secret volume configuration.

    GetActionTemplateContainerActionVolumeConfigMap

    Name string
    ConfigMap name.
    Optional bool
    Whether the ConfigMap is optional.
    Name string
    ConfigMap name.
    Optional bool
    Whether the ConfigMap is optional.
    name String
    ConfigMap name.
    optional Boolean
    Whether the ConfigMap is optional.
    name string
    ConfigMap name.
    optional boolean
    Whether the ConfigMap is optional.
    name str
    ConfigMap name.
    optional bool
    Whether the ConfigMap is optional.
    name String
    ConfigMap name.
    optional Boolean
    Whether the ConfigMap is optional.

    GetActionTemplateContainerActionVolumeEmptyDir

    Medium string
    Storage medium (empty string for default, Memory for tmpfs).
    SizeLimit string
    Size limit (e.g., '1Gi').
    Medium string
    Storage medium (empty string for default, Memory for tmpfs).
    SizeLimit string
    Size limit (e.g., '1Gi').
    medium String
    Storage medium (empty string for default, Memory for tmpfs).
    sizeLimit String
    Size limit (e.g., '1Gi').
    medium string
    Storage medium (empty string for default, Memory for tmpfs).
    sizeLimit string
    Size limit (e.g., '1Gi').
    medium str
    Storage medium (empty string for default, Memory for tmpfs).
    size_limit str
    Size limit (e.g., '1Gi').
    medium String
    Storage medium (empty string for default, Memory for tmpfs).
    sizeLimit String
    Size limit (e.g., '1Gi').

    GetActionTemplateContainerActionVolumeHostPath

    Path string
    Host path.
    Type string
    Host path type (Directory, File, etc.).
    Path string
    Host path.
    Type string
    Host path type (Directory, File, etc.).
    path String
    Host path.
    type String
    Host path type (Directory, File, etc.).
    path string
    Host path.
    type string
    Host path type (Directory, File, etc.).
    path str
    Host path.
    type str
    Host path type (Directory, File, etc.).
    path String
    Host path.
    type String
    Host path type (Directory, File, etc.).

    GetActionTemplateContainerActionVolumeMount

    MountPath string
    Path to mount the volume in the container.
    Name string
    Volume name to mount.
    ReadOnly bool
    Mount as read-only.
    SubPath string
    Sub-path within the volume.
    MountPath string
    Path to mount the volume in the container.
    Name string
    Volume name to mount.
    ReadOnly bool
    Mount as read-only.
    SubPath string
    Sub-path within the volume.
    mountPath String
    Path to mount the volume in the container.
    name String
    Volume name to mount.
    readOnly Boolean
    Mount as read-only.
    subPath String
    Sub-path within the volume.
    mountPath string
    Path to mount the volume in the container.
    name string
    Volume name to mount.
    readOnly boolean
    Mount as read-only.
    subPath string
    Sub-path within the volume.
    mount_path str
    Path to mount the volume in the container.
    name str
    Volume name to mount.
    read_only bool
    Mount as read-only.
    sub_path str
    Sub-path within the volume.
    mountPath String
    Path to mount the volume in the container.
    name String
    Volume name to mount.
    readOnly Boolean
    Mount as read-only.
    subPath String
    Sub-path within the volume.

    GetActionTemplateContainerActionVolumePersistentVolumeClaim

    ClaimName string
    PVC name.
    ReadOnly bool
    Mount as read-only.
    ClaimName string
    PVC name.
    ReadOnly bool
    Mount as read-only.
    claimName String
    PVC name.
    readOnly Boolean
    Mount as read-only.
    claimName string
    PVC name.
    readOnly boolean
    Mount as read-only.
    claim_name str
    PVC name.
    read_only bool
    Mount as read-only.
    claimName String
    PVC name.
    readOnly Boolean
    Mount as read-only.

    GetActionTemplateContainerActionVolumeSecret

    SecretName string
    Secret name.
    Optional bool
    Whether the Secret is optional.
    SecretName string
    Secret name.
    Optional bool
    Whether the Secret is optional.
    secretName String
    Secret name.
    optional Boolean
    Whether the Secret is optional.
    secretName string
    Secret name.
    optional boolean
    Whether the Secret is optional.
    secret_name str
    Secret name.
    optional bool
    Whether the Secret is optional.
    secretName String
    Secret name.
    optional Boolean
    Whether the Secret is optional.

    GetActionTemplateCustomScriptAction

    Command string
    Command to execute (e.g., 'bash', 'python', 'sh').
    Args List<string>
    Arguments to pass to the command.
    Envs List<GetActionTemplateCustomScriptActionEnv>
    Environment variables for the script.
    Command string
    Command to execute (e.g., 'bash', 'python', 'sh').
    Args []string
    Arguments to pass to the command.
    Envs []GetActionTemplateCustomScriptActionEnv
    Environment variables for the script.
    command String
    Command to execute (e.g., 'bash', 'python', 'sh').
    args List<String>
    Arguments to pass to the command.
    envs List<GetActionTemplateCustomScriptActionEnv>
    Environment variables for the script.
    command string
    Command to execute (e.g., 'bash', 'python', 'sh').
    args string[]
    Arguments to pass to the command.
    envs GetActionTemplateCustomScriptActionEnv[]
    Environment variables for the script.
    command str
    Command to execute (e.g., 'bash', 'python', 'sh').
    args Sequence[str]
    Arguments to pass to the command.
    envs Sequence[GetActionTemplateCustomScriptActionEnv]
    Environment variables for the script.
    command String
    Command to execute (e.g., 'bash', 'python', 'sh').
    args List<String>
    Arguments to pass to the command.
    envs List<Property Map>
    Environment variables for the script.

    GetActionTemplateCustomScriptActionEnv

    Name string
    Environment variable name.
    Value string
    Environment variable value.
    Name string
    Environment variable name.
    Value string
    Environment variable value.
    name String
    Environment variable name.
    value String
    Environment variable value.
    name string
    Environment variable name.
    value string
    Environment variable value.
    name str
    Environment variable name.
    value str
    Environment variable value.
    name String
    Environment variable name.
    value String
    Environment variable value.

    GetActionTemplateDelayAction

    Duration string
    Duration of the delay (e.g., '30s', '5m', '1h').
    Duration string
    Duration of the delay (e.g., '30s', '5m', '1h').
    duration String
    Duration of the delay (e.g., '30s', '5m', '1h').
    duration string
    Duration of the delay (e.g., '30s', '5m', '1h').
    duration str
    Duration of the delay (e.g., '30s', '5m', '1h').
    duration String
    Duration of the delay (e.g., '30s', '5m', '1h').

    GetActionTemplateRunProperties

    InitialDelay string
    Initial delay before action execution (e.g., '5s', '1m').
    Interval string
    Interval between retries (e.g., '10s', '30s').
    MaxRetries int
    Maximum number of retries.
    StopOnFailure bool
    Whether to stop on failure.
    Timeout string
    Timeout for action execution (e.g., '5m', '10m').
    Verbosity string
    Verbosity level for logging.
    InitialDelay string
    Initial delay before action execution (e.g., '5s', '1m').
    Interval string
    Interval between retries (e.g., '10s', '30s').
    MaxRetries int
    Maximum number of retries.
    StopOnFailure bool
    Whether to stop on failure.
    Timeout string
    Timeout for action execution (e.g., '5m', '10m').
    Verbosity string
    Verbosity level for logging.
    initialDelay String
    Initial delay before action execution (e.g., '5s', '1m').
    interval String
    Interval between retries (e.g., '10s', '30s').
    maxRetries Integer
    Maximum number of retries.
    stopOnFailure Boolean
    Whether to stop on failure.
    timeout String
    Timeout for action execution (e.g., '5m', '10m').
    verbosity String
    Verbosity level for logging.
    initialDelay string
    Initial delay before action execution (e.g., '5s', '1m').
    interval string
    Interval between retries (e.g., '10s', '30s').
    maxRetries number
    Maximum number of retries.
    stopOnFailure boolean
    Whether to stop on failure.
    timeout string
    Timeout for action execution (e.g., '5m', '10m').
    verbosity string
    Verbosity level for logging.
    initial_delay str
    Initial delay before action execution (e.g., '5s', '1m').
    interval str
    Interval between retries (e.g., '10s', '30s').
    max_retries int
    Maximum number of retries.
    stop_on_failure bool
    Whether to stop on failure.
    timeout str
    Timeout for action execution (e.g., '5m', '10m').
    verbosity str
    Verbosity level for logging.
    initialDelay String
    Initial delay before action execution (e.g., '5s', '1m').
    interval String
    Interval between retries (e.g., '10s', '30s').
    maxRetries Number
    Maximum number of retries.
    stopOnFailure Boolean
    Whether to stop on failure.
    timeout String
    Timeout for action execution (e.g., '5m', '10m').
    verbosity String
    Verbosity level for logging.

    GetActionTemplateVariable

    Name string
    Variable name.
    Value string
    Variable value.
    Description string
    Variable description.
    Required bool
    Whether the variable is required.
    Type string
    Variable type (e.g., 'string', 'number', 'boolean').
    Name string
    Variable name.
    Value string
    Variable value.
    Description string
    Variable description.
    Required bool
    Whether the variable is required.
    Type string
    Variable type (e.g., 'string', 'number', 'boolean').
    name String
    Variable name.
    value String
    Variable value.
    description String
    Variable description.
    required Boolean
    Whether the variable is required.
    type String
    Variable type (e.g., 'string', 'number', 'boolean').
    name string
    Variable name.
    value string
    Variable value.
    description string
    Variable description.
    required boolean
    Whether the variable is required.
    type string
    Variable type (e.g., 'string', 'number', 'boolean').
    name str
    Variable name.
    value str
    Variable value.
    description str
    Variable description.
    required bool
    Whether the variable is required.
    type str
    Variable type (e.g., 'string', 'number', 'boolean').
    name String
    Variable name.
    value String
    Variable value.
    description String
    Variable description.
    required Boolean
    Whether the variable is required.
    type String
    Variable type (e.g., 'string', 'number', 'boolean').

    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.