/** * Returns the list of the VNFFGs available * * @return List<VNFForwardingGraphDescriptor>: The list of VNFFGs available */ @RequestMapping(method = RequestMethod.GET) public List<VNFForwardingGraphDescriptor> findAll() { return (List<VNFForwardingGraphDescriptor>) vnffgManagement.query(); }
@RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) public HistoryEntity[] getHistory() { return historyManagement.getAll(); }
/** * Returns the list of the Configurations available * * @return List<Configuration>: The list of Configurations available */ @RequestMapping(method = RequestMethod.GET) public Iterable<VirtualLinkDescriptor> findAllDescriptors() { log.debug("Find all Configurations"); return virtualLinkManagement.queryDescriptors(); }
@ApiOperation(value = "Retrieve the current User", notes = "Returns the user currently accessing") @RequestMapping(value = "current", method = RequestMethod.GET) public User findCurrentUser() throws NotFoundException { User user = userManagement.getCurrentUser(); log.trace("Found User: " + user); return user; }
/** * Returns the list of the Users available * * @return List<User>: The list of Users available */ @ApiOperation(value = "Retrieve all Users", notes = "Returns all registered users") @RequestMapping(method = RequestMethod.GET) public List<User> findAll() { log.trace("Find all Users"); return (List<User>) userManagement.query(); }
@Test public void deleteVimInstance() throws NotFoundException, BadRequestException { mock.delete("123", "pi"); restVimInstances.delete("123", "pi"); } }
@RequestMapping(method = RequestMethod.GET) @ResponseStatus(HttpStatus.OK) public List<VNFComponent> findAll() { return (List<VNFComponent>) vnfComponentManagment.query(); }
/** * Removes the EventEndpoint from the EventEndpoint repository * * @param id : The Event's id to be deleted */ @RequestMapping(value = "{id}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.NO_CONTENT) public void unregister(@PathVariable("id") String id) throws NotFoundException { eventDispatcher.unregister(id); }
@ApiOperation( value = "Retrieve all installed Vim Drivers", notes = "Returns the names of all the Vim Drivers currently installed") @RequestMapping(method = RequestMethod.GET) public @ResponseBody Set<String> getListVimDrivers() throws IOException { return pluginManager.listInstalledVimDrivers(); } }
/** * Removes the VNF software VNFFG from the VNFFG repository * * @param id : The VNFFG's id to be deleted */ @RequestMapping(value = "{id}", method = RequestMethod.DELETE) @ResponseStatus(HttpStatus.NO_CONTENT) public void delete(@PathVariable("id") String id) { vnffgManagement.delete(id); }
@ApiOperation( value = "Retrieve all registered VNFM endpoints", notes = "Returns all Virtual Network Function Managers running and attached to the NFVO") @RequestMapping(method = RequestMethod.GET) @ResponseStatus(HttpStatus.OK) public List<VnfmManagerEndpoint> findAll() { return (List<VnfmManagerEndpoint>) vnfManagerManagement.query(); }
private EventEndpoint saveEventEndpoint(EventEndpoint endpoint) { EventEndpoint save = eventEndpointRepository.save(endpoint); log.info("Registered event endpoint" + save); eventManagement.removeUnreachableEndpoints(); return save; }
@Override public void onApplicationEvent(ContextClosedEvent event) { log.info("Shutting down..."); PluginStartup.destroy(); componentManager.removeTokens(); } }
@RequestMapping( value = "/{id}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) public EventEndpoint getEventEndpoint( @PathVariable("id") String id, @RequestHeader(value = "project-id") String projectId) throws NotFoundException { return eventManagement.query(id, projectId); }
/** * This operation returns the list of Network Service Descriptor (NSD) * * @return List<NetworkServiceRecord>: the list of Network Service Descriptor stored */ @ApiOperation( value = "Retrieving all Network Service Records", notes = "Returns all Network Service Records on the specified project") @RequestMapping(method = RequestMethod.GET) public List<NetworkServiceRecord> findAll(@RequestHeader(value = "project-id") String projectId) { return networkServiceRecordManagement.queryByProjectId(projectId); }
/** * Returns the list of the VNFPackages available * * @return List<VNFPackage>: The list of VNFPackages available */ @ApiOperation( value = "Retrieve all VNFPackages", notes = "Returns all VNF Packages onboarded on the specified project") @RequestMapping(method = RequestMethod.GET) public List<VNFPackage> findAll(@RequestHeader(value = "project-id") String projectId) { return (List<VNFPackage>) vnfPackageManagement.queryByProjectId(projectId); }
/** * Returns the list of the VNF software virtualNetworkFunctionDescriptors available * * @return List<virtualNetworkFunctionDescriptor>: The list of VNF software * virtualNetworkFunctionDescriptors available */ @ApiOperation(value = "Retrieving all Virtual Network Function Descriptors", notes = "") @RequestMapping(method = RequestMethod.GET) public List<VirtualNetworkFunctionDescriptor> findAll( @RequestHeader(value = "project-id") String projectId) { return (List<VirtualNetworkFunctionDescriptor>) vnfdManagement.queryByProjectId(projectId); }
/** * Returns the VNFFG selected by id * * @param id : The id of the VNFFG * @return vnfForwardingGraphDescriptor: The VNFFG selected */ @RequestMapping(value = "{id}", method = RequestMethod.GET) public VNFForwardingGraphDescriptor findById(@PathVariable("id") String id) { return vnffgManagement.query(id); }
@RequestMapping( value = "/{actions}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) public HistoryEntity[] getHistory(@PathVariable("actions") int actions) { return historyManagement.getAll(actions); } }
@RequestMapping(value = "{id}", method = RequestMethod.GET) @ResponseStatus(HttpStatus.OK) public VNFComponent findById(@PathVariable("id") String id) { return vnfComponentManagment.query(id); } }