1. Packages
  2. Packages
  3. Harness Provider
  4. API Docs
  5. chaos
  6. getFaultTemplate
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 retrieving a Harness Chaos Fault Template. Supports lookup by identity (recommended) or name.

    Using getFaultTemplate

    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 getFaultTemplate(args: GetFaultTemplateArgs, opts?: InvokeOptions): Promise<GetFaultTemplateResult>
    function getFaultTemplateOutput(args: GetFaultTemplateOutputArgs, opts?: InvokeOptions): Output<GetFaultTemplateResult>
    def get_fault_template(hub_identity: Optional[str] = None,
                           identity: Optional[str] = None,
                           name: Optional[str] = None,
                           org_id: Optional[str] = None,
                           project_id: Optional[str] = None,
                           revision: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetFaultTemplateResult
    def get_fault_template_output(hub_identity: Optional[pulumi.Input[str]] = None,
                           identity: Optional[pulumi.Input[str]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           org_id: Optional[pulumi.Input[str]] = None,
                           project_id: Optional[pulumi.Input[str]] = None,
                           revision: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetFaultTemplateResult]
    func LookupFaultTemplate(ctx *Context, args *LookupFaultTemplateArgs, opts ...InvokeOption) (*LookupFaultTemplateResult, error)
    func LookupFaultTemplateOutput(ctx *Context, args *LookupFaultTemplateOutputArgs, opts ...InvokeOption) LookupFaultTemplateResultOutput

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

    public static class GetFaultTemplate 
    {
        public static Task<GetFaultTemplateResult> InvokeAsync(GetFaultTemplateArgs args, InvokeOptions? opts = null)
        public static Output<GetFaultTemplateResult> Invoke(GetFaultTemplateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFaultTemplateResult> getFaultTemplate(GetFaultTemplateArgs args, InvokeOptions options)
    public static Output<GetFaultTemplateResult> getFaultTemplate(GetFaultTemplateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: harness:chaos/getFaultTemplate:getFaultTemplate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    HubIdentity string
    Identity of the chaos hub
    Identity string
    Unique identifier of the fault template (recommended)
    Name string
    Name of the fault template (may have timing issues with newly created templates)
    OrgId string
    Organization identifier
    ProjectId string
    Project identifier
    Revision string
    Template revision to query (defaults to v1 if not specified)
    HubIdentity string
    Identity of the chaos hub
    Identity string
    Unique identifier of the fault template (recommended)
    Name string
    Name of the fault template (may have timing issues with newly created templates)
    OrgId string
    Organization identifier
    ProjectId string
    Project identifier
    Revision string
    Template revision to query (defaults to v1 if not specified)
    hubIdentity String
    Identity of the chaos hub
    identity String
    Unique identifier of the fault template (recommended)
    name String
    Name of the fault template (may have timing issues with newly created templates)
    orgId String
    Organization identifier
    projectId String
    Project identifier
    revision String
    Template revision to query (defaults to v1 if not specified)
    hubIdentity string
    Identity of the chaos hub
    identity string
    Unique identifier of the fault template (recommended)
    name string
    Name of the fault template (may have timing issues with newly created templates)
    orgId string
    Organization identifier
    projectId string
    Project identifier
    revision string
    Template revision to query (defaults to v1 if not specified)
    hub_identity str
    Identity of the chaos hub
    identity str
    Unique identifier of the fault template (recommended)
    name str
    Name of the fault template (may have timing issues with newly created templates)
    org_id str
    Organization identifier
    project_id str
    Project identifier
    revision str
    Template revision to query (defaults to v1 if not specified)
    hubIdentity String
    Identity of the chaos hub
    identity String
    Unique identifier of the fault template (recommended)
    name String
    Name of the fault template (may have timing issues with newly created templates)
    orgId String
    Organization identifier
    projectId String
    Project identifier
    revision String
    Template revision to query (defaults to v1 if not specified)

    getFaultTemplate Result

    The following output properties are available:

    AccountId string
    Account identifier
    Categories List<string>
    Fault categories
    CreatedAt int
    Creation timestamp
    CreatedBy string
    Creator user ID
    Description string
    Description of the fault template
    FaultName string
    Name of the fault
    HubIdentity string
    Identity of the chaos hub
    HubRef string
    Hub reference
    Id string
    The provider-assigned unique ID for this managed resource.
    InfrastructureType string
    Infrastructure type
    Infrastructures List<string>
    List of supported infrastructures
    IsDefault bool
    Whether this is a default template
    IsEnterprise bool
    Whether this is an enterprise-only template
    IsRemoved bool
    Soft delete flag
    PermissionsRequired string
    Required permissions for the fault
    Revision string
    Template revision to query (defaults to v1 if not specified)
    Tags List<string>
    Tags associated with the fault template
    Type string
    Fault type
    UpdatedAt int
    Update timestamp
    UpdatedBy string
    Updater user ID
    Variables List<GetFaultTemplateVariable>
    Template variables
    Identity string
    Unique identifier of the fault template (recommended)
    Name string
    Name of the fault template (may have timing issues with newly created templates)
    OrgId string
    Organization identifier
    ProjectId string
    Project identifier
    AccountId string
    Account identifier
    Categories []string
    Fault categories
    CreatedAt int
    Creation timestamp
    CreatedBy string
    Creator user ID
    Description string
    Description of the fault template
    FaultName string
    Name of the fault
    HubIdentity string
    Identity of the chaos hub
    HubRef string
    Hub reference
    Id string
    The provider-assigned unique ID for this managed resource.
    InfrastructureType string
    Infrastructure type
    Infrastructures []string
    List of supported infrastructures
    IsDefault bool
    Whether this is a default template
    IsEnterprise bool
    Whether this is an enterprise-only template
    IsRemoved bool
    Soft delete flag
    PermissionsRequired string
    Required permissions for the fault
    Revision string
    Template revision to query (defaults to v1 if not specified)
    Tags []string
    Tags associated with the fault template
    Type string
    Fault type
    UpdatedAt int
    Update timestamp
    UpdatedBy string
    Updater user ID
    Variables []GetFaultTemplateVariable
    Template variables
    Identity string
    Unique identifier of the fault template (recommended)
    Name string
    Name of the fault template (may have timing issues with newly created templates)
    OrgId string
    Organization identifier
    ProjectId string
    Project identifier
    accountId String
    Account identifier
    categories List<String>
    Fault categories
    createdAt Integer
    Creation timestamp
    createdBy String
    Creator user ID
    description String
    Description of the fault template
    faultName String
    Name of the fault
    hubIdentity String
    Identity of the chaos hub
    hubRef String
    Hub reference
    id String
    The provider-assigned unique ID for this managed resource.
    infrastructureType String
    Infrastructure type
    infrastructures List<String>
    List of supported infrastructures
    isDefault Boolean
    Whether this is a default template
    isEnterprise Boolean
    Whether this is an enterprise-only template
    isRemoved Boolean
    Soft delete flag
    permissionsRequired String
    Required permissions for the fault
    revision String
    Template revision to query (defaults to v1 if not specified)
    tags List<String>
    Tags associated with the fault template
    type String
    Fault type
    updatedAt Integer
    Update timestamp
    updatedBy String
    Updater user ID
    variables List<GetFaultTemplateVariable>
    Template variables
    identity String
    Unique identifier of the fault template (recommended)
    name String
    Name of the fault template (may have timing issues with newly created templates)
    orgId String
    Organization identifier
    projectId String
    Project identifier
    accountId string
    Account identifier
    categories string[]
    Fault categories
    createdAt number
    Creation timestamp
    createdBy string
    Creator user ID
    description string
    Description of the fault template
    faultName string
    Name of the fault
    hubIdentity string
    Identity of the chaos hub
    hubRef string
    Hub reference
    id string
    The provider-assigned unique ID for this managed resource.
    infrastructureType string
    Infrastructure type
    infrastructures string[]
    List of supported infrastructures
    isDefault boolean
    Whether this is a default template
    isEnterprise boolean
    Whether this is an enterprise-only template
    isRemoved boolean
    Soft delete flag
    permissionsRequired string
    Required permissions for the fault
    revision string
    Template revision to query (defaults to v1 if not specified)
    tags string[]
    Tags associated with the fault template
    type string
    Fault type
    updatedAt number
    Update timestamp
    updatedBy string
    Updater user ID
    variables GetFaultTemplateVariable[]
    Template variables
    identity string
    Unique identifier of the fault template (recommended)
    name string
    Name of the fault template (may have timing issues with newly created templates)
    orgId string
    Organization identifier
    projectId string
    Project identifier
    account_id str
    Account identifier
    categories Sequence[str]
    Fault categories
    created_at int
    Creation timestamp
    created_by str
    Creator user ID
    description str
    Description of the fault template
    fault_name str
    Name of the fault
    hub_identity str
    Identity of the chaos hub
    hub_ref str
    Hub reference
    id str
    The provider-assigned unique ID for this managed resource.
    infrastructure_type str
    Infrastructure type
    infrastructures Sequence[str]
    List of supported infrastructures
    is_default bool
    Whether this is a default template
    is_enterprise bool
    Whether this is an enterprise-only template
    is_removed bool
    Soft delete flag
    permissions_required str
    Required permissions for the fault
    revision str
    Template revision to query (defaults to v1 if not specified)
    tags Sequence[str]
    Tags associated with the fault template
    type str
    Fault type
    updated_at int
    Update timestamp
    updated_by str
    Updater user ID
    variables Sequence[GetFaultTemplateVariable]
    Template variables
    identity str
    Unique identifier of the fault template (recommended)
    name str
    Name of the fault template (may have timing issues with newly created templates)
    org_id str
    Organization identifier
    project_id str
    Project identifier
    accountId String
    Account identifier
    categories List<String>
    Fault categories
    createdAt Number
    Creation timestamp
    createdBy String
    Creator user ID
    description String
    Description of the fault template
    faultName String
    Name of the fault
    hubIdentity String
    Identity of the chaos hub
    hubRef String
    Hub reference
    id String
    The provider-assigned unique ID for this managed resource.
    infrastructureType String
    Infrastructure type
    infrastructures List<String>
    List of supported infrastructures
    isDefault Boolean
    Whether this is a default template
    isEnterprise Boolean
    Whether this is an enterprise-only template
    isRemoved Boolean
    Soft delete flag
    permissionsRequired String
    Required permissions for the fault
    revision String
    Template revision to query (defaults to v1 if not specified)
    tags List<String>
    Tags associated with the fault template
    type String
    Fault type
    updatedAt Number
    Update timestamp
    updatedBy String
    Updater user ID
    variables List<Property Map>
    Template variables
    identity String
    Unique identifier of the fault template (recommended)
    name String
    Name of the fault template (may have timing issues with newly created templates)
    orgId String
    Organization identifier
    projectId String
    Project identifier

    Supporting Types

    GetFaultTemplateVariable

    Description string
    Variable description
    Name string
    Variable name
    Required bool
    Whether the variable is required
    Type string
    Variable type
    Value string
    Variable value
    Description string
    Variable description
    Name string
    Variable name
    Required bool
    Whether the variable is required
    Type string
    Variable type
    Value string
    Variable value
    description String
    Variable description
    name String
    Variable name
    required Boolean
    Whether the variable is required
    type String
    Variable type
    value String
    Variable value
    description string
    Variable description
    name string
    Variable name
    required boolean
    Whether the variable is required
    type string
    Variable type
    value string
    Variable value
    description str
    Variable description
    name str
    Variable name
    required bool
    Whether the variable is required
    type str
    Variable type
    value str
    Variable value
    description String
    Variable description
    name String
    Variable name
    required Boolean
    Whether the variable is required
    type String
    Variable type
    value String
    Variable value

    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.