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