public static base_responses disable ( nitro_service client , String id [ ] ) throws Exception { base_responses result = null ; if ( id != null && id . length > 0 ) { Interface disableresources [ ] = new Interface [ id . length ] ; for ( int i = 0 ; i < id . length ; i ++ ) { disableresources [ i ] = new Interface ( ) ; disableresources [ i ] . id = id [ i ] ; } result = perform_operation_bulk_request ( client , disableresources , "disable" ) ; } return result ; }
Use this API to disable Interface resources of given names .