NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Active IQ Unified Manager Discussions

Passing WFA workflow input type table via REST API

omegazero
4,636 Views

I can't seem to find an example of how to pass a workflow input variable of type table via the WFA REST API. Any chance someone has one available and/or knows where I can find one?

1 ACCEPTED SOLUTION

paragp
4,615 Views

Please take a look at the workflow "Create a Clustered Data ONTAP NFS Volume" that is shipped with WFA. It has an Table user input for "Export Rule Specification" which has 4 columns.

 

Here is what a sample input for executing this workflow from REST looks like . Notice that the input ExportRuleSpecification has 2 rows separated by "," and the 4 colums are separated by "~"

 

<?xml version="1.0" encoding="UTF-8"?>
<workflowInput>
   <userInputValues>
      <userInputEntry key="ClusterName" value="wfa-sim-cluster" />
      <userInputEntry key="VserverName" value="vs1" />
      <userInputEntry key="VolumeName" value="vol1" />
      <userInputEntry key="VolumeSizeGB" value="2" />
      <userInputEntry key="VolumeJunctionPath" value="vol1" />
      <userInputEntry key="ExportPolicyName" value="default_policy" />
      <userInputEntry key="ExportRuleSpecification" value="1.1.1.1~kbr5~ntlm~sys,2.2.2.2~kbr5~ntlm~sys" />
   </userInputValues>
</workflowInput>

 

View solution in original post

1 REPLY 1

paragp
4,616 Views

Please take a look at the workflow "Create a Clustered Data ONTAP NFS Volume" that is shipped with WFA. It has an Table user input for "Export Rule Specification" which has 4 columns.

 

Here is what a sample input for executing this workflow from REST looks like . Notice that the input ExportRuleSpecification has 2 rows separated by "," and the 4 colums are separated by "~"

 

<?xml version="1.0" encoding="UTF-8"?>
<workflowInput>
   <userInputValues>
      <userInputEntry key="ClusterName" value="wfa-sim-cluster" />
      <userInputEntry key="VserverName" value="vs1" />
      <userInputEntry key="VolumeName" value="vol1" />
      <userInputEntry key="VolumeSizeGB" value="2" />
      <userInputEntry key="VolumeJunctionPath" value="vol1" />
      <userInputEntry key="ExportPolicyName" value="default_policy" />
      <userInputEntry key="ExportRuleSpecification" value="1.1.1.1~kbr5~ntlm~sys,2.2.2.2~kbr5~ntlm~sys" />
   </userInputValues>
</workflowInput>

 

Public