Package org.opennms.web.rest.v1
Class IfServicesRestService
- java.lang.Object
-
- org.opennms.web.rest.v1.OnmsRestService
-
- org.opennms.web.rest.v1.IfServicesRestService
-
@Component("ifServicesRestService") @Transactional public class IfServicesRestService extends OnmsRestService
Managing Monitored Services (control the polling state of monitored services). Examples: curl -u admin:admin "http://localhost:8980/opennms/rest/ifservices?node.label=onms-prd-01" curl -u admin:admin "http://localhost:8980/opennms/rest/ifservices?ipInterface.ipAddress=192.168.32.140" curl -u admin:admin "http://localhost:8980/opennms/rest/ifservices?category.name=Production" curl -X PUT "status=F" -u admin:admin "http://localhost:8980/opennms/rest/ifservices?node.label=onms-prd-01" curl -X PUT "status=A" -u admin:admin "http://localhost:8980/opennms/rest/ifservices?ipInterface.ipAddress=192.168.32.140" curl -X PUT "status=F" -u admin:admin "http://localhost:8980/opennms/rest/ifservices?category.name=Production" curl -X PUT "status=F&services=ICMP,HTTP" -u admin:admin "http://localhost:8980/opennms/rest/ifservices?category.name=Production" Possible values for status: A (Managed) F (Forced Unmanaged) R (Rescan to Resume, for compatibility purposes) S (Rescan to Suspend, for compatibility purposes) The optional parameter services is designed to specify the list of affected services as CSV.- Author:
- Alejandro Galue
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.web.rest.v1.OnmsRestService
OnmsRestService.ComparisonOperation
-
-
Field Summary
-
Fields inherited from class org.opennms.web.rest.v1.OnmsRestService
DEFAULT_LIMIT
-
-
Constructor Summary
Constructors Constructor Description IfServicesRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
getServiceById(Integer monitoredServiceId)
OnmsMonitoredServiceDetailList
getServices(javax.ws.rs.core.UriInfo uriInfo)
javax.ws.rs.core.Response
updateServices(javax.ws.rs.core.UriInfo uriInfo, MultivaluedMapImpl params)
-
Methods inherited from class org.opennms.web.rest.v1.OnmsRestService
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock
-
-
-
-
Method Detail
-
getServices
public OnmsMonitoredServiceDetailList getServices(@Context javax.ws.rs.core.UriInfo uriInfo)
-
getServiceById
public javax.ws.rs.core.Response getServiceById(Integer monitoredServiceId)
-
updateServices
public javax.ws.rs.core.Response updateServices(@Context javax.ws.rs.core.UriInfo uriInfo, MultivaluedMapImpl params)
-
-