<?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>question NiFi: Can I get variables with REST API on NiFI? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Can-I-get-variables-with-REST-API-on-NiFI/m-p/208565#M170522</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can I get 'variables' in NiFI on REST API?&lt;/P&gt;&lt;P&gt;I found to get variables in NiFi's rest api document, but not found.&lt;/P&gt;&lt;P&gt;variables is : picture.&lt;/P&gt;&lt;P&gt;is it provided?&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.cloudera.com/legacyfs/online/attachments/85459-스크린샷-2018-08-01-오후-25356.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Aug 2018 12:55:19 GMT</pubDate>
    <dc:creator>wluns32</dc:creator>
    <dc:date>2018-08-01T12:55:19Z</dc:date>
    <item>
      <title>NiFi: Can I get variables with REST API on NiFI?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Can-I-get-variables-with-REST-API-on-NiFI/m-p/208565#M170522</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can I get 'variables' in NiFI on REST API?&lt;/P&gt;&lt;P&gt;I found to get variables in NiFi's rest api document, but not found.&lt;/P&gt;&lt;P&gt;variables is : picture.&lt;/P&gt;&lt;P&gt;is it provided?&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.cloudera.com/legacyfs/online/attachments/85459-스크린샷-2018-08-01-오후-25356.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 12:55:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Can-I-get-variables-with-REST-API-on-NiFI/m-p/208565#M170522</guid>
      <dc:creator>wluns32</dc:creator>
      <dc:date>2018-08-01T12:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: Can I get variables with REST API on NiFI?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Can-I-get-variables-with-REST-API-on-NiFI/m-p/208566#M170523</link>
      <description>&lt;PRE&gt;Hi @Seongmin Park&lt;/PRE&gt;&lt;P&gt;Yes, this is possible with the REST API. For example, I made a process group with 1 variable "TestVariable" and content "Hello Seongmin"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="85460-screen-shot-2018-08-01-at-093347.png" style="width: 893px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16861iACA04D1306A0B300/image-size/medium?v=v2&amp;amp;px=400" role="button" title="85460-screen-shot-2018-08-01-at-093347.png" alt="85460-screen-shot-2018-08-01-at-093347.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now to get this using REST, I run;&lt;/P&gt;&lt;PRE&gt;curl -i -X GET &lt;A href="http://172.25.36.20:9090/nifi-api/process-groups/&amp;lt;your" target="_blank" rel="nofollow noopener noreferrer"&gt;http://172.25.36.20:9090/nifi-api/process-groups/&amp;lt;your&lt;/A&gt; group id here&amp;gt;/variable-registry&lt;/PRE&gt;&lt;P&gt;And the output from that rest query&lt;/P&gt;&lt;PRE&gt;HTTP/1.1 200 OK
Date: Wed, 01 Aug 2018 08:33:32 GMT
Content-Type: application/json
Content-Length: 337

{"processGroupRevision":{"clientId":"f49c73f5-0164-1000-48ef-ef1af0585eca","version":4},"variableRegistry":{"variables":[{"variable":{"name":"TestVariable","value":"Hello Seongmin","processGroupId":"f49c4d0a-0164-1000-ffff-ffffb54b15e2","affectedComponents":[]},"canWrite":true}],"processGroupId":"f49c4d0a-0164-1000-ffff-ffffb54b15e2"}}
&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Aug 2019 04:22:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Can-I-get-variables-with-REST-API-on-NiFI/m-p/208566#M170523</guid>
      <dc:creator>JonathanSneep</dc:creator>
      <dc:date>2019-08-18T04:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: Can I get variables with REST API on NiFI?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Can-I-get-variables-with-REST-API-on-NiFI/m-p/208567#M170524</link>
      <description>&lt;P&gt;Thank you sir!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 08:28:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Can-I-get-variables-with-REST-API-on-NiFI/m-p/208567#M170524</guid>
      <dc:creator>wluns32</dc:creator>
      <dc:date>2018-08-02T08:28:39Z</dc:date>
    </item>
  </channel>
</rss>

