Class 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
    • Constructor Detail

      • IfServicesRestService

        public IfServicesRestService()
    • Method Detail

      • getServiceById

        public javax.ws.rs.core.Response getServiceById​(java.lang.Integer monitoredServiceId)
      • updateServices

        public javax.ws.rs.core.Response updateServices​(@Context
                                                        javax.ws.rs.core.UriInfo uriInfo,
                                                        MultivaluedMapImpl params)