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