public static base_response add ( nitro_service client , snmptrap resource ) throws Exception { snmptrap addresource = new snmptrap ( ) ; addresource . trapclass = resource . trapclass ; addresource . trapdestination = resource . trapdestination ; addresource . version = resource . version ; addresource . destport = resource . destport ; addresource . communityname = resource . communityname ; addresource . srcip = resource . srcip ; addresource . severity = resource . severity ; return addresource . add_resource ( client ) ; }
Use this API to add snmptrap .