Skip to content

feat: add filtering options to provisioners list #19378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

rafrdz
Copy link
Contributor

@rafrdz rafrdz commented Aug 15, 2025

Summary

In this pull request we're adding support for additional filtering options to the provisioners list CLI command and the /provisionerdaemons API endpoint.

Resolves: #18783

Changes

Added CLI Options

  • --show-offline: When this option is provided, all provisioner daemons will be returned. This means that when --show-offline is not provided only idle and busy provisioner daemons will be returned.
  • --status=<list_of_statuses>: When this option is provided with a comma-separated list of valid statuses (idle, busy, or offline) only provisioner daemons that have these statuses will be returned.
  • --max-age=<duration>: When this option is provided with a valid duration value (e.g., 24h, 30s) only provisioner daemons with a last_seen_at timestamp within the provided max age will be returned.

Query Params

  • ?offline=true: Include offline provisioner daemons in the results. Offline provisioner daemons will be excluded if ?offline=false or if offline is not provided.
  • ?status=<list_of_statuses>: Include provisioner daemons with the specified statuses.
  • ?max_age=<duration>: Include provisioner daemons with a last_seen_at timestamp within the max age duration.

Show Offline vs Offline Status

To list offline provisioner daemons, users can either:

  1. Include the --show-offline option

OR

  1. Include offline in the list of values provided to the --status option

@rafrdz rafrdz marked this pull request as draft August 15, 2025 21:26
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.

Feature Request: Improve Provisioner List Display and Filtering
1 participant