public static base_responses add ( nitro_service client , dnskey resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dnskey addresources [ ] = new dnskey [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new dnskey ( ) ; addresources [ i ] . keyname = resources [ i ] . keyname ; addresources [ i ] . publickey = resources [ i ] . publickey ; addresources [ i ] . privatekey = resources [ i ] . privatekey ; addresources [ i ] . expires = resources [ i ] . expires ; addresources [ i ] . units1 = resources [ i ] . units1 ; addresources [ i ] . notificationperiod = resources [ i ] . notificationperiod ; addresources [ i ] . units2 = resources [ i ] . units2 ; addresources [ i ] . ttl = resources [ i ] . ttl ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add dnskey resources .