From d5aabf39b5c8e7b85b1a003100c1a64f7cdff4dc Mon Sep 17 00:00:00 2001 From: David Dymko Date: Tue, 4 Jan 2022 08:58:38 -0500 Subject: [PATCH] added list instance query params --- listOptions.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/listOptions.go b/listOptions.go index f30f2a0..beed6ba 100644 --- a/listOptions.go +++ b/listOptions.go @@ -1,7 +1,15 @@ package govultr -// ListOptions are the available fields that can be used with pagination +// ListOptions are the available query params type ListOptions struct { + // These query params are used for all list calls that support pagination PerPage int `url:"per_page,omitempty"` Cursor string `url:"cursor,omitempty"` + + // These three query params are currently used for the list instance call + // These may be extended to other list calls + // https://www.vultr.com/api/#operation/list-instances + MainIP string `url:"main_ip,omitempty"` + Label string `url:"label,omitempty"` + Tag string `url:"tag,omitempty"` }