Added support for resource host in create resource API