pyvmomi-community-samples icon indicating copy to clipboard operation
pyvmomi-community-samples copied to clipboard

Powershell get-view in pyvmomi

Open RalfAlbers opened this issue 1 year ago • 3 comments

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

In VMware PowerCLI I can retrieve very quick with get-view with -filter and -property data from our large vCenter. With using -filter and -property, the data is filtered on vCenter side, not on client side. This reduces a lot of network traffic with each API Call. This is an example: Get-View -ViewType VirtualMachine -Filter @{'Runtime.PowerState'='poweredOn';'Guest.ToolsState'='ToolsOk'} -property Name

Describe the solution you'd like

How can In get this done with pyvmomi?

Describe alternatives you've considered

Additional context

RalfAlbers avatar Feb 22 '24 11:02 RalfAlbers