-
Notifications
You must be signed in to change notification settings - Fork 843
API design: #33758 (OS vulnerabilities bug) #33533
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ff62ff9
Update rest-api.md
rachaelshaw 7c9848e
Update rest-api.md
rachaelshaw fdf67cd
Update docs/REST API/rest-api.md
rachaelshaw ed14fed
Update docs/REST API/rest-api.md
rachaelshaw 2239fa5
Merge branch 'main' into 33494-api-changes
noahtalerman 97c0672
Update rest-api.md
noahtalerman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9681,6 +9681,7 @@ Returns a list of all operating systems. | |
| | platform | string | query | Filters the hosts to the specified platform | | ||
| | os_name | string | query | The name of the operating system to filter hosts by. `os_version` must also be specified with `os_name` | | ||
| | os_version | string | query | The version of the operating system to filter hosts by. `os_name` must also be specified with `os_version` | | ||
| | max_vulnerabilities | integer | query | Limits the number of `vulnerabilities` returned per OS version. (If omitted, returns all vulnerabilities.) | | ||
| | page | integer | query | Page number of the results to fetch. | | ||
| | per_page | integer | query | Results per page. | | ||
| | order_key | string | query | What to order results by. Allowed fields are: `hosts_count`. Default is `hosts_count` (descending). | | ||
|
|
@@ -9704,6 +9705,7 @@ Returns a list of all operating systems. | |
| "version": "10.0.22621.1234", | ||
| "platform": "windows", | ||
| "generated_cpes": [], | ||
| "vulnerabilities_count": 1, | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| "vulnerabilities": [ | ||
|
rachaelshaw marked this conversation as resolved.
|
||
| { | ||
| "cve": "CVE-2022-30190", | ||
|
|
@@ -10003,6 +10005,7 @@ Retrieves information about the specified operating system (OS) version. | |
| | ---- | ---- | -- | ----------- | | ||
| | id | integer | path | **Required.** The OS version's ID. | | ||
| | team_id | integer | query | _Available in Fleet Premium_. Filters response data to the specified team. Use `0` to filter by hosts assigned to "No team". | | ||
| | max_vulnerabilities | integer | query | Limits the number of `vulnerabilities` returned. (If omitted, returns all vulnerabilities.) For Linux OS's, doesn't limit the number of vulnerabilities returned in the `kernels` array. | | ||
|
|
||
| ##### Default response | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

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.
Dev note
New optional parameter. The UI sets this to
3.If
0,vulnerabilitieslist is an empty array.If <0, returns an error: "max_vulnerabilities must be >= 0"