elastic / elastic/ecctl

Support pagination for allocator list command

Open
#573 0 comments 0 reactions 0 assignees View on GitHub
Team:Delivery
Dominant language
Go
Stars
58
Forks
61
PR merge metrics
No merged PRs in 30d

Description

In an upcoming version of the API, the response to the `allocator list` command will honor the limit of 100 allocators when the request does not contain a query. Currently, this limit is ignored and all allocators are returned, which is the expected output of this command.

To continue to be able to return the entire list of allocators, this command should support pagination to query multiple times the API using the `From` and `Size` as defined by [swagger generated models](https://github.com/elastic/cloud-sdk-go/blob/e8177c2c6744e4ac420a05c806513c444da528a7/pkg/client/platform_infrastructure/get_allocators_parameters.go#L78-L109) to return all allocators or until the requested amount of allocators have been retrieved.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.