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