Effective December 3, NetApp adopts Microsoft’s Business-to-Customer (B2C) identity management to simplify and provide secure access to NetApp resources.
For accounts that did not pre-register (prior to Dec 3), access to your NetApp data may take up to 1 hour as your legacy NSS ID is synchronized to the new B2C identity.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Active IQ Unified Manager Discussions

Passing WFA workflow input type table via REST API

omegazero

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

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

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public