VMware Cloud Community
TipsyTurtle
Contributor
Contributor

Help in learning VRO Rest API based workflow development.

I need to finish a series of very simple task on the Brocade SAN Switch, mostly related to zoning. However the catch is, I have to do them through REST API calls.

I am unable to find much documentation on the VRO side of REST API calls code. Can someone help me provide some template code on how to pass headers and content in the various POST, GET, DELETE, and PUT calls. Would be really great. Any template code for these calls, and/or any documentation on REST API calls in VRO would be really helpful.

0 Kudos
3 Replies
iiliev
VMware Employee
VMware Employee

Hi,

A lot of information, including scripting code snippets, is available online. Just search for something like 'vro rest plugin' on Google, Youtube, these forums, etc.

Here are some sample links

https://blog.comdivision.com/blog/2019/06/automation-of-nsx-with-the-api-using-vro

https://purevirtual.eu/2012/11/11/exploring-vco-and-rest-apis/

0 Kudos
aamarques
Enthusiast
Enthusiast

You may search about RESTHost, RESTHostManager, RESTRequest, RESTResponse which are the classes used to do REST-based communication.

0 Kudos
NoraDern
Contributor
Contributor

If you need any type of help feel free to visit https://1ws.com

0 Kudos