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

harness.platform.getTemplateFilters

Explore with Pulumi AI

Data source for retrieving a Harness Template Filter.

Example Usage

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

const test = harness.platform.getTemplateFilters({
    identifier: "identifier",
    orgId: "org_id",
    projectId: "project_id",
    type: "Template",
});
Copy
import pulumi
import pulumi_harness as harness

test = harness.platform.get_template_filters(identifier="identifier",
    org_id="org_id",
    project_id="project_id",
    type="Template")
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := platform.LookupTemplateFilters(ctx, &platform.LookupTemplateFiltersArgs{
			Identifier: "identifier",
			OrgId:      pulumi.StringRef("org_id"),
			ProjectId:  pulumi.StringRef("project_id"),
			Type:       "Template",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;

return await Deployment.RunAsync(() => 
{
    var test = Harness.Platform.GetTemplateFilters.Invoke(new()
    {
        Identifier = "identifier",
        OrgId = "org_id",
        ProjectId = "project_id",
        Type = "Template",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.PlatformFunctions;
import com.pulumi.harness.platform.inputs.GetTemplateFiltersArgs;
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 test = PlatformFunctions.getTemplateFilters(GetTemplateFiltersArgs.builder()
            .identifier("identifier")
            .orgId("org_id")
            .projectId("project_id")
            .type("Template")
            .build());

    }
}
Copy
variables:
  test:
    fn::invoke:
      function: harness:platform:getTemplateFilters
      arguments:
        identifier: identifier
        orgId: org_id
        projectId: project_id
        type: Template
Copy

Using getTemplateFilters

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 getTemplateFilters(args: GetTemplateFiltersArgs, opts?: InvokeOptions): Promise<GetTemplateFiltersResult>
function getTemplateFiltersOutput(args: GetTemplateFiltersOutputArgs, opts?: InvokeOptions): Output<GetTemplateFiltersResult>
Copy
def get_template_filters(identifier: Optional[str] = None,
                         org_id: Optional[str] = None,
                         project_id: Optional[str] = None,
                         type: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetTemplateFiltersResult
def get_template_filters_output(identifier: Optional[pulumi.Input[str]] = None,
                         org_id: Optional[pulumi.Input[str]] = None,
                         project_id: Optional[pulumi.Input[str]] = None,
                         type: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetTemplateFiltersResult]
Copy
func LookupTemplateFilters(ctx *Context, args *LookupTemplateFiltersArgs, opts ...InvokeOption) (*LookupTemplateFiltersResult, error)
func LookupTemplateFiltersOutput(ctx *Context, args *LookupTemplateFiltersOutputArgs, opts ...InvokeOption) LookupTemplateFiltersResultOutput
Copy

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

public static class GetTemplateFilters 
{
    public static Task<GetTemplateFiltersResult> InvokeAsync(GetTemplateFiltersArgs args, InvokeOptions? opts = null)
    public static Output<GetTemplateFiltersResult> Invoke(GetTemplateFiltersInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTemplateFiltersResult> getTemplateFilters(GetTemplateFiltersArgs args, InvokeOptions options)
public static Output<GetTemplateFiltersResult> getTemplateFilters(GetTemplateFiltersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: harness:platform/getTemplateFilters:getTemplateFilters
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Identifier This property is required. string
Unique identifier of the resource.
Type This property is required. string
Type of filter. Currently supported types are {TemplateSetup, TemplateExecution, Deployment, Template, EnvironmentGroup, Environment}.
OrgId string
Organization Identifier for the Entity.
ProjectId string
Project Identifier for the Entity.
Identifier This property is required. string
Unique identifier of the resource.
Type This property is required. string
Type of filter. Currently supported types are {TemplateSetup, TemplateExecution, Deployment, Template, EnvironmentGroup, Environment}.
OrgId string
Organization Identifier for the Entity.
ProjectId string
Project Identifier for the Entity.
identifier This property is required. String
Unique identifier of the resource.
type This property is required. String
Type of filter. Currently supported types are {TemplateSetup, TemplateExecution, Deployment, Template, EnvironmentGroup, Environment}.
orgId String
Organization Identifier for the Entity.
projectId String
Project Identifier for the Entity.
identifier This property is required. string
Unique identifier of the resource.
type This property is required. string
Type of filter. Currently supported types are {TemplateSetup, TemplateExecution, Deployment, Template, EnvironmentGroup, Environment}.
orgId string
Organization Identifier for the Entity.
projectId string
Project Identifier for the Entity.
identifier This property is required. str
Unique identifier of the resource.
type This property is required. str
Type of filter. Currently supported types are {TemplateSetup, TemplateExecution, Deployment, Template, EnvironmentGroup, Environment}.
org_id str
Organization Identifier for the Entity.
project_id str
Project Identifier for the Entity.
identifier This property is required. String
Unique identifier of the resource.
type This property is required. String
Type of filter. Currently supported types are {TemplateSetup, TemplateExecution, Deployment, Template, EnvironmentGroup, Environment}.
orgId String
Organization Identifier for the Entity.
projectId String
Project Identifier for the Entity.

getTemplateFilters Result

The following output properties are available:

FilterProperties List<GetTemplateFiltersFilterProperty>
Properties of the filter entity defined in Harness.
FilterVisibility string
This indicates visibility of filter. By default, everyone can view this filter.
Id string
The provider-assigned unique ID for this managed resource.
Identifier string
Unique identifier of the resource.
Name string
Name of the Filter.
Type string
Type of filter. Currently supported types are {TemplateSetup, TemplateExecution, Deployment, Template, EnvironmentGroup, Environment}.
OrgId string
Organization Identifier for the Entity.
ProjectId string
Project Identifier for the Entity.
FilterProperties []GetTemplateFiltersFilterProperty
Properties of the filter entity defined in Harness.
FilterVisibility string
This indicates visibility of filter. By default, everyone can view this filter.
Id string
The provider-assigned unique ID for this managed resource.
Identifier string
Unique identifier of the resource.
Name string
Name of the Filter.
Type string
Type of filter. Currently supported types are {TemplateSetup, TemplateExecution, Deployment, Template, EnvironmentGroup, Environment}.
OrgId string
Organization Identifier for the Entity.
ProjectId string
Project Identifier for the Entity.
filterProperties List<GetTemplateFiltersFilterProperty>
Properties of the filter entity defined in Harness.
filterVisibility String
This indicates visibility of filter. By default, everyone can view this filter.
id String
The provider-assigned unique ID for this managed resource.
identifier String
Unique identifier of the resource.
name String
Name of the Filter.
type String
Type of filter. Currently supported types are {TemplateSetup, TemplateExecution, Deployment, Template, EnvironmentGroup, Environment}.
orgId String
Organization Identifier for the Entity.
projectId String
Project Identifier for the Entity.
filterProperties GetTemplateFiltersFilterProperty[]
Properties of the filter entity defined in Harness.
filterVisibility string
This indicates visibility of filter. By default, everyone can view this filter.
id string
The provider-assigned unique ID for this managed resource.
identifier string
Unique identifier of the resource.
name string
Name of the Filter.
type string
Type of filter. Currently supported types are {TemplateSetup, TemplateExecution, Deployment, Template, EnvironmentGroup, Environment}.
orgId string
Organization Identifier for the Entity.
projectId string
Project Identifier for the Entity.
filter_properties Sequence[GetTemplateFiltersFilterProperty]
Properties of the filter entity defined in Harness.
filter_visibility str
This indicates visibility of filter. By default, everyone can view this filter.
id str
The provider-assigned unique ID for this managed resource.
identifier str
Unique identifier of the resource.
name str
Name of the Filter.
type str
Type of filter. Currently supported types are {TemplateSetup, TemplateExecution, Deployment, Template, EnvironmentGroup, Environment}.
org_id str
Organization Identifier for the Entity.
project_id str
Project Identifier for the Entity.
filterProperties List<Property Map>
Properties of the filter entity defined in Harness.
filterVisibility String
This indicates visibility of filter. By default, everyone can view this filter.
id String
The provider-assigned unique ID for this managed resource.
identifier String
Unique identifier of the resource.
name String
Name of the Filter.
type String
Type of filter. Currently supported types are {TemplateSetup, TemplateExecution, Deployment, Template, EnvironmentGroup, Environment}.
orgId String
Organization Identifier for the Entity.
projectId String
Project Identifier for the Entity.

Supporting Types

GetTemplateFiltersFilterProperty

FilterType This property is required. string
Corresponding Entity of the filters. Currently supported types are {Connector, DelegateProfile, Delegate, TemplateSetup, TemplateExecution, Deployment, Audit, Template, EnvironmentGroup, FileStore, CCMRecommendation, Anomaly, Environment}.
Tags This property is required. List<string>
Tags to associate with the resource. Tags should be in the form name:value.
FilterType This property is required. string
Corresponding Entity of the filters. Currently supported types are {Connector, DelegateProfile, Delegate, TemplateSetup, TemplateExecution, Deployment, Audit, Template, EnvironmentGroup, FileStore, CCMRecommendation, Anomaly, Environment}.
Tags This property is required. []string
Tags to associate with the resource. Tags should be in the form name:value.
filterType This property is required. String
Corresponding Entity of the filters. Currently supported types are {Connector, DelegateProfile, Delegate, TemplateSetup, TemplateExecution, Deployment, Audit, Template, EnvironmentGroup, FileStore, CCMRecommendation, Anomaly, Environment}.
tags This property is required. List<String>
Tags to associate with the resource. Tags should be in the form name:value.
filterType This property is required. string
Corresponding Entity of the filters. Currently supported types are {Connector, DelegateProfile, Delegate, TemplateSetup, TemplateExecution, Deployment, Audit, Template, EnvironmentGroup, FileStore, CCMRecommendation, Anomaly, Environment}.
tags This property is required. string[]
Tags to associate with the resource. Tags should be in the form name:value.
filter_type This property is required. str
Corresponding Entity of the filters. Currently supported types are {Connector, DelegateProfile, Delegate, TemplateSetup, TemplateExecution, Deployment, Audit, Template, EnvironmentGroup, FileStore, CCMRecommendation, Anomaly, Environment}.
tags This property is required. Sequence[str]
Tags to associate with the resource. Tags should be in the form name:value.
filterType This property is required. String
Corresponding Entity of the filters. Currently supported types are {Connector, DelegateProfile, Delegate, TemplateSetup, TemplateExecution, Deployment, Audit, Template, EnvironmentGroup, FileStore, CCMRecommendation, Anomaly, Environment}.
tags This property is required. List<String>
Tags to associate with the resource. Tags should be in the form name:value.

Package Details

Repository
harness pulumi/pulumi-harness
License
Apache-2.0
Notes
This Pulumi package is based on the harness Terraform Provider.