Install Plugin Dynamically

Install Plugin Dynamically

Imports a plug-in. If a plug-in with the same name is already installed, the import will fail unless the overwrite parameter is set to true. The plug-in binary content must be available as multi-part content (see RFC-2387 for details). Details of working with multi-part resources depend on the used client HTTP/REST library. For example, in Spring it will look like:

Sample client code:
-------------------
String url = "https://localhost:8281/vco/api/plugins/";
MultiValueMap parts = new LinkedMultiValueMap ();
Resource r = new FileSystemResource("D:/path/to/plugin.dar");
parts.put("file", Arrays.asList(r));
parts.put("categoryId", "");
new RestTemplate().postForLocation(url, parts);
-------------------

In a clustered setup this may not function properly. Use the ControlCenter's API instead - https://localhost:8283/vco-controlcenter/docs/#/plugin-controller.

Request
URI
POST
https://{api_host}/vco/api/plugins/installPluginDynamically
COPY
Request Body
importAction of mimetype application/x-www-form-urlencoded
Optional
Responses
204

No content

Operation doesn't return any data structure

400

Request is not valid (validation error)

Operation doesn't return any data structure

401

User is not authenticated

Operation doesn't return any data structure

403

User is not authorized

Operation doesn't return any data structure

409

Plug-in already exists

Operation doesn't return any data structure