public static base_responses update ( nitro_service client , snmpuser resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { snmpuser updateresources [ ] = new snmpuser [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new snmpuser ( ) ; updateresources [ i ] . name = resources [ i ] . name ; updateresources [ i ] . group = resources [ i ] . group ; updateresources [ i ] . authtype = resources [ i ] . authtype ; updateresources [ i ] . authpasswd = resources [ i ] . authpasswd ; updateresources [ i ] . privtype = resources [ i ] . privtype ; updateresources [ i ] . privpasswd = resources [ i ] . privpasswd ; } result = update_bulk_request ( client , updateresources ) ; } return result ; }
Use this API to update snmpuser resources .