You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/docs/reference/api.md
+59-7Lines changed: 59 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,16 @@ Once generated, copy the key and keep it safe. This key is used to authenticate
37
37
38
38
``<SNAPSHOT_ID>`` can be retrieved from the URL when you browse a snapshot from the repositories list or from the API when you list snapshots of a repository.
39
39
40
+
### Global query parameters
41
+
42
+
-``normalize`` (optional): when set on a request, all keys in the JSON response are converted to lowercase recursively.
43
+
44
+
Example:
45
+
46
+
```bash
47
+
curl --fail-with-body -L -s -X GET -H "Authorization: Bearer <APIKEY>""https://repomanager.mydomain.net/api/v2/hosts/?normalize"
48
+
```
49
+
40
50
41
51
### Source repositories
42
52
@@ -396,8 +406,8 @@ Once generated, copy the key and keep it safe. This key is used to authenticate
<td><code>package</code> (required, in URL)<br><code>version</code> (optional, in URL)<br><code>strict</code> (optional, query parameter)<br><code>strict-name</code> (optional, query parameter)<br><code>strict-version</code> (optional, query parameter)</td>
400
-
<td>List hosts that have the specified package installed, optionally filtered by version. By default, package name and version matching can be non-strict. Use <code>strict</code> to enable strict matching for both package name and version, or use <code>strict-name</code> and <code>strict-version</code> independently.</td>
409
+
<td><code>package</code> (required, in URL)<br><code>version</code> (optional, in URL)<br><code>strict</code> (optional, query parameter)<br><code>strict-name</code> (optional, query parameter)<br><code>strict-version</code> (optional, query parameter)<br><code>absent</code> (optional, query parameter)</td>
410
+
<td>List hosts that have the specified package installed, optionally filtered by version. By default, package name and version matching can be non-strict. Use <code>strict</code> to enable strict matching for both package name and version, or use <code>strict-name</code> and <code>strict-version</code> independently. Set <code>absent</code> to list hosts where the package (and optional version) is not installed.</td>
<td>List hosts with at least one available update (<code>>= 1</code> pending update). Set the <code>packages</code> query parameter to include the list of available updates for each host.</td>
<td>List hosts compliant with all configured compliance criteria (pending updates threshold, latest update recency, and optional reboot-required check). Set the <code>packages</code> query parameter to include the list of available updates for each host.</td>
<td>List hosts not compliant with at least one configured compliance criterion. Set the <code>packages</code> query parameter to include the list of available updates for each host.</td>
0 commit comments