Skip to content

[Enhancement] - Allow multiple filters per request #220

@ribtoks

Description

@ribtoks

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 achieve what I want, now I would need to create artificial tags that will consist of my old tags + concatenated region field (which is a "workaround engineering" that will require additional maintenance effort)
  • I do not understand such restriction necessity

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:

  • OS: -
  • Language Version Go 1.17
  • Browser -
  • Version -

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions