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