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