VMware Cloud Community
MC2016
Enthusiast
Enthusiast

Get Folders in orchestrator configuration menu?

Hello All,

I'm looking to find a way to obtain the sub folder(s) under a folder in the configuration menu in orchestrator.

Below is example and I'm trying to get all folders under sites to obtain folder titled "Site A"  and "Site B" to use in action at presentation layer of the workflow.

I see ConfigurationElement in API explorer but that appears to be Element specific and don't see how to obtain the "folder"

Sites

     Site A

          DNS1

          DNS2

     Site B

          DNS1

          DNS2

Any help in how to obtain the above information or where to continue my search is appreciated.

1 Reply
iiliev
VMware Employee
VMware Employee

Hi,

You can use the method Server.getConfigurationElementCategoryWithPath(String path) to get a configuration element category by its path (the path is the list of sub-folders starting from the root eg. "Sites" or "Sites/SiteA"), and then the property myCategory.subCategories to get the array containing the sub-categories of a given category myCategory.