libcloud icon indicating copy to clipboard operation
libcloud copied to clipboard

RFE: add name parameters to list_* methods

Open ktdreyer opened this issue 4 years ago • 2 comments

Feature Request

In large environments, running list_nodes() and then filtering the list by name client-side is expensive.

It would be fantastic if I could filter nodes, images, and volumes server-side instead. Can we add a new name kwarg to list_nodes(), list_images(), list_volumes(), etc?

ktdreyer avatar Jan 11 '21 19:01 ktdreyer

I agree that this would be a good feature to have. Some drivers already implement this functionality via extension / ex_ arguments.

As far as implementation goes - ideally we should filter on the server side where that is supported, but for compatibility reasons, where it's not supported, we can implement simple late filtering on the client side.

Kami avatar Jan 22 '21 17:01 Kami

Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically marking is as stale. If this issue is not relevant or applicable anymore (problem has been fixed in a new version or similar), please close the issue or let us know so we can close it. On the contrary, if the issue is still relevant, there is nothing you need to do, but if you have any additional details or context which would help us when working on this issue, please include it as a comment to this issue.

stale[bot] avatar Jun 26 '21 03:06 stale[bot]