Overview
Port's search and query syntax provides a powerful way to filter and retrieve data from your software catalog. You can use this syntax across the Port product to dynamically filter entities, control permissions, configure automations, and more.
Where to use search & query?
You can use the search and query syntax in the following areas:
- Catalog pages - Initial filters for pages and tables.
- Entity pages - Filters for custom related entity tabs.
- Dashboard widgets - Dashboard-level filters and widget-specific filters for data widgets.
- Blueprint read permissions - Dynamic
policyrules to control which entities users can see. - Aggregation properties - Filters to determine which entities are included in aggregation calculations.
- Scorecards - Filters to determine which entities a rule evaluates.
- Self-service actions - Action conditions, entity input datasets, and dynamic permissions.
- API - Search endpoints (search entities and search a blueprint's entities).
For practical examples of using search & query in each of these areas, see the examples page.
Common queries usage
High quality search is essential to effectively track assets in your software catalog.
Using Port's search you can:
- Find all running services that are not healthy.
- List all libraries that have known vulnerabilities.
- Filter all services running in a specific cluster (in a query or self service form).
- Catalog initial filters based on the logged in user's properties.
Examples
Refer to the examples page for practical code snippets for search.
Advanced
Refer to the advanced page for advanced search use cases and outputs.