Forum Discussion

Jonathan_Scholi's avatar
Jonathan_Scholi
Icon for Cirrostratus rankCirrostratus
Jan 30, 2013

v11 Management::Folder::get_list issue

I'm running 11.2x on a Viprion. I've been using the method System::Session::set_active_folder to set the appropriate folder. This method works as expected. However, when trying to list all the folders using Management::Folder::get_list, an empty array is always returned. Has anyone else run into this?

 

 

 

3 Replies

  • John_Gruber_432's avatar
    John_Gruber_432
    Historic F5 Account
    Please trying setting the active folder to the root folder ("/"), and then get_list on the Folder interface. See if you don't get the list of all your top level Folders including '/Common' and all the Folder (listed as a partition name when tied to AAA functions) you have created. So get_list would be relative to the active folder (in this case root) and subject to the recursive query setting of the session (see System::Session::set_recursive_query_state for recursive details).

     

     

    As an example of the recursive details, if I wanted to iterate through all LocalLB.VirtualAddresses to see what IPs are used in all Folders, assuming I have administrator role so I can see them all, I could change into the "/" folder, set the session to do recursive query, and do get_list on VirtualAddresses and I should get all the VirtualAddresses in the root Folder and all those contained in it (all of them).

     

     

    The root (/) Folder and its child /Common can not be removed.

     

     

    Let me know if that helped...
  • John_Gruber_432's avatar
    John_Gruber_432
    Historic F5 Account
    Please trying setting the active folder to the root folder ("/"), and then get_list on the Folder interface. See if you don't get the list of all your top level Folders including '/Common' and all the Folder (listed as a partition name when tied to AAA functions) you have created. So get_list would be relative to the active folder (in this case root) and subject to the recursive query setting of the session (see System::Session::set_recursive_query_state for recursive details).

     

     

    As an example of the recursive details, if I wanted to iterate through all LocalLB.VirtualAddresses to see what IPs are used in all Folders, assuming I have administrator role so I can see them all, I could change into the "/" folder, set the session to do recursive query, and do get_list on VirtualAddresses and I should get all the VirtualAddresses in the root Folder and all those contained in it (all of them).

     

     

    The root (/) Folder and its child /Common can not be removed.

     

     

    Let me know if that helped...