<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: WFA - Enabling JSON Responses in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/142528#M26034</link>
    <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/9898"&gt;@CAPATEL_NET1984&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have did below as i wanted to get filter output&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;----&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For a filter, the method applicable is GET itself.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want JSON response for method GET you need to send this information in Request Header. Content type in GET are ignored. See my post in the previous responses to this very thread.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to add the following key-value pair in your GET Request header.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;'Accept'='application/json'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In powershell, do this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lang-bsh prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="pun"&gt;&lt;SPAN&gt;$output = Invoke-RestMethod -Method get -Uri $workflow_execution_uri -Credential $cred &lt;/SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN class="typ"&gt;Headers&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;@{&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"Accept"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"application/json"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sinhaa&lt;/P&gt;</description>
    <pubDate>Wed, 05 Sep 2018 07:02:27 GMT</pubDate>
    <dc:creator>sinhaa</dc:creator>
    <dc:date>2018-09-05T07:02:27Z</dc:date>
    <item>
      <title>WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131850#M23919</link>
      <description>&lt;P&gt;I'm looking to get a WFA instance to respond via JSON when making REST-based calls to it. Right now when I query "&lt;A href="https://server-name/rest/workflows" target="_blank"&gt;https://server-name/rest/workflows&lt;/A&gt;" or any other REST-based URLs, I get back an XML response. The WFA REST primer shows that it supports JSON, but I'm unsure how to get it to talk this way. Do I need to configure or enable something? Appreciate the help.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:57:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131850#M23919</guid>
      <dc:creator>lil_baby_james</dc:creator>
      <dc:date>2025-06-04T14:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131864#M23922</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to specify the Content-Type in the http header as -&amp;nbsp;&lt;SPAN&gt;Content-Type: application/json.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you are invoking REST APIs from a script or an application, you can easily set the header but i don't think there is a way to do it from a broswer.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 03:13:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131864#M23922</guid>
      <dc:creator>ag</dc:creator>
      <dc:date>2017-06-14T03:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131880#M23925</link>
      <description>&lt;P&gt;Hey. First off, thanks for the quick response. I've already tried setting the Content-Type to application/json and get a "500 cannot consume content-type" status code. Similarly, if I set the Accept header to application/json, I get a "500 no match for accept header". I'm thinking I need to enable something server-side, or that perhaps WFA wasn't installed properly. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 13:22:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131880#M23925</guid>
      <dc:creator>lil_baby_james</dc:creator>
      <dc:date>2017-06-14T13:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131891#M23926</link>
      <description>&lt;P&gt;Which WFA version are you using ?&amp;nbsp; If possible, please add a code snippet of your REST API call using JSON&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 16:50:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131891#M23926</guid>
      <dc:creator>rkiran</dc:creator>
      <dc:date>2017-06-14T16:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131893#M23927</link>
      <description>&lt;P&gt;What language are you using to write your code? Can help if it is either PowerShell or Python.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yaron&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 17:31:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131893#M23927</guid>
      <dc:creator>yaron</dc:creator>
      <dc:date>2017-06-14T17:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131894#M23928</link>
      <description>&lt;P&gt;I'm using Python, in fact. Here's the snippet of code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;connection = httplib.HTTPSConnection(WFAServer)&lt;BR /&gt;connection.request('GET', '/rest/workflows?name=' + workflowName, headers = {"Authorization" : "Basic %s" % encodedCredentials, "Accept" : "application/json"})&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works when Accept is application/xml, but I'd prefer to use JSON. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 17:41:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131894#M23928</guid>
      <dc:creator>lil_baby_james</dc:creator>
      <dc:date>2017-06-14T17:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131895#M23929</link>
      <description>&lt;P&gt;Here is a code snippet in Python getting all available workflows using json. Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import requests&lt;BR /&gt;from requests.auth import HTTPBasicAuth&lt;BR /&gt;from requests.adapters import HTTPAdapter&lt;BR /&gt;from requests.packages.urllib3.poolmanager import PoolManager&lt;BR /&gt;import ssl&lt;BR /&gt;from requests.packages.urllib3.util.ssl_ import create_urllib3_context&lt;BR /&gt;import json&lt;BR /&gt;&lt;BR /&gt;#============================================================================&lt;BR /&gt;# CHANGE IF NEEDED PRIOR TO IMPORTING&lt;BR /&gt;url = "&lt;A href="https://wfa.demo.netapp.com/rest/workflows" target="_blank"&gt;https://wfa.demo.netapp.com/rest/workflows&lt;/A&gt;"&lt;BR /&gt;#============================================================================&lt;BR /&gt;&lt;BR /&gt;#============================================================================&lt;BR /&gt;# THE CODE BELOW IS NEEDED TO AVOID SSL3 HANDSHAKE ERRORS WHEN RUNNING REST&lt;BR /&gt;# API AGAINST NETAPP ONCOMMAND WORKFLOW AUTOMATION SERVER&lt;BR /&gt;CIPHERS = (&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+HIGH:'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'DH+HIGH:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+HIGH:RSA+3DES:!aNULL:'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '!eNULL:!MD5:DES-CBC3-SHA'&lt;BR /&gt;)&lt;BR /&gt;class DESAdapter(HTTPAdapter):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def init_poolmanager(self, connections, maxsize, block=False,*args, **kwargs):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; context = create_urllib3_context(ciphers=CIPHERS)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kwargs['ssl_context'] = context&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.poolmanager = PoolManager(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num_pools=connections, maxsize=maxsize,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; block=block, ssl_version=ssl.PROTOCOL_SSLv3,*args, **kwargs)&lt;BR /&gt;#============================================================================&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# Function GetListOfWorkflows queries WFA server for available APIs (workflows) based on user's role&lt;BR /&gt;def GetListOfWorkflows(username,password):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; requests.packages.urllib3.disable_warnings()&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s = requests.Session()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.mount(url, DESAdapter())&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; head = {"Content-type": "application/json","Accept":"application/json"}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ret=s.get(url,headers=head,auth=HTTPBasicAuth(username,password),verify=False)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ret.status_code != 200):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print ("Could not connect to API server.")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d = []&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for wf in ret.json():&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Check if workflow has description defined&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tmp = wf['description']&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d.append({&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'name':wf['name'],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'description':wf['description']&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; })&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d.append({&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'name':wf['name']&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; })&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print (json.dumps(d,indent=4))&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 17:47:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131895#M23929</guid>
      <dc:creator>yaron</dc:creator>
      <dc:date>2017-06-14T17:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131896#M23930</link>
      <description>&lt;P&gt;Not sure why the smiley faces are there. Change the smiley face with : and D without the spaces (or the word and). Essentially the two charactes colon and upper case D.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yaron&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 17:49:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131896#M23930</guid>
      <dc:creator>yaron</dc:creator>
      <dc:date>2017-06-14T17:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131919#M23938</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/60470"&gt;@lil_baby_james&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to add the following key-value pair in your GET Request header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;'Accept'='application/json'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for POST/PUT you need to additionally provide Content-Type='Application/json'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You language is python so I suggest you use the Apache&amp;nbsp;&lt;A href="http://docs.python-requests.org/en/master/" target="_self"&gt;requests&lt;/A&gt;&amp;nbsp;lib. Its the best one for calling &amp;nbsp;http web requests.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EXample:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;import requests
