Skip to content

Commit a80466a

Browse files
authored
Docs: More readability improvements to "Get host" response (#25228)
Moved weightier items to the bottom of the response and smaller items up top.
1 parent edbba87 commit a80466a

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

docs/REST API/rest-api.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2681,6 +2681,31 @@ Returns the information of the specified host.
26812681
"percent_disk_space_available": 74,
26822682
"gigs_total_disk_space": 160,
26832683
"disk_encryption_enabled": true,
2684+
"status": "online",
2685+
"display_text": "23cfc9caacf0",
2686+
"issues": {
2687+
"failing_policies_count": 1,
2688+
"critical_vulnerabilities_count": 2, // Available in Fleet Premium
2689+
"total_issues_count": 3
2690+
},
2691+
"batteries": [
2692+
{
2693+
"cycle_count": 999,
2694+
"health": "Normal"
2695+
}
2696+
],
2697+
"geolocation": {
2698+
"country_iso": "US",
2699+
"city_name": "New York",
2700+
"geometry": {
2701+
"type": "point",
2702+
"coordinates": [40.6799, -74.0028]
2703+
}
2704+
},
2705+
"maintenance_window": {
2706+
"starts_at": "2024-06-18T13:27:18−04:00",
2707+
"timezone": "America/New_York"
2708+
},
26842709
"users": [
26852710
{
26862711
"uid": 0,
@@ -2733,8 +2758,6 @@ Returns the information of the specified host.
27332758
}
27342759
],
27352760
"packs": [],
2736-
"status": "online",
2737-
"display_text": "23cfc9caacf0",
27382761
"policies": [
27392762
{
27402763
"id": 2,
@@ -2800,29 +2823,6 @@ Returns the information of the specified host.
28002823
"installed_paths": ["/usr/lib/some-path-2"]
28012824
}
28022825
],
2803-
"issues": {
2804-
"failing_policies_count": 1,
2805-
"critical_vulnerabilities_count": 2, // Fleet Premium only
2806-
"total_issues_count": 3
2807-
},
2808-
"batteries": [
2809-
{
2810-
"cycle_count": 999,
2811-
"health": "Normal"
2812-
}
2813-
],
2814-
"geolocation": {
2815-
"country_iso": "US",
2816-
"city_name": "New York",
2817-
"geometry": {
2818-
"type": "point",
2819-
"coordinates": [40.6799, -74.0028]
2820-
}
2821-
},
2822-
"maintenance_window": {
2823-
"starts_at": "2024-06-18T13:27:18−04:00",
2824-
"timezone": "America/New_York"
2825-
},
28262826
"mdm": {
28272827
"encryption_key_available": true,
28282828
"enrollment_status": "On (manual)",

0 commit comments

Comments
 (0)