callmeseb
Contributor
Contributor

How to trigger vCO tasks via API ?

Team,

I'm rasing this question following advice from Service Manager forum:

http://communities.vmware.com/message/1738228#1738228

...as right now we need to investigate whether vCO have relevant API to trigger tasks from VSM Smiley Happy

The goal is following:

- in VSM we create service catalog entry

- we have in vCO taks (to provision network)

- we want VSM to trigger that vCO task

Here's proposed architcture for which I'm trying to prove feasibility.

vmwareCLMstack.jpg

Seb

0 Kudos
3 Replies
igorstoyanov
VMware Employee
VMware Employee

Hi Seb,

I cross posted on the forum as well. Yes, it is possible (and common use case) to trigger a vCO workflow via WebServices. So, if there is ability to call a web services from VSM, then there should not be any stoppers for this use case.

More about vCO Web Services info:
Documentation about vCO web services could be found here in the part "8. Developing a Web Services Client" :
https://www.vmware.com/pdf/vco_410_developers_guide.pdf


Examples of how to call a vCO web service could be found here:
https://www.vmware.com/support/orchestrator/doc/vco-samples-4.1.0-776.zip

Once you download the zip file, go "vco-samples-4.1.0-776/WebService/WebServiceSample/src/com/vmware/client/LaunchWorkflowWithInput.java" for concrete example of calling workflows with input parameters.

Please, let us know if this would work for your case and whether you find any issues.

Thanks,

Igor.

Visit http://blogs.vmware.com/orchestrator for the latest in Cloud Orchestration.
0 Kudos
admin
Immortal
Immortal

Hi Seb,

the vCO also delivers an API (WSDL). With this it is possible to start, trigger and give inputs to the workflows. As shown by Igor there is a special part in the vCO developers guide (Building a simple webclient) which shows the different commands. It is really easy to start a workflow, get the token and ask for the token status (with the token id)...

In the past i wrote a .NET example:

http://mighty-virtualization.blogspot.com/2011/01/vco-soap-connect-via-vb-net.html

best regards

Christian

0 Kudos
tschoergez
Leadership
Leadership

Hi!

If you are looking for an example in Powershell:

http://www.vcoportal.de/examples/powershell-vco/

There is also a way to call single actions directly, see the discussion here:

http://communities.vmware.com/thread/304839

The third way (hardest, but maybe best integration): Wirte a VSM-plugin for vCO, which uses the vCO-Triggers to monitor vSM. :smileysilly:

edit: forgot the smilie for the third way Smiley Wink

Regards,

joerg

Nachricht geändert durch tschoergez

www.vcoportal.de - Orchestrate. Your Cloud.
0 Kudos