Active IQ Unified Manager Discussions

How to give inputs to a Workflow if called through a HTTP request ???

Sudeep
2,439 Views

how to give inputs to the workflow if you are calling the workflow through an HTTP request ?

 

Example: http://X.X.X.X/rest/workflow/uid=<workflow id>

1 REPLY 1

paragp
2,433 Views

you will have to make a http POST request to the url http://x.x.x.x/rest/workflows/<UUID of the workflow>/jobs.

 

Add http header Content-Type as "application/xml"

 

The http body should be xml like this

<?xml version="1.0" encoding="UTF-8"?>
<workflowInput>
   <userInputValues>
      <key>ClusterName</key>
      <value>abc</value>
      <key>VserverName</key>
      <value>vs1</value>
      <key>VolumeName</key>
      <value>DemoVol023</value>
   </userInputValues>
</workflowInput>

 

Public