1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. getFilters
Harness v0.9.0 published on Wednesday, Oct 22, 2025 by Pulumi

harness.platform.getFilters

Start a Neo task
Explain and create a harness.platform.getFilters resource
harness logo
Harness v0.9.0 published on Wednesday, Oct 22, 2025 by Pulumi

    Data source for retrieving a Harness Filter. This data source allows you to fetch filters of the following types: {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, Environment}

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const test = harness.platform.getFilters({
        identifier: "identifier",
        orgId: "org_id",
        projectId: "project_id",
        type: "Connector",
    });
    
    import pulumi
    import pulumi_harness as harness
    
    test = harness.platform.get_filters(identifier="identifier",
        org_id="org_id",
        project_id="project_id",
        type="Connector")
    
    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.LookupFilters(ctx, &platform.LookupFiltersArgs{
    			Identifier: "identifier",
    			OrgId:      pulumi.StringRef("org_id"),
    			ProjectId:  pulumi.StringRef("project_id"),
    			Type:       "Connector",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Harness.Platform.GetFilters.Invoke(new()
        {
            Identifier = "identifier",
            OrgId = "org_id",
            ProjectId = "project_id",
            Type = "Connector",
        });
    
    });
    
    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.GetFiltersArgs;
    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.getFilters(GetFiltersArgs.builder()
                .identifier("identifier")
                .orgId("org_id")
                .projectId("project_id")
                .type("Connector")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: harness:platform:getFilters
          arguments:
            identifier: identifier
            orgId: org_id
            projectId: project_id
            type: Connector
    

    Using getFilters

    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 getFilters(args: GetFiltersArgs, opts?: InvokeOptions): Promise<GetFiltersResult>
    function getFiltersOutput(args: GetFiltersOutputArgs, opts?: InvokeOptions): Output<GetFiltersResult>
    def get_filters(identifier: Optional[str] = None,
                    org_id: Optional[str] = None,
                    project_id: Optional[str] = None,
                    type: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetFiltersResult
    def get_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[GetFiltersResult]
    func LookupFilters(ctx *Context, args *LookupFiltersArgs, opts ...InvokeOption) (*LookupFiltersResult, error)
    func LookupFiltersOutput(ctx *Context, args *LookupFiltersOutputArgs, opts ...InvokeOption) LookupFiltersResultOutput

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

    public static class GetFilters 
    {
        public static Task<GetFiltersResult> InvokeAsync(GetFiltersArgs args, InvokeOptions? opts = null)
        public static Output<GetFiltersResult> Invoke(GetFiltersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFiltersResult> getFilters(GetFiltersArgs args, InvokeOptions options)
    public static Output<GetFiltersResult> getFilters(GetFiltersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: harness:platform/getFilters:getFilters
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Identifier string
    Unique identifier of the resource
    Type string
    Type of filter. Currently supported types are {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, Environment}.
    OrgId string
    organization Identifier for the Entity
    ProjectId string
    project Identifier for the Entity
    Identifier string
    Unique identifier of the resource
    Type string
    Type of filter. Currently supported types are {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, Environment}.
    OrgId string
    organization Identifier for the Entity
    ProjectId string
    project Identifier for the Entity
    identifier String
    Unique identifier of the resource
    type String
    Type of filter. Currently supported types are {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, Environment}.
    orgId String
    organization Identifier for the Entity
    projectId String
    project Identifier for the Entity
    identifier string
    Unique identifier of the resource
    type string
    Type of filter. Currently supported types are {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, Environment}.
    orgId string
    organization Identifier for the Entity
    projectId string
    project Identifier for the Entity
    identifier str
    Unique identifier of the resource
    type str
    Type of filter. Currently supported types are {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, Environment}.
    org_id str
    organization Identifier for the Entity
    project_id str
    project Identifier for the Entity
    identifier String
    Unique identifier of the resource
    type String
    Type of filter. Currently supported types are {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, Environment}.
    orgId String
    organization Identifier for the Entity
    projectId String
    project Identifier for the Entity

    getFilters Result

    The following output properties are available:

    FilterProperties List<GetFiltersFilterProperty>
    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 {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, Environment}.
    OrgId string
    organization Identifier for the Entity
    ProjectId string
    project Identifier for the Entity
    FilterProperties []GetFiltersFilterProperty
    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 {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, Environment}.
    OrgId string
    organization Identifier for the Entity
    ProjectId string
    project Identifier for the Entity
    filterProperties List<GetFiltersFilterProperty>
    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 {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, Environment}.
    orgId String
    organization Identifier for the Entity
    projectId String
    project Identifier for the Entity
    filterProperties GetFiltersFilterProperty[]
    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 {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, Environment}.
    orgId string
    organization Identifier for the Entity
    projectId string
    project Identifier for the Entity
    filter_properties Sequence[GetFiltersFilterProperty]
    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 {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, 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 {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, Environment}.
    orgId String
    organization Identifier for the Entity
    projectId String
    project Identifier for the Entity

    Supporting Types

    GetFiltersFilterProperty

    FilterType string
    Corresponding Entity of the filter. Currently supported types are {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, Environment}.
    Tags List<string>
    Tags to associate with the resource. Tags should be in the form name:value.
    FilterType string
    Corresponding Entity of the filter. Currently supported types are {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, Environment}.
    Tags []string
    Tags to associate with the resource. Tags should be in the form name:value.
    filterType String
    Corresponding Entity of the filter. Currently supported types are {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, Environment}.
    tags List<String>
    Tags to associate with the resource. Tags should be in the form name:value.
    filterType string
    Corresponding Entity of the filter. Currently supported types are {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, Environment}.
    tags string[]
    Tags to associate with the resource. Tags should be in the form name:value.
    filter_type str
    Corresponding Entity of the filter. Currently supported types are {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, Environment}.
    tags Sequence[str]
    Tags to associate with the resource. Tags should be in the form name:value.
    filterType String
    Corresponding Entity of the filter. Currently supported types are {Connector, DelegateProfile, Delegate, EnvironmentGroup, FileStore, Environment}.
    tags 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.
    harness logo
    Harness v0.9.0 published on Wednesday, Oct 22, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate