Is there sample code (preferably in golang) availa...
# fleet
e
Is there sample code (preferably in golang) available somewhere, on how to properly consume all pages/results from an api endpoint like
GET /api/v1/fleet/hosts?page=0&per_page=100&order_key=host_name
?
s
The
fleetctl
utility would be a good example
n
@Edward what do you mean by “consume?” Are you trying to place the results in some sort of datastore?
e
yes, that's correct, I want to get all hosts place their information in a datastore. So I would need to make http get request calls page by page right?