url = 'http://localhost/rest/system'
session = requests.Session()
session.auth = ('sinhaa', 'Netapp')
session.headers.update({'content-type': 'application/json'})
session.headers.update({'Accept': 'application/json'})

resp = session.get(url)
print "STATUS : %s \n" % resp.status_code
print "CONTENT : %s \n" % resp.content&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Jun 2017 08:48:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131919#M23938</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2017-06-15T08:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131928#M23941</link>
      <description>&lt;P&gt;I've tried setting the Content-Type and Accept headers to application/json and the server keeps responding with a 500 code. It only works with these headers set to application/xml.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 13:40:15 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131928#M23941</guid>
      <dc:creator>lil_baby_james</dc:creator>
      <dc:date>2017-06-15T13:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131929#M23942</link>
      <description>&lt;P&gt;What version of WFA are you using?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 13:43:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131929#M23942</guid>
      <dc:creator>yaron</dc:creator>
      <dc:date>2017-06-15T13:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131930#M23943</link>
      <description>&lt;P&gt;Support for JSON was added in WFA v4.1.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 13:44:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131930#M23943</guid>
      <dc:creator>yaron</dc:creator>
      <dc:date>2017-06-15T13:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131931#M23944</link>
      <description>&lt;P&gt;That looks like it's the problem. I'll have to upgrade it since I'm using 4.0. Thanks a bunch.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 13:48:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/131931#M23944</guid>
      <dc:creator>lil_baby_james</dc:creator>
      <dc:date>2017-06-15T13:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/132195#M23986</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the format of entries parameters in JSON, I tried that with error 500&lt;/P&gt;&lt;PRE&gt;      data = {
            "workflowInput": {
                "userInputValues": {
                    "userInputEntry": [
                        {
                            "key": "serversource",
                            "value": src
                        },
                        {
                            "key": "serverdest",
                            "value": dst
                        }
                    ]
                }
            }
        }&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Jun 2017 07:58:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/132195#M23986</guid>
      <dc:creator>francoisbnc</dc:creator>
      <dc:date>2017-06-23T07:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/132199#M23987</link>
      <description>&lt;P&gt;It should be something like this, no need of mentioning 'workflowInputs' and 'userInputEntry' elements for JSON.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;&amp;nbsp; "userInputValues": [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "key": "dsname",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "value": "datasource-1"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "key": "address",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "value": "1.2.3.4"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; ]&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 08:25:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/132199#M23987</guid>
      <dc:creator>rkiran</dc:creator>
      <dc:date>2017-06-23T08:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/132207#M23988</link>
      <description>&lt;P&gt;I got the same, here the wfa.log error&lt;/P&gt;&lt;PRE&gt;2017-06-23 14:57:41,720 ERROR [com.netapp.wfa.rs.validation.WfaExceptionMapper] (default task-32) REST service got exception, returning: Internal Server Error (500): com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'userInputValues': was expecting ('true', 'false' or 'null')
 at [Source: io.undertow.servlet.spec.ServletInputStreamImpl@74151ccb; line: 1, column: 17]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 13:00:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/132207#M23988</guid>
      <dc:creator>francoisbnc</dc:creator>
      <dc:date>2017-06-23T13:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/132210#M23990</link>
      <description>&lt;P&gt;After doubled check, I realized I have as well a problem in my code, because your solution runs fine with postman.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 13:24:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/132210#M23990</guid>
      <dc:creator>francoisbnc</dc:creator>
      <dc:date>2017-06-23T13:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/134353#M24368</link>
      <description>&lt;P&gt;Get json is easy, but what about posting it ? &amp;nbsp;Is that possible ?&lt;/P&gt;&lt;P&gt;And what is the layout ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 16:43:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/134353#M24368</guid>
      <dc:creator>mirko</dc:creator>
      <dc:date>2017-09-08T16:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/134363#M24370</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/5409"&gt;@mirko&lt;/a&gt;&amp;nbsp;find an example in python, hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use requests Session to process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;from requests import Session&lt;BR /&gt;from requests.auth import HTTPBasicAuth&lt;BR /&gt;&lt;BR /&gt;session = Session()
