mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
This change adds the ability to filter additional host info via the list hosts endpoint; a continuation from [here](https://github.com/kolide/fleet/pull/2330), but now filtering is accomplished via SQL. Additional object without filter: ``` curl 'https://localhost:8080/api/v1/kolide/hosts' ... "additional": { "macs": [ { "mac": "00:00:00:00:00:00" }, { "mac": "02:42:c0:a8:10:05" } ], "time": [ { "day": "13", "hour": "3", "year": "2020", "month": "10", "minutes": "43", "seconds": "11", "weekday": "Tuesday", "datetime": "2020-10-13T03:43:11Z", "iso_8601": "2020-10-13T03:43:11Z", "timezone": "GMT", "timestamp": "Tue Oct 13 03:43:11 2020 UTC", "unix_time": "1602560591", "local_time": "1602560591", "local_timezone": "UTC" } }, ... ``` Additional object with filter: ``` curl 'https://localhost:8080/api/v1/kolide/hosts?additional_info_filters=macs,notreal' ... "additional": { "macs": [ { "mac": "00:00:00:00:00:00" }, { "mac": "02:42:c0:a8:10:05" } ], "notreal": null }, ... ``` |
||
|---|---|---|
| .. | ||
| app.go | ||
| campaigns.go | ||
| carves.go | ||
| datastore.go | ||
| emails.go | ||
| fleetctl.go | ||
| hosts.go | ||
| hosts_test.go | ||
| import_config.go | ||
| import_config_test.go | ||
| import_config_unmarshaler.go | ||
| invites.go | ||
| labels.go | ||
| live_query_store.go | ||
| logging.go | ||
| meta.go | ||
| network_interfaces.go | ||
| osquery.go | ||
| osquery_options.go | ||
| osquery_options_test.go | ||
| packs.go | ||
| queries.go | ||
| queries_test.go | ||
| query_results.go | ||
| scheduled_queries.go | ||
| service.go | ||
| sessions.go | ||
| status.go | ||
| targets.go | ||
| traits.go | ||
| transactions.go | ||
| users.go | ||
| users_test.go | ||