bseltz-cohesity / scripts

Cohesity REST API examples in PowerShell and Python
Apache License 2.0
102 stars 40 forks source link

Get-CohesityObject limited to 100 objects #150

Closed regloff72 closed 5 months ago

regloff72 commented 5 months ago

Get-CohesityObject seems to be limited to 100 random objects. Is this by design? I am guessing not, but thought I would ask. The help page did not mention an object limit.

We probably have well over 2,000 hosts under the registered sources on one of our clusters and this will only return 100 maximum.

Get-CohesityObject -SearchString *

regloff72 commented 5 months ago

For an example of what I am seeing here.. (In this case for me, I could very well use 'Get-CohesityVM' to accomplish my specific goal) but thought it might prove useful to mention this. :)

Same cluster / Same Session.

PS C:\WINDOWS\system32> $test = (Get-CohesityObject -SearchString *) PS C:\WINDOWS\system32> $test.Length 100

PS C:\WINDOWS\system32> $test2 = (Get-CohesityVMwareVM) PS C:\WINDOWS\system32> $test2.Length 3785

bseltz-cohesity commented 5 months ago

Hi @regloff72 Get-CohesityObject is an official Cohesity.PowerShell cmdlet, maintained by Cohesity Engineering. Can you please raise your issue in that repository, here: https://github.com/cohesity/cohesity-powershell-module/issues

regloff72 commented 5 months ago

Thanks for the pointer :)