session.auth = HTTPBasicAuth(UNAME, PASSWORD)
session.headers.update({'content-type': 'application/json'})
session.headers.update({'Accept': 'application/json'})
session.verify = False&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;uuid is the id of the workflow I want retrieved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;WORKFLOWTOEXECUTE = 'Name of workflow'
payload = {'name': WORKFLOWTOEXECUTE}

urlquery = 'https://{}/rest/workflows'.format(WFASERVER)
workflowsget = session.get(urlquery, params=payload)

workflows = workflowsget.json()
uuid = workflows[0].get('uuid')&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;urlrun = 'https://{}/rest/workflows/{}/jobs'.format(WFASERVER, uuid)
data = {"userInputValues": [
                {
                    "key": "serversource",
                    "value": src
                },
                {
                    "key": "serverdest",
                    "value": dst
                }
            ]
            }
execstatus = session.post(urlrun, data=json.dumps(data))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;serversource and serverdest are input parameters of my workflow in WFA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Sep 2017 07:40:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/134363#M24370</guid>
      <dc:creator>francoisbnc</dc:creator>
      <dc:date>2017-09-09T07:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Enabling JSON Responses</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/134376#M24371</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/5409"&gt;@mirko&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get json is easy, but what about posting it ? &amp;nbsp;Is that possible ?&lt;/P&gt;&lt;P&gt;And what is the layout ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WFA4.1 uses swagger for API documentation which is very helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GET/POST/PUT all are available for JSON as well..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The body layout is available in rest docs at: https://wfa-server/rest/docs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;go to your particular API and select the Parameter Content Type to be : application/json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will see an example body being given to you on th right side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/7595iA36D4FE765469B13/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="JSON.png" title="JSON.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 08:23:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Enabling-JSON-Responses/m-p/134376#M24371</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2017-09-11T08:23:41Z</dc:date>
    </item>
  </channel>
</rss>

