adding active instances method to rest endpoint