Visitar URL original
Add query filtering to pulumi api list by lblackstone · Pull Request #24594 · pulumi/pulumi · GitHub
Skip to content

Add query filtering to pulumi api list - #24594

Merged
lblackstone merged 3 commits into
masterfrom
lblackstone/context-api
Sep 9, 2026
Merged

lblackstone merged 3 commits into
masterfrom
lblackstone/context-api

Conversation

@lblackstone

@lblackstone lblackstone commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

Problem

pulumi api list can show many endpoints at once, so finding the endpoint you need means scanning the full list or piping the output to another tool.

Solution

Add a --filter flag to pulumi api list that keeps only endpoints whose operation ID, path, tag, summary, or description contains the search text. The match is case-insensitive, trims empty input, and composes with the existing preview and deprecated endpoint filters.

The command help and top-level pulumi api examples now show how to search for endpoints by keyword, including Context API examples.

Testing: Added unit tests for query matching by operation ID, path, and description; empty queries; no-match output; and composition with preview/deprecated filters.

@lblackstone
lblackstone requested a review from a team as a code owner September 8, 2026 22:00
@lblackstone

Copy link
Copy Markdown
Member Author

@julienp I realized that --filter was a better name for this functionality, so I made that mechanical swap. The implementation is otherwise unchanged.

@lblackstone
lblackstone added this pull request to the merge queue Sep 9, 2026
Merged via the queue into master with commit c262d91 Sep 9, 2026
241 of 247 checks passed
@lblackstone
lblackstone deleted the lblackstone/context-api branch September 9, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants