Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Registry V3 Filters

List Filters

get

List filter definitions available for the requested resource_type (REGISTRY, PACKAGE, or VERSION).

Filters returned depend on the scope inferred from the supplied identifiers (ACCOUNT / ORG / PROJECT). For PACKAGE and VERSION resource types, if package_type is provided the response is augmented with type-specific filters (e.g. Docker, Maven, npm). package_type is ignored when resource_type=REGISTRY.

Query parameters
account_identifierstringRequired

Unique identifier for the Harness account.

org_identifierstringOptional

Unique identifier for the organization within the account.

Example: default or engineering_org

project_identifierstringOptional

Unique identifier for the project within the organization.

Example: my_project or frontend_services

resource_typestring · enumRequired

Resource type whose filter definitions are requested by GET /filters?resource_type=....

Possible values:
package_typestringOptional

Filter by package type

filter_idstringOptional

Optional filter identifier. When provided, returns only the filter definition matching this id.

search_termstringOptional

Search term for filtering results.

Example: search_term=prod might match keys like "production", "prod-env", etc.

Responses
200

response for list filters

application/json

Response body for a list filters query. Contains a single merged list of filter definitions — static filters (from configuration) followed by dynamic metadata filters (one per user-defined metadata key, identified by metadata.<key>). The list is capped server-side (currently at 100 dynamic entries) and is not paginated; search_term narrows both static and dynamic entries.

get/v3/filters
GET /api/v3/filters?account_identifier=text&resource_type=REGISTRY HTTP/1.1
Accept: */*
{
  "filters": [
    {
      "conditions": [
        "EQ"
      ],
      "dataType": "string",
      "field": "text",
      "id": "text",
      "inputType": "text",
      "label": "text",
      "supportsOptions": true
    }
  ]
}

List Filter Options

get

List the selectable values for a single filter identified by filter_id. Same authorization and scoping semantics as GET /filters. package_type is only meaningful for filters on PACKAGE and VERSION resources and is ignored otherwise; search_term narrows the returned options in place of pagination.

Query parameters
account_identifierstringRequired

Unique identifier for the Harness account.

org_identifierstringOptional

Unique identifier for the organization within the account.

Example: default or engineering_org

project_identifierstringOptional

Unique identifier for the project within the organization.

Example: my_project or frontend_services

resource_typestring · enumRequired

Resource type whose filter definitions are requested by GET /filters?resource_type=....

Possible values:
filter_idstringRequired

Identifier of the filter whose selectable options should be returned. Matches FilterDefinitionV3.id from GET /filters, including namespaced ids for dynamic filters (e.g. metadata.env).

package_typestringOptional

Filter by package type

option_valuesstring[]Optional

Optional list of option values. When provided, returns only the options whose values match one of the supplied values.

search_termstringOptional

Search term for filtering results.

Example: search_term=prod might match keys like "production", "prod-env", etc.

Responses
200

response for list filter options

application/json

Response body for GET /filters/options. Returns the set of selectable values for a single filter. The list is bounded server-side; search_term narrows it in place of pagination.

get/v3/filters/options
GET /api/v3/filters/options?account_identifier=text&resource_type=REGISTRY&filter_id=text HTTP/1.1
Accept: */*
{
  "options": [
    {
      "label": "text",
      "value": "text"
    }
  ]
}

Last updated

Was this helpful?