Get server targets based on pattern