infoblox-go-client icon indicating copy to clipboard operation
infoblox-go-client copied to clipboard

Not possible to set query parameters like _max_results

Open dvob opened this issue 6 years ago • 0 comments

Since its not possible to set _max_results as query parameter, it is not possible to get records from a zone with more than 1000 records. It fails with the following error:

... 2018-11-23T12:00:00.000000Z info WAPI request error: 400('400 Bad Request') Contents: { "Error": "AdmConProtoError: Result set too large (> 1000)", "code": "Client.Ibap.Proto", "text": "Result set too large (> 1000)" } ...

Further it takes a long time until GetObject returns, since it tries to get the records four times (2x makeRequest in GetObject and 2x SendRequest in makeRequest).

So it would be nice if the following things get fixed:

  1. Allow to set Query Parameters like _max_results and so on
  2. Abort after the first failed request

dvob avatar Nov 23 '18 12:11 dvob