vultr / govultr

Vultr Go API client
MIT License
233 stars 56 forks source link

[Enhancement] - Allow multiple filters per request #220

Open ribtoks opened 2 years ago

ribtoks commented 2 years ago

Describe the bug I cannot receive a list of instances filtered with tag and region using ListInstances API, because I'm receiving an error "Only one filter per request is allowed.". This error is frustrating to me because:

To Reproduce Steps to reproduce the behavior: Construct govultr.ListOptions specifying Tag and Region in a single object.

Expected behavior A ListInstances API call succeeds and returns instances in the specified region with the specified tag.

Screenshots

Desktop (please complete the following information where applicable:

Additional context

ddymko commented 2 years ago

@ribtoks We'll look into this for you

ddymko commented 2 years ago

@ribtoks This error looks like it is coming back from API. We'll have to take a look at the API. I'll make an internal ticket to dig into this on the API side and get back to you.

ribtoks commented 2 years ago

@ddymko Thank you very much!