Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Solved! See The Solution
1 ACCEPTED SOLUTION
omegazero has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>
1 REPLY 1
omegazero has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>
