extracted cosmo mgr rest client from cosmo cli