From edbba87d08840e48d75ce0827f1bca8ca2bdb345 Mon Sep 17 00:00:00 2001 From: Rachael Shaw Date: Tue, 7 Jan 2025 17:11:50 -0600 Subject: [PATCH] API docs: Make "Get host" example response more readable (#25227) Moved software array further down in the response. --- docs/REST API/rest-api.md | 66 +++++++++++++++++++-------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/docs/REST API/rest-api.md b/docs/REST API/rest-api.md index fec0670a4a..d8d602d418 100644 --- a/docs/REST API/rest-api.md +++ b/docs/REST API/rest-api.md @@ -2634,39 +2634,6 @@ Returns the information of the specified host. "host": { "created_at": "2021-08-19T02:02:22Z", "updated_at": "2021-08-19T21:14:58Z", - "software": [ - { - "id": 408, - "name": "osquery", - "version": "4.5.1", - "source": "rpm_packages", - "browser": "", - "generated_cpe": "", - "vulnerabilities": null, - "installed_paths": ["/usr/lib/some-path-1"] - }, - { - "id": 1146, - "name": "tar", - "version": "1.30", - "source": "rpm_packages", - "browser": "", - "generated_cpe": "", - "vulnerabilities": null - }, - { - "id": 321, - "name": "SomeApp.app", - "version": "1.0", - "source": "apps", - "browser": "", - "bundle_identifier": "com.some.app", - "last_opened_at": "2021-08-18T21:14:00Z", - "generated_cpe": "", - "vulnerabilities": null, - "installed_paths": ["/usr/lib/some-path-2"] - } - ], "id": 1, "detail_updated_at": "2021-08-19T21:07:53Z", "last_restarted_at": "2020-11-01T03:01:45Z", @@ -2800,6 +2767,39 @@ Returns the information of the specified host. "critical": false } ], + "software": [ + { + "id": 408, + "name": "osquery", + "version": "4.5.1", + "source": "rpm_packages", + "browser": "", + "generated_cpe": "", + "vulnerabilities": null, + "installed_paths": ["/usr/lib/some-path-1"] + }, + { + "id": 1146, + "name": "tar", + "version": "1.30", + "source": "rpm_packages", + "browser": "", + "generated_cpe": "", + "vulnerabilities": null + }, + { + "id": 321, + "name": "SomeApp.app", + "version": "1.0", + "source": "apps", + "browser": "", + "bundle_identifier": "com.some.app", + "last_opened_at": "2021-08-18T21:14:00Z", + "generated_cpe": "", + "vulnerabilities": null, + "installed_paths": ["/usr/lib/some-path-2"] + } + ], "issues": { "failing_policies_count": 1, "critical_vulnerabilities_count": 2, // Fleet Premium only