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