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