vatesfr / terraform-provider-xenorchestra

Xen Orchestra provider for Terraform
MIT License
150 stars 33 forks source link

Allow users to filter by any field they want #164

Open gohumble opened 3 years ago

gohumble commented 3 years ago

Currently, filtering is mostly done on the client side, without taking advantage of XO api's server side filtering capabilities.

Add server side filtering by any key - value pair for data sources.

_Originally posted by @ddelnano in https://github.com/terra-farm/terraform-provider-xenorchestra/pull/161#discussion_r667262763_

Another way we could design this is to take the aws amis data source approach (docs). Since the underlying XO api allows us to provide any key, value pairs we want, we could allow a user to filter by any field they want even if we didn't identify their use case ahead of time.