Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

REST -> VCO

$
0
0

Hello, I'm trying to get a basic workflow kicked off via REST. I'm using the Firefox plugin RESTClient.

 

I was following this tutorial:

 

http://www.vcoteam.info/articles/learn-vco/265-how-to-run-a-perl-script-from-a-vcenter-orchestrator-workflow.html

 

and got the helloPerl.pl to work with REST, now I'm trying to change RAM on a VM...

 

Looking at this article, I believe has me pretty close:

 

https://communities.vmware.com/thread/515457?start=0&tstart=0

 

but still getting HTTP 400's on RESTClient... Here's my code:

 

{"parameters": 

[

{

"value": {"sdk-object": {"type":"VC:VirtualMachine", "id":"10.x.x.x/vm-name123"}},

"type": "VC:VirtualMachine", 

"name": "vm",

"scope": "local"

},

 

{

"value":{"number":{"value": “2048”}},

"type": "number",

"name": “memory”,

"scope": "local"

}

]}

 

My inputs in the xml displayed for the workflow are:

 

<parameter description="The VM to change" type="VC:VirtualMachine" name="vm"/>

<parameter description="New memory value" type="number" name="memory"/>

 

Any ideas?

 

thanks,

-jim


Viewing all articles
Browse latest Browse all 6251

Trending Articles