Class NeutronPortsNorthbound

    • Constructor Detail

      • NeutronPortsNorthbound

        @Inject
        public NeutronPortsNorthbound​(INeutronPortCRUD neutronCRUD)
    • Method Detail

      • listPorts

        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response listPorts​(@QueryParam("fields")
                                                   List<String> fields,
                                                   @QueryParam("id")
                                                   String queryID,
                                                   @QueryParam("network_id")
                                                   String queryNetworkID,
                                                   @QueryParam("name")
                                                   String queryName,
                                                   @QueryParam("admin_state_up")
                                                   Boolean queryAdminStateUp,
                                                   @QueryParam("status")
                                                   String queryStatus,
                                                   @QueryParam("mac_address")
                                                   String queryMACAddress,
                                                   @QueryParam("device_id")
                                                   String queryDeviceID,
                                                   @QueryParam("device_owner")
                                                   String queryDeviceOwner,
                                                   @QueryParam("tenant_id")
                                                   String queryTenantID,
                                                   @QueryParam("port_security_enabled")
                                                   Boolean queryPortSecurityEnabled,
                                                   @QueryParam("qos_policy_id")
                                                   String queryQosPolicyId,
                                                   @QueryParam("limit")
                                                   Integer limit,
                                                   @QueryParam("marker")
                                                   String marker,
                                                   @DefaultValue("false") @QueryParam("page_reverse")
                                                   Boolean pageReverse)
        Returns a list of all Ports.
      • showPort

        @Path("{portUUID}")
        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response showPort​(@PathParam("portUUID")
                                                  String portUUID,
                                                  @QueryParam("fields")
                                                  List<String> fields)
        Returns a specific Port.
      • createPorts

        @POST
        @Produces("application/json")
        @Consumes("application/json")
        public javax.ws.rs.core.Response createPorts​(NeutronPortRequest input)
        Creates new Ports.
      • updatePort

        @Path("{portUUID}")
        @PUT
        @Produces("application/json")
        @Consumes("application/json")
        public javax.ws.rs.core.Response updatePort​(@PathParam("portUUID")
                                                    String portUUID,
                                                    NeutronPortRequest input)
        Updates a Port.
      • deletePort

        @Path("{portUUID}")
        @DELETE
        public javax.ws.rs.core.Response deletePort​(@PathParam("portUUID")
                                                    String portUUID)
        Deletes a Port.