hashicorp / hcdiag

hcdiag is a CLI utility that collects and bundles product and platform diagnostics. It supports Consul, Nomad, TFE, and Vault.
Mozilla Public License 2.0
56 stars 8 forks source link

Pagination support #182

Closed anniehedgpeth closed 2 years ago

anniehedgpeth commented 2 years ago

What problem would you like hcdiag to address?
I would like for the httper seeker to be able to iterate through all pages of an API response.

Who is the audience for this request?
TFE engineering team

What would the ideal solution look like?
Ideally, we would like to be able to request to see all organizations, users, workspaces, etc. and that hcdiag would be able to iterate through the pagination in order to retrieve them.

What alternatives have you considered? At first we thought that we may only need the meta.status-counts for the purposes of data collection (RE: TF-533) so we'd only need to return the first page, however there will certainly be situations in which we'll need more data when troubleshooting customers' environments and iterating through each of the pages to retrieve all of the data will be necessary.

What is the impact?
(Explained in previous question.)

aliciaclark1066 commented 2 years ago

Per customer confirmation, this is no longer needed.