public static base_responses add ( nitro_service client , gslbsite resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { gslbsite addresources [ ] = new gslbsite [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new gslbsite ( ) ; addresources [ i ] . sitename = resources [ i ] . sitename ; addresources [ i ] . sitetype = resources [ i ] . sitetype ; addresources [ i ] . siteipaddress = resources [ i ] . siteipaddress ; addresources [ i ] . publicip = resources [ i ] . publicip ; addresources [ i ] . metricexchange = resources [ i ] . metricexchange ; addresources [ i ] . nwmetricexchange = resources [ i ] . nwmetricexchange ; addresources [ i ] . sessionexchange = resources [ i ] . sessionexchange ; addresources [ i ] . triggermonitor = resources [ i ] . triggermonitor ; addresources [ i ] . parentsite = resources [ i ] . parentsite ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add gslbsite resources .