Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get vms in folder #87

Closed
navi86 opened this issue Aug 4, 2018 · 3 comments
Closed

how to get vms in folder #87

navi86 opened this issue Aug 4, 2018 · 3 comments
Assignees

Comments

@navi86
Copy link

navi86 commented Aug 4, 2018

I am trying to get VMs from specific folder and subfolders.
I've opened issue 85, but the solution doesn't provide with vms in subfolder.
Is it not possible to get vms in subfolders ?

@tianhao64
Copy link
Contributor

The API currently doesn't include vms in subfolders. I just checked the API doc and it doesn't mention this behavior. I will file a bug to fix the doc. I will also file a feature request to add the recursive capability to the API.

@tianhao64 tianhao64 self-assigned this Aug 6, 2018
@mike-19
Copy link

mike-19 commented Aug 3, 2020

any idea on when this feature will be made available?

@vazome
Copy link

vazome commented May 21, 2023

It seems like you can already do it now with client.vcenter.VM.list(VM.FilterSpec(folders=folder_id))
https://developer.vmware.com/apis/vsphere-automation/latest/vcenter/data-structures/VM/FilterSpec/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants