AWahlqvist / Infoblox-PowerShell-Module

PowerShell Module for Infoblox
http://dollarunderscore.azurewebsites.net/?p=2201
MIT License
12 stars 1 forks source link

Paging - Get-IBResourceRecord #2

Open RamblingCookieMonster opened 10 years ago

RamblingCookieMonster commented 10 years ago

First, thanks for posting this code, very helpful and practical for getting started!

Just a heads up, it looks like if more than 1000 results are returned from Get-IBResourceRecord, we get an error 400.

An example solution: First request: use _paging=1, _max_results=, _return_as_object=1 for the first request All other requests: _page_id=

I ended up using the pseudologic above and always force paging with a default of 1000 max results.

Cheers!

AWahlqvist commented 10 years ago

Hi, Thanks for reporting that! I'll look into it!

I finally received something that looked like proper documentation of the API the other day, so I will try to start working on this project again soon, sadly, time has not been on my side lately.

I would really love some help with this project, so if you create new cmdlets/fixes and want to contribute, you are more than welcome :-)

Take care!

RamblingCookieMonster commented 9 years ago

Hi!

I finally had time to sanitize and clean up some of the code for this. My code is a bit crude, and there's a good bit of it, ended up creating a separate repository. If you're still working on it and it would help, feel free borrow from it.

Thanks for the ideas and examples in your code, it was quite helpful!

AWahlqvist commented 9 years ago

Hi again :) Nice! I would love to try and merge our efforts if possible, doesn't matter which repository we want to use, I just feel that this product really needs a PoSh-module, but I completely agree with your blogpost aswell, they should do this for us...

My code also needs a bit (a lot) of cleaning up, I created it mostly to try to find other people interested in helping out :-)

I've had quite a lot of interest in using the module, but not so much in developing it... So if you are going to keep working on it, we could try to share the burden... :-)

But it seems you, just like me, have other priorities right now. So we'll see I guess :-)