Terraform list VMs in VMware folder

How to list all VMs in a specific vsphere folder? say, “/center01/vm/oldVmsFolder”
I was trying to use data vsphere_folder. And it does not seem to work this way.

data “vsphere_folder” “my_folder” {
path = “center01/vm/oldVmsfolder” # Specify the path to your folder
data “vsphere_virtual_machine” “vms_in_folder” {
folder_id = data.vsphere_folder.my_folder.id <---- not correct

Folder is not vsphere_virtual_machine attr. I want to work on some VMs one folder at a time.

Thank you very much.