vmware / pyvmomi-community-samples

A place for community contributed samples for the pyVmomi library.
Apache License 2.0
1.01k stars 922 forks source link

Include a pagination example #713

Open jonathanbeber opened 1 year ago

jonathanbeber commented 1 year ago

Is your feature request related to a problem? Please describe.

When a ContainerView is created, is there a way to use pagination? For example

>>> container = service_instance.content.viewManager.CreateContainerView(
   service_instance.content.rootFolder, [vim.HostSystem], True
)
>>> len(container)
199

In a busy server, always returns 199, even with more resources in there.

Describe the solution you'd like

If there's pagination, we should have an example for that. At least on how to list more than 199 items.

Describe alternatives you've considered

No response

Additional context

No response