Infoblox-API-Python icon indicating copy to clipboard operation
Infoblox-API-Python copied to clipboard

API returns an error if >1000 results

Open yohancourbe opened this issue 7 years ago • 1 comments

The API returns an error if it returns more than 1000 elements. The API supports an input _max_results which can take negative and positive integer:

  • A negative number will return an error if the maximum is reached
  • A positive number will limit return the maximum elements without triggering an error

By default this value is -1000 which means that if you have more than 1000 elements to return you will receive an error.

I suggest two edits:

  1. Implement an input to all getters that can return more than one element
  2. Implement an exception raising for this API error

yohancourbe avatar Dec 19 '17 08:12 yohancourbe

I already made the changes for my fist suggestion, can I make a pull request ?

yohancourbe avatar Dec 19 '17 09:12 yohancourbe