VMware Cloud Community
ShubhadaS
Contributor
Contributor

Automatically install plugins on VCO

HI,

Is there a way to install a plugin on vCO automatically?

Regards,

Shubhada

Reply
0 Kudos
4 Replies
iiliev
VMware Employee
VMware Employee

There is a REST API to import a plug-in file (.dar or .vmoapp).

POST https://{vcohost}:{port}/vco/api/plugins/

(see REST API docs for details)

However, after the plug-in is imported, you still need to restart vCO server (and there is no API to restart the server yet).

Reply
0 Kudos
ShubhadaS
Contributor
Contributor


Hi,

I gone through docs. It says that the plugin binary contents must be available as multipart content.

And it is binary content.

Do you have any idea how I can convert .vmoapp or .dar to binary?

Reply
0 Kudos
iiliev
VMware Employee
VMware Employee

.vmoapp and .dar are already binaries.

'Multipart content' is a type of HTTP request that HTTP clients/libraries construct when needed to send files/data to the server.

How to prepare multipart request is language/library dependent so there is no common recipe for it.

Reply
0 Kudos
bserratrice
VMware Employee
VMware Employee

You can do like it is done in this post for uploading a workflow : https://communities.vmware.com/message/2331834

If you don't have a library for preparing the multipart content you can do it by yourself, there is an example in the mentionned thread.

Reply
0 Kudos