public static base_responses add ( nitro_service client , autoscaleaction resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { autoscaleaction addresources [ ] = new autoscaleaction [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new autoscaleaction ( ) ; addresources [ i ] . name = resources [ i ] . name ; addresources [ i ] . type = resources [ i ] . type ; addresources [ i ] . profilename = resources [ i ] . profilename ; addresources [ i ] . parameters = resources [ i ] . parameters ; addresources [ i ] . vmdestroygraceperiod = resources [ i ] . vmdestroygraceperiod ; addresources [ i ] . quiettime = resources [ i ] . quiettime ; addresources [ i ] . vserver = resources [ i ] . vserver ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add autoscaleaction resources .