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

workflow variables in NSX REST request body

$
0
0

hiho, i'm trying to use the REST plugin to communicate to NSX REST api and create edges and logical switches, when i've created an operation to create new edge, i use the "generate workflow from REST operation" woekflow to get a workflow where i only have to edit the body of the response with the appropiate xml string.

 

so far everything works and as long as i hard code every part of the body i can create edges and switches. But i dont really get how to change out parts of the body with user inputs, such as edge name or edge IP, because if i for example change out the name of the edge in the body to my "edgeName" variable, the edge will be named "edgeName" :/

 

Is there any way to make a string that spans over several lines in the orchestrator version of javascript?

 

thanks of advice for any answers

EDIT:

Apparently it works if i concatenate the xml as several strings like this: crap.PNG

and insert the variables, but this makes the content borderline unreadable, isn't there a nicer way to do this?

 

question number two has to do with my workflow timing out before the nsx API responds that the edge is created because vcenter takes longer to deploy it than my workflow wants to wait for a response,

javascript:;

// OscarCap2ture.PNG

is there a way to make the custom condition wait longer before deciding that the action failed?


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>