-
Notifications
You must be signed in to change notification settings - Fork 472
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
#14415 API design: Per-host query report endpoint #14805
Conversation
docs/REST API/rest-api.md
Outdated
| Name | Type | In | Description | | ||
| --------- | ------- | ---- | ------------------------------------------ | | ||
| id | integer | path | **Required**. The ID of the desired query. | | ||
| host_id | integer | path | If provided, filters to only include results for the specified host. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rachaelshaw we may need an example for clarity, but to confirm: will it look like this?
GET /api/v1/fleet/queries/31/report/439
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mostlikelee whoops, I totally meant for host_id
to be a query parameter, forgot to change the "In" when I duplicated that line. I just updated the PR; would be weird to have an optional parameter in the path 🤦♀️
So should look like: GET /api/v1/fleet/queries/31/report?host_id=439
Co-authored-by: Tim Lee <timlee@fleetdm.com>
Adds new API endpoint to enable displaying query reports per-host (#14415).