public static dnsview [ ] get ( nitro_service service , String viewname [ ] ) throws Exception { if ( viewname != null && viewname . length > 0 ) { dnsview response [ ] = new dnsview [ viewname . length ] ; dnsview obj [ ] = new dnsview [ viewname . length ] ; for ( int i = 0 ; i < viewname . length ; i ++ ) { obj [ i ] = new dnsview ( ) ; obj [ i ] . set_viewname ( viewname [ i ] ) ; response [ i ] = ( dnsview ) obj [ i ] . get_resource ( service ) ; } return response ; } return null ; }
Use this API to fetch dnsview resources of given names .