Using the Choices Function
The choices
function returns an array of the valid property values for any property for which the set of values is known and enumerable. For example, the following script retrieves the list of all pools on the shares node using the choices
function and then iterates all pools to list projects and shares along with the available space.