Skip to content

Support custom query params in addition to args, filter and attrs (pagination support)#93

Open
stkomitov wants to merge 1 commit intonetscaler:mainfrom
stkomitov:SupportQueryParams
Open

Support custom query params in addition to args, filter and attrs (pagination support)#93
stkomitov wants to merge 1 commit intonetscaler:mainfrom
stkomitov:SupportQueryParams

Conversation

@stkomitov
Copy link
Copy Markdown

Currently there is no way to add query parameters other than args, filter and attrs.
For pagination support (eg. fetching all the SSL Cert Keys) we need to pass pageno=<page_num>&pagesize=<page_size>.

Now it is possible:

findParams := service.FindParams{
	ResourceType: service.Sslcertkey.Type(),
	QueryMap: map[string]string{
		"pageno":   "1",
		"pagesize": "10",
	},
}

sslCertKeys, err := client.FindResourceArrayWithParams(findParams)

… allow pagination support eg. pageno=1&pagesize=10)
@stkomitov stkomitov force-pushed the SupportQueryParams branch from a892937 to 1d69411 Compare August 1, 2025 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant