public static base_responses add ( nitro_service client , nslimitidentifier resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nslimitidentifier addresources [ ] = new nslimitidentifier [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new nslimitidentifier ( ) ; addresources [ i ] . limitidentifier = resources [ i ] . limitidentifier ; addresources [ i ] . threshold = resources [ i ] . threshold ; addresources [ i ] . timeslice = resources [ i ] . timeslice ; addresources [ i ] . mode = resources [ i ] . mode ; addresources [ i ] . limittype = resources [ i ] . limittype ; addresources [ i ] . selectorname = resources [ i ] . selectorname ; addresources [ i ] . maxbandwidth = resources [ i ] . maxbandwidth ; addresources [ i ] . trapsintimeslice = resources [ i ] . trapsintimeslice ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add nslimitidentifier resources .