Class OnmsIpInterfaceResource


  • @Component("onmsIpInterfaceResource")
    @Transactional
    public class OnmsIpInterfaceResource
    extends OnmsRestService
    • Constructor Detail

      • OnmsIpInterfaceResource

        public OnmsIpInterfaceResource()
    • Method Detail

      • getIpInterfaces

        @GET
        @Produces({"application/xml","application/json"})
        public OnmsIpInterfaceList getIpInterfaces​(@Context
                                                   javax.ws.rs.core.UriInfo uriInfo,
                                                   @PathParam("nodeCriteria")
                                                   String nodeCriteria)

        getIpInterfaces

        Parameters:
        nodeCriteria - a String object.
        Returns:
        a OnmsIpInterfaceList object.
      • getIpInterface

        @GET
        @Produces({"application/xml","application/json"})
        @Path("{ipAddress}")
        public OnmsIpInterface getIpInterface​(@PathParam("nodeCriteria")
                                              String nodeCriteria,
                                              @PathParam("ipAddress")
                                              String ipAddress)

        getIpInterface

        Parameters:
        nodeCriteria - a String object.
        ipAddress - a String object.
        Returns:
        a OnmsIpInterface object.
      • addIpInterface

        @POST
        @Consumes("application/xml")
        public javax.ws.rs.core.Response addIpInterface​(@Context
                                                        javax.ws.rs.core.UriInfo uriInfo,
                                                        @PathParam("nodeCriteria")
                                                        String nodeCriteria,
                                                        OnmsIpInterface ipInterface)

        addIpInterface

        Parameters:
        nodeCriteria - a String object.
        ipInterface - a OnmsIpInterface object.
        Returns:
        a Response object.
      • updateIpInterface

        @PUT
        @Consumes("application/x-www-form-urlencoded")
        @Path("{ipAddress}")
        public javax.ws.rs.core.Response updateIpInterface​(@PathParam("nodeCriteria")
                                                           String nodeCriteria,
                                                           @PathParam("ipAddress")
                                                           String ipAddress,
                                                           MultivaluedMapImpl params)

        updateIpInterface

        Parameters:
        nodeCriteria - a String object.
        ipAddress - a String object.
        params - a MultivaluedMapImpl object.
        Returns:
        a Response object.
      • deleteIpInterface

        @DELETE
        @Path("{ipAddress}")
        public javax.ws.rs.core.Response deleteIpInterface​(@PathParam("nodeCriteria")
                                                           String nodeCriteria,
                                                           @PathParam("ipAddress")
                                                           String ipAddress)

        deleteIpInterface

        Parameters:
        nodeCriteria - a String object.
        ipAddress - a String object.
        Returns:
        a Response object.
      • getServices

        @Path("{ipAddress}/services")
        public OnmsMonitoredServiceResource getServices​(@Context
                                                        javax.ws.rs.container.ResourceContext context)

        getServices

        Returns:
        a org.opennms.web.rest.OnmsMonitoredServiceResource object.