public static base_responses update ( nitro_service client , server resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { server updateresources [ ] = new server [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new server ( ) ; updateresources [ i ] . name = resources [ i ] . name ; updateresources [ i ] . ipaddress = resources [ i ] . ipaddress ; updateresources [ i ] . domainresolveretry = resources [ i ] . domainresolveretry ; updateresources [ i ] . translationip = resources [ i ] . translationip ; updateresources [ i ] . translationmask = resources [ i ] . translationmask ; updateresources [ i ] . domainresolvenow = resources [ i ] . domainresolvenow ; updateresources [ i ] . comment = resources [ i ] . comment ; } result = update_bulk_request ( client , updateresources ) ; } return result ; }
Use this API to update server resources .