def get_all_deployed_pools(self):
        LOG.debug('getting all deployed pools on BIG-IPs')
        deployed_pool_dict = {}
        for bigip in self.get_all_bigips():
            folders = self.system_helper.get_folders(bigip)
            for folder in folders:
                tenant_id = folder[len(self.service_adapter.prefix):]
                if str(folder).startswith(self.service_adapter.prefix):
                    resource = resource_helper.BigIPResourceHelper(
                        resource_helper.ResourceType.pool)
                    deployed_pools = resource.get_resources(bigip, folder)
                    if deployed_pools:
                        for pool in deployed_pools:
                            pool_id = \
                                pool.name[len(self.service_adapter.prefix):]
                            monitor_id = ''
                            if hasattr(pool, 'monitor'):
                                monitor = pool.monitor.split('/')[2].strip()
                                monitor_id = \
                                    monitor[len(self.service_adapter.prefix):]
                                LOG.debug(
                                    'pool {} has monitor {}'.format(
                                        pool.name, monitor))
                            else:
                                LOG.debug(
                                    'pool {} has no healthmonitors'.format(
                                        pool.name))
                            if pool_id in deployed_pool_dict:
                                deployed_pool_dict[pool_id][
                                    'hostnames'].append(bigip.hostname)
                            else:
                                deployed_pool_dict[pool_id] = {
                                    'id': pool_id,
                                    'tenant_id': tenant_id,
                                    'hostnames': [bigip.hostname],
                                    'monitors': monitor_id
                                }
        return deployed_pool_dict