mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Merge pull request #10373 from AlanCoding/limit_docs
Add OPTIONS documentation for new job limit feature Looking at the docs and stuff from #10023 I'm sure this is somewhere else too, but this is the place that users should naturally expect it to be. Reviewed-by: Chris Meyers <None>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{% include "api/job_job_events_list.md" %}
|
||||
1
awx/api/templates/api/inventory_update_events_list.md
Normal file
1
awx/api/templates/api/inventory_update_events_list.md
Normal file
@@ -0,0 +1 @@
|
||||
{% include "api/job_job_events_list.md" %}
|
||||
21
awx/api/templates/api/job_job_events_list.md
Normal file
21
awx/api/templates/api/job_job_events_list.md
Normal file
@@ -0,0 +1,21 @@
|
||||
{% include "api/sub_list_api_view.md" %}
|
||||
{% ifmeth GET %}
|
||||
## Special limit feature for event list views
|
||||
|
||||
Use the `limit` query string parameter to opt out of the pagination keys.
|
||||
Doing this can improve response times for jobs that produce a large volume
|
||||
of outputs.
|
||||
|
||||
?limit=25
|
||||
|
||||
This will set the page size to 25 and the `previous` and `next` keys will be
|
||||
omitted from the response data. The data structure will look like this.
|
||||
|
||||
{
|
||||
"results": [
|
||||
...
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
{% endifmeth %}
|
||||
@@ -1,25 +0,0 @@
|
||||
Make a GET request to retrieve the list of aggregated play data associated with a job
|
||||
|
||||
## Filtering
|
||||
|
||||
This endpoints supports a limited filtering subset:
|
||||
|
||||
?event_id__in=1,2,3
|
||||
|
||||
Will show only the given ids.
|
||||
|
||||
?event_id__gt=1
|
||||
|
||||
Will show ids greater than the given one.
|
||||
|
||||
?event_id__lt=3
|
||||
|
||||
Will show ids less than the given one.
|
||||
|
||||
?failed=true
|
||||
|
||||
Will show only failed plays. Alternatively `false` may be used.
|
||||
|
||||
?play__icontains=test
|
||||
|
||||
Will filter plays matching the substring `test`
|
||||
@@ -1,27 +0,0 @@
|
||||
Make a GET request to retrieve the list of aggregated task data associated with the play given by event_id.
|
||||
|
||||
`event_id` is a required query parameter and must match the job event id of the parent play in order to receive the list of tasks associated with the play
|
||||
|
||||
## Filtering
|
||||
|
||||
This endpoints supports a limited filtering subset:
|
||||
|
||||
?event_id__in=1,2,3
|
||||
|
||||
Will show only the given task ids under the play given by `event_id`.
|
||||
|
||||
?event_id__gt=1
|
||||
|
||||
Will show ids greater than the given one.
|
||||
|
||||
?event_id__lt=3
|
||||
|
||||
Will show ids less than the given one.
|
||||
|
||||
?failed=true
|
||||
|
||||
Will show only failed plays. Alternatively `false` may be used.
|
||||
|
||||
?task__icontains=test
|
||||
|
||||
Will filter tasks matching the substring `test`
|
||||
1
awx/api/templates/api/project_update_events_list.md
Normal file
1
awx/api/templates/api/project_update_events_list.md
Normal file
@@ -0,0 +1 @@
|
||||
{% include "api/job_job_events_list.md" %}
|
||||
1
awx/api/templates/api/system_job_events_list.md
Normal file
1
awx/api/templates/api/system_job_events_list.md
Normal file
@@ -0,0 +1 @@
|
||||
{% include "api/job_job_events_list.md" %}
|
||||
Reference in New Issue
Block a user