public static base_responses add ( nitro_service client , hanode resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { hanode addresources [ ] = new hanode [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new hanode ( ) ; addresources [ i ] . id = resources [ i ] . id ; addresources [ i ] . ipaddress = resources [ i ] . ipaddress ; addresources [ i ] . inc = resources [ i ] . inc ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add hanode resources .