We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
limit
[email protected]
It is currently not possible to filter on AWX /api/v2/jobs/ using the limit field.
/api/v2/jobs/
24.6.0
kubernetes
no
No response
Precondition: Jobs have run on different host using limit during execution.
GET /api/v2/jobs/?limit=localhost
A list of jobs limited to the ones which have localhost in the limit field.
localhost
No filtering is done, and all jobs are returned.
This behavior is also suggested by the documentation on filtering, limit is even mentioned in the example for exact matching.
The field is being ignored since it's listed in ANSIBLE_BASE_REST_FILTERS_RESERVED_NAMES probably since LimitPagination uses limit as query parameter to limit the output, similar to page_size.
ANSIBLE_BASE_REST_FILTERS_RESERVED_NAMES
LimitPagination
page_size
As a workaround it's possible to filter with a lookup ?limit__exact=localhost or ?limit__contains=localhost.
?limit__exact=localhost
?limit__contains=localhost
Regards Julian
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Please confirm the following
[email protected]
instead.)Bug Summary
It is currently not possible to filter on AWX
/api/v2/jobs/
using thelimit
field.AWX version
24.6.0
Select the relevant components
Installation method
kubernetes
Modifications
no
Ansible version
No response
Operating system
No response
Web browser
No response
Steps to reproduce
Precondition: Jobs have run on different host using
limit
during execution.Expected results
A list of jobs limited to the ones which have
localhost
in thelimit
field.Actual results
No filtering is done, and all jobs are returned.
Additional information
This behavior is also suggested by the documentation on filtering, limit is even mentioned in the example for exact matching.
The field is being ignored since it's listed in
ANSIBLE_BASE_REST_FILTERS_RESERVED_NAMES
probably sinceLimitPagination
useslimit
as query parameter to limit the output, similar topage_size
.As a workaround it's possible to filter with a lookup
?limit__exact=localhost
or?limit__contains=localhost
.Regards Julian
The text was updated successfully, but these errors were encountered: