code: public static nshostname[] get(nitro_service service, options option) throws Exception{
  		nshostname obj = new nshostname();
  		nshostname[] response = (nshostname[])obj.get_resources(service,option);
  		return response;
  	}
docs: Use this API to fetch all the nshostname resources that are configured on netscaler.