improve apiv1 get host spec