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
+36-10Lines changed: 36 additions & 10 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 all up-to-date (compliant) hosts, i.e. hosts whose pending updates count is below the configured threshold and whose latest update is within the configured threshold (in days). Set the <code>packages</code> query parameter to also include the list of available updates for each host.</td>
<td>List all outdated (non-compliant) hosts, i.e. hosts whose pending updates count is greater than or equal to the configured threshold, or whose latest update is older than the configured threshold (in days). Set the <code>packages</code> query parameter to also include the list of available updates for each host.</td>
0 commit comments