<?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 Re: Invoking Nifi rest api in Data Flow in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Invoking-Nifi-rest-api-in-Data-Flow/m-p/413001#M253809</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/137617"&gt;@ptrsz&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Welcome to the community.&lt;BR /&gt;&lt;BR /&gt;The more detail you can provide, the better the community can assist.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Are you trying to use the InvokeHTTP to return from the NiFi rest-api of the same NiFi instance where this NiFi sis running or accessing the rest-api of another NiFi instance?&lt;/LI&gt;&lt;LI&gt;Is this a NiFi cluster or standalone NiFi instance?&lt;/LI&gt;&lt;LI&gt;What version of Apache NiFi are you using (rest-api endpoint may differ by version)?&lt;/LI&gt;&lt;LI&gt;What rest-api endpoint are you trying to use?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here is an example configuration using a secured Apache NiFi 2 instance to retrieve the NiFi system diagnostics data from the NiFi rest-api of the same Nif where the dataflow is running.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Since NiFi is secured, the rest-api endpoint will require authentication and authorization.&amp;nbsp; The easiest way to set this up is to use a clientAuth certificate keystore for authentication.&amp;nbsp; So I setup a StandardRestrictedSSLContextService within the NiFi Process Group.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1764785452590.png" style="width: 644px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46458i4BCA98034F3BC400/image-dimensions/644x399?v=v2" width="644" height="399" role="button" title="MattWho_0-1764785452590.png" alt="MattWho_0-1764785452590.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;I then configured my InvokeHTTP processor to use the above SSL Context service and configured the appropriate rest-api endpoint for the system diagnostics (&lt;A href="https://nifi-2-0.novalocal:8443/nifi-api/system-diagnostics" target="_blank" rel="noopener"&gt;https://&amp;lt;nifi-hostname&amp;gt;:&amp;lt;nifi-port&amp;gt;/nifi-api/system-diagnostics&lt;/A&gt;)&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_1-1764785580514.png" style="width: 644px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46459i8C8C7505ACAED32F/image-dimensions/644x392?v=v2" width="644" height="392" role="button" title="MattWho_1-1764785580514.png" alt="MattWho_1-1764785580514.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Next I need to make sure my clientAuth certificate DN user identity has been authorized for the "view system diagnostics" within the NiFi Policies; otherwise , you will encounter a 401 not authorized response:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_2-1764785802621.png" style="width: 392px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46460i7B77F04C8B7D501D/image-dimensions/392x319?v=v2" width="392" height="319" role="button" title="MattWho_2-1764785802621.png" alt="MattWho_2-1764785802621.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Now when my invokeHTTP executes I get the json response from that rest-api endpoint with my diagnostic data:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_3-1764785992172.png" style="width: 675px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46461iCDB66F0425D7C3BB/image-dimensions/675x242?v=v2" width="675" height="242" role="button" title="MattWho_3-1764785992172.png" alt="MattWho_3-1764785992172.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_4-1764786064853.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46462iCBAA3BFCD6E3CA0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattWho_4-1764786064853.png" alt="MattWho_4-1764786064853.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Dec 2025 18:22:58 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2025-12-03T18:22:58Z</dc:date>
    <item>
      <title>Invoking Nifi rest api in Data Flow</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Invoking-Nifi-rest-api-in-Data-Flow/m-p/412993#M253807</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In Cloudera Data Flow, how should an InvokeHTTP processor be configured to be able to invoke the underlying nifi's rest api?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried several (localhost, with and without ssl etc.) options, but the connection is always refused.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 06:11:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Invoking-Nifi-rest-api-in-Data-Flow/m-p/412993#M253807</guid>
      <dc:creator>ptrsz</dc:creator>
      <dc:date>2026-04-21T06:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking Nifi rest api in Data Flow</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Invoking-Nifi-rest-api-in-Data-Flow/m-p/413001#M253809</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/137617"&gt;@ptrsz&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Welcome to the community.&lt;BR /&gt;&lt;BR /&gt;The more detail you can provide, the better the community can assist.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Are you trying to use the InvokeHTTP to return from the NiFi rest-api of the same NiFi instance where this NiFi sis running or accessing the rest-api of another NiFi instance?&lt;/LI&gt;&lt;LI&gt;Is this a NiFi cluster or standalone NiFi instance?&lt;/LI&gt;&lt;LI&gt;What version of Apache NiFi are you using (rest-api endpoint may differ by version)?&lt;/LI&gt;&lt;LI&gt;What rest-api endpoint are you trying to use?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here is an example configuration using a secured Apache NiFi 2 instance to retrieve the NiFi system diagnostics data from the NiFi rest-api of the same Nif where the dataflow is running.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Since NiFi is secured, the rest-api endpoint will require authentication and authorization.&amp;nbsp; The easiest way to set this up is to use a clientAuth certificate keystore for authentication.&amp;nbsp; So I setup a StandardRestrictedSSLContextService within the NiFi Process Group.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1764785452590.png" style="width: 644px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46458i4BCA98034F3BC400/image-dimensions/644x399?v=v2" width="644" height="399" role="button" title="MattWho_0-1764785452590.png" alt="MattWho_0-1764785452590.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;I then configured my InvokeHTTP processor to use the above SSL Context service and configured the appropriate rest-api endpoint for the system diagnostics (&lt;A href="https://nifi-2-0.novalocal:8443/nifi-api/system-diagnostics" target="_blank" rel="noopener"&gt;https://&amp;lt;nifi-hostname&amp;gt;:&amp;lt;nifi-port&amp;gt;/nifi-api/system-diagnostics&lt;/A&gt;)&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_1-1764785580514.png" style="width: 644px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46459i8C8C7505ACAED32F/image-dimensions/644x392?v=v2" width="644" height="392" role="button" title="MattWho_1-1764785580514.png" alt="MattWho_1-1764785580514.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Next I need to make sure my clientAuth certificate DN user identity has been authorized for the "view system diagnostics" within the NiFi Policies; otherwise , you will encounter a 401 not authorized response:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_2-1764785802621.png" style="width: 392px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46460i7B77F04C8B7D501D/image-dimensions/392x319?v=v2" width="392" height="319" role="button" title="MattWho_2-1764785802621.png" alt="MattWho_2-1764785802621.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Now when my invokeHTTP executes I get the json response from that rest-api endpoint with my diagnostic data:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_3-1764785992172.png" style="width: 675px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46461iCDB66F0425D7C3BB/image-dimensions/675x242?v=v2" width="675" height="242" role="button" title="MattWho_3-1764785992172.png" alt="MattWho_3-1764785992172.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_4-1764786064853.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46462iCBAA3BFCD6E3CA0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattWho_4-1764786064853.png" alt="MattWho_4-1764786064853.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 18:22:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Invoking-Nifi-rest-api-in-Data-Flow/m-p/413001#M253809</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-12-03T18:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking Nifi rest api in Data Flow</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Invoking-Nifi-rest-api-in-Data-Flow/m-p/413002#M253810</link>
      <description>&lt;P&gt;Great info! To add to this, if you start with a ReadyFlow (such as Hello World), it comes with a pre-configured SSL Context controller service you can use in Matt's procedure above without having to configure it yourself.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 20:11:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Invoking-Nifi-rest-api-in-Data-Flow/m-p/413002#M253810</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2025-12-03T20:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking Nifi rest api in Data Flow</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Invoking-Nifi-rest-api-in-Data-Flow/m-p/413033#M253816</link>
      <description>&lt;P&gt;Thanks for the replies!&lt;BR /&gt;I ended up using the "&lt;A href="https://${hostname(true)}:8443/nifi-api&amp;quot;" target="_blank"&gt;https://${hostname(true)}:8443/nifi-api"&lt;/A&gt;&amp;nbsp;endpoint in the InvokeHTTP processor. However, the DefaultSSLContext controller service that Data Flow comes out of the box with did not work due to trust issues.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Dec 2025 07:00:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Invoking-Nifi-rest-api-in-Data-Flow/m-p/413033#M253816</guid>
      <dc:creator>ptrsz</dc:creator>
      <dc:date>2025-12-07T07:00:46Z</dc:date>
    </item>
  </channel>
</rss>

