Forum Discussion
2 Replies
Sort By
- Michael_YatesNimbostratus
You will have to loop through each Partition and add them to a list before dumping them to a list.
Here is a C example doing the same thing for a list of Virtual Servers (pools is almost the exact same):
Interfaces f5Interfaces = new Interfaces(); List partitionList = new List(); List results = new List(); if (f5Interfaces.initialize(connection.hostname, connection.username, connection.password)) { ManagementPartitionAuthZPartition[] tempPartitionList = f5Interfaces.ManagementPartition.get_partition_list(); partitionList.AddRange(tempPartitionList.Select(partition => partition.partition_name)); foreach (string partition in partitionList) { f5Interfaces.ManagementPartition.set_active_partition(partition); String[] queryVirtualList = f5Interfaces.LocalLBVirtualServer.get_list();
- Manuel_Miras_16Nimbostratus
OK, thanks. And using python and thel module pycontrol?