1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. GitopsFilters
Harness v0.8.1 published on Saturday, Aug 23, 2025 by Pulumi

harness.platform.GitopsFilters

Explore with Pulumi AI

harness logo
Harness v0.8.1 published on Saturday, Aug 23, 2025 by Pulumi

    Resource for creating Harness GitOps Filters.

    Create GitopsFilters Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GitopsFilters(name: string, args: GitopsFiltersArgs, opts?: CustomResourceOptions);
    @overload
    def GitopsFilters(resource_name: str,
                      args: GitopsFiltersArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def GitopsFilters(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      filter_properties: Optional[str] = None,
                      identifier: Optional[str] = None,
                      org_id: Optional[str] = None,
                      project_id: Optional[str] = None,
                      type: Optional[str] = None,
                      filter_visibility: Optional[str] = None,
                      name: Optional[str] = None)
    func NewGitopsFilters(ctx *Context, name string, args GitopsFiltersArgs, opts ...ResourceOption) (*GitopsFilters, error)
    public GitopsFilters(string name, GitopsFiltersArgs args, CustomResourceOptions? opts = null)
    public GitopsFilters(String name, GitopsFiltersArgs args)
    public GitopsFilters(String name, GitopsFiltersArgs args, CustomResourceOptions options)
    
    type: harness:platform:GitopsFilters
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args GitopsFiltersArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args GitopsFiltersArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args GitopsFiltersArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GitopsFiltersArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GitopsFiltersArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var gitopsFiltersResource = new Harness.Platform.GitopsFilters("gitopsFiltersResource", new()
    {
        FilterProperties = "string",
        Identifier = "string",
        OrgId = "string",
        ProjectId = "string",
        Type = "string",
        FilterVisibility = "string",
        Name = "string",
    });
    
    example, err := platform.NewGitopsFilters(ctx, "gitopsFiltersResource", &platform.GitopsFiltersArgs{
    	FilterProperties: pulumi.String("string"),
    	Identifier:       pulumi.String("string"),
    	OrgId:            pulumi.String("string"),
    	ProjectId:        pulumi.String("string"),
    	Type:             pulumi.String("string"),
    	FilterVisibility: pulumi.String("string"),
    	Name:             pulumi.String("string"),
    })
    
    var gitopsFiltersResource = new GitopsFilters("gitopsFiltersResource", GitopsFiltersArgs.builder()
        .filterProperties("string")
        .identifier("string")
        .orgId("string")
        .projectId("string")
        .type("string")
        .filterVisibility("string")
        .name("string")
        .build());
    
    gitops_filters_resource = harness.platform.GitopsFilters("gitopsFiltersResource",
        filter_properties="string",
        identifier="string",
        org_id="string",
        project_id="string",
        type="string",
        filter_visibility="string",
        name="string")
    
    const gitopsFiltersResource = new harness.platform.GitopsFilters("gitopsFiltersResource", {
        filterProperties: "string",
        identifier: "string",
        orgId: "string",
        projectId: "string",
        type: "string",
        filterVisibility: "string",
        name: "string",
    });
    
    type: harness:platform:GitopsFilters
    properties:
        filterProperties: string
        filterVisibility: string
        identifier: string
        name: string
        orgId: string
        projectId: string
        type: string
    

    GitopsFilters Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The GitopsFilters resource accepts the following input properties:

    FilterProperties string
    Properties of the filters entity defined in Harness as a JSON string. All values should be arrays of strings. Example: jsonencode({"healthStatus": ["Healthy", "Degraded"], "syncStatus": ["Synced"]})
    Identifier string
    Unique identifier of the resource.
    OrgId string
    Organization Identifier for the Entity.
    ProjectId string
    Project Identifier for the Entity.
    Type string
    Type of GitOps filters.
    FilterVisibility string
    This indicates visibility of filters, by default it is Everyone.
    Name string
    Name of the GitOps filters.
    FilterProperties string
    Properties of the filters entity defined in Harness as a JSON string. All values should be arrays of strings. Example: jsonencode({"healthStatus": ["Healthy", "Degraded"], "syncStatus": ["Synced"]})
    Identifier string
    Unique identifier of the resource.
    OrgId string
    Organization Identifier for the Entity.
    ProjectId string
    Project Identifier for the Entity.
    Type string
    Type of GitOps filters.
    FilterVisibility string
    This indicates visibility of filters, by default it is Everyone.
    Name string
    Name of the GitOps filters.
    filterProperties String
    Properties of the filters entity defined in Harness as a JSON string. All values should be arrays of strings. Example: jsonencode({"healthStatus": ["Healthy", "Degraded"], "syncStatus": ["Synced"]})
    identifier String
    Unique identifier of the resource.
    orgId String
    Organization Identifier for the Entity.
    projectId String
    Project Identifier for the Entity.
    type String
    Type of GitOps filters.
    filterVisibility String
    This indicates visibility of filters, by default it is Everyone.
    name String
    Name of the GitOps filters.
    filterProperties string
    Properties of the filters entity defined in Harness as a JSON string. All values should be arrays of strings. Example: jsonencode({"healthStatus": ["Healthy", "Degraded"], "syncStatus": ["Synced"]})
    identifier string
    Unique identifier of the resource.
    orgId string
    Organization Identifier for the Entity.
    projectId string
    Project Identifier for the Entity.
    type string
    Type of GitOps filters.
    filterVisibility string
    This indicates visibility of filters, by default it is Everyone.
    name string
    Name of the GitOps filters.
    filter_properties str
    Properties of the filters entity defined in Harness as a JSON string. All values should be arrays of strings. Example: jsonencode({"healthStatus": ["Healthy", "Degraded"], "syncStatus": ["Synced"]})
    identifier str
    Unique identifier of the resource.
    org_id str
    Organization Identifier for the Entity.
    project_id str
    Project Identifier for the Entity.
    type str
    Type of GitOps filters.
    filter_visibility str
    This indicates visibility of filters, by default it is Everyone.
    name str
    Name of the GitOps filters.
    filterProperties String
    Properties of the filters entity defined in Harness as a JSON string. All values should be arrays of strings. Example: jsonencode({"healthStatus": ["Healthy", "Degraded"], "syncStatus": ["Synced"]})
    identifier String
    Unique identifier of the resource.
    orgId String
    Organization Identifier for the Entity.
    projectId String
    Project Identifier for the Entity.
    type String
    Type of GitOps filters.
    filterVisibility String
    This indicates visibility of filters, by default it is Everyone.
    name String
    Name of the GitOps filters.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GitopsFilters resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing GitopsFilters Resource

    Get an existing GitopsFilters resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: GitopsFiltersState, opts?: CustomResourceOptions): GitopsFilters
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            filter_properties: Optional[str] = None,
            filter_visibility: Optional[str] = None,
            identifier: Optional[str] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            type: Optional[str] = None) -> GitopsFilters
    func GetGitopsFilters(ctx *Context, name string, id IDInput, state *GitopsFiltersState, opts ...ResourceOption) (*GitopsFilters, error)
    public static GitopsFilters Get(string name, Input<string> id, GitopsFiltersState? state, CustomResourceOptions? opts = null)
    public static GitopsFilters get(String name, Output<String> id, GitopsFiltersState state, CustomResourceOptions options)
    resources:  _:    type: harness:platform:GitopsFilters    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    FilterProperties string
    Properties of the filters entity defined in Harness as a JSON string. All values should be arrays of strings. Example: jsonencode({"healthStatus": ["Healthy", "Degraded"], "syncStatus": ["Synced"]})
    FilterVisibility string
    This indicates visibility of filters, by default it is Everyone.
    Identifier string
    Unique identifier of the resource.
    Name string
    Name of the GitOps filters.
    OrgId string
    Organization Identifier for the Entity.
    ProjectId string
    Project Identifier for the Entity.
    Type string
    Type of GitOps filters.
    FilterProperties string
    Properties of the filters entity defined in Harness as a JSON string. All values should be arrays of strings. Example: jsonencode({"healthStatus": ["Healthy", "Degraded"], "syncStatus": ["Synced"]})
    FilterVisibility string
    This indicates visibility of filters, by default it is Everyone.
    Identifier string
    Unique identifier of the resource.
    Name string
    Name of the GitOps filters.
    OrgId string
    Organization Identifier for the Entity.
    ProjectId string
    Project Identifier for the Entity.
    Type string
    Type of GitOps filters.
    filterProperties String
    Properties of the filters entity defined in Harness as a JSON string. All values should be arrays of strings. Example: jsonencode({"healthStatus": ["Healthy", "Degraded"], "syncStatus": ["Synced"]})
    filterVisibility String
    This indicates visibility of filters, by default it is Everyone.
    identifier String
    Unique identifier of the resource.
    name String
    Name of the GitOps filters.
    orgId String
    Organization Identifier for the Entity.
    projectId String
    Project Identifier for the Entity.
    type String
    Type of GitOps filters.
    filterProperties string
    Properties of the filters entity defined in Harness as a JSON string. All values should be arrays of strings. Example: jsonencode({"healthStatus": ["Healthy", "Degraded"], "syncStatus": ["Synced"]})
    filterVisibility string
    This indicates visibility of filters, by default it is Everyone.
    identifier string
    Unique identifier of the resource.
    name string
    Name of the GitOps filters.
    orgId string
    Organization Identifier for the Entity.
    projectId string
    Project Identifier for the Entity.
    type string
    Type of GitOps filters.
    filter_properties str
    Properties of the filters entity defined in Harness as a JSON string. All values should be arrays of strings. Example: jsonencode({"healthStatus": ["Healthy", "Degraded"], "syncStatus": ["Synced"]})
    filter_visibility str
    This indicates visibility of filters, by default it is Everyone.
    identifier str
    Unique identifier of the resource.
    name str
    Name of the GitOps filters.
    org_id str
    Organization Identifier for the Entity.
    project_id str
    Project Identifier for the Entity.
    type str
    Type of GitOps filters.
    filterProperties String
    Properties of the filters entity defined in Harness as a JSON string. All values should be arrays of strings. Example: jsonencode({"healthStatus": ["Healthy", "Degraded"], "syncStatus": ["Synced"]})
    filterVisibility String
    This indicates visibility of filters, by default it is Everyone.
    identifier String
    Unique identifier of the resource.
    name String
    Name of the GitOps filters.
    orgId String
    Organization Identifier for the Entity.
    projectId String
    Project Identifier for the Entity.
    type String
    Type of GitOps filters.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.8.1 published on Saturday, Aug 23, 2025 by Pulumi