Registry V3 Filters
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.
Unique identifier for the Harness account.
Unique identifier for the organization within the account.
Example: default or engineering_org
Unique identifier for the project within the organization.
Example: my_project or frontend_services
Resource type whose filter definitions are requested by
GET /filters?resource_type=....
Filter by package type
Optional filter identifier. When provided, returns only the filter definition matching this id.
Search term for filtering results.
Example: search_term=prod might match keys like "production", "prod-env", etc.
response for list filters
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.
Error response.
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 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.
Unique identifier for the Harness account.
Unique identifier for the organization within the account.
Example: default or engineering_org
Unique identifier for the project within the organization.
Example: my_project or frontend_services
Resource type whose filter definitions are requested by
GET /filters?resource_type=....
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).
Filter by package type
Optional list of option values. When provided, returns only the options whose values match one of the supplied values.
Search term for filtering results.
Example: search_term=prod might match keys like "production", "prod-env", etc.
response for list filter options
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.
Error response.
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?