<?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: Trigger RESTAPI to schedule processors from nifi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Trigger-RESTAPI-to-schedule-processors-from-nifi/m-p/388492#M246691</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110030"&gt;@Naveen_Sagar&lt;/a&gt;&amp;nbsp;Welcome to our community! To help you get the best possible answer, I have tagged in our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/42173"&gt;@ckumar&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2024 13:49:56 GMT</pubDate>
    <dc:creator>VidyaSargur</dc:creator>
    <dc:date>2024-05-29T13:49:56Z</dc:date>
    <item>
      <title>Trigger RESTAPI to schedule processors from nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Trigger-RESTAPI-to-schedule-processors-from-nifi/m-p/388489#M246688</link>
      <description>&lt;DIV&gt;curl -H &amp;nbsp; "Content-Type: application/JSON ; Authorization: Bearer {token here}" -d "{"revision":{"clientId":"ac153723-44ff-17fd-e42e-f975cb01817b"},"processors":{"id":"ac15a47e-44ff-17fd-ffff-fffffc691b51","running":"true"}}" -X PUT "&lt;A href="https://aaa.com:443/nifi-api/processors/ac15a47e-44ff-17fd-ffff-fffffc691b51/run-status" target="_blank" rel="noopener nofollow noreferrer"&gt;https://aaa.com:443/nifi-api/processors/ac15a47e-44ff-17fd-ffff-fffffc691b51/run-status&lt;/A&gt;"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;we are trying to run NIFI processor using NIFI API as above, but its giving UNAUTHORIZED error always. Can any one help in getting this fixed. Are we using correct code? We are able to get the token from NIFI.&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 May 2024 12:09:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Trigger-RESTAPI-to-schedule-processors-from-nifi/m-p/388489#M246688</guid>
      <dc:creator>Naveen_Sagar</dc:creator>
      <dc:date>2024-05-29T12:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger RESTAPI to schedule processors from nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Trigger-RESTAPI-to-schedule-processors-from-nifi/m-p/388492#M246691</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110030"&gt;@Naveen_Sagar&lt;/a&gt;&amp;nbsp;Welcome to our community! To help you get the best possible answer, I have tagged in our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/42173"&gt;@ckumar&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 13:49:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Trigger-RESTAPI-to-schedule-processors-from-nifi/m-p/388492#M246691</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2024-05-29T13:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger RESTAPI to schedule processors from nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Trigger-RESTAPI-to-schedule-processors-from-nifi/m-p/388493#M246692</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following command I have tested and found working, make sure you are passing the right token as sometimes you may end up using extra information in the token&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer &amp;lt;TOKEN&amp;gt;" -d '{"state": "RUNNING", "id": "processor-id", "revision": {"version": versionNumber, "clientId": "clidntIDstring"}}' -k --negotiate "&lt;A href="https://hostname:8443/nifi-api/processors/" target="_blank" rel="noopener"&gt;https://hostname:8443/nifi-api/processors/&lt;/A&gt;&amp;lt;ID&amp;gt;/run-status"&lt;/P&gt;&lt;P&gt;Also please make sure the user has permission to WRITE permission on components&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 14:11:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Trigger-RESTAPI-to-schedule-processors-from-nifi/m-p/388493#M246692</guid>
      <dc:creator>ckumar</dc:creator>
      <dc:date>2024-05-29T14:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger RESTAPI to schedule processors from nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Trigger-RESTAPI-to-schedule-processors-from-nifi/m-p/388495#M246694</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110030"&gt;@Naveen_Sagar&lt;/a&gt;&amp;nbsp; I am not sure if this is the right solution, but if you are using NiFI itself to communicate with its own NiFi API,&amp;nbsp; you can skip the authorization token completely as NiFi is already authorized to execute its own API calls.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 14:47:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Trigger-RESTAPI-to-schedule-processors-from-nifi/m-p/388495#M246694</guid>
      <dc:creator>steven-matison</dc:creator>
      <dc:date>2024-05-29T14:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger RESTAPI to schedule processors from nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Trigger-RESTAPI-to-schedule-processors-from-nifi/m-p/388507#M246695</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110030"&gt;@Naveen_Sagar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The Bearer token is issued by a specific NiFi node for a specific user identity.&amp;nbsp; &amp;nbsp;That Bearer token has a limited life time and can not be used to authenticate a user on any other NiFi node (even one in the same cluster as the original node that provided the bearer token).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;All rest-api endpoints will require some level of authorization.&amp;nbsp; So simply having a valid bearer token for an authenticated user identity, does not mean that user is authorized to access/interact with every rest-api endpoint.&amp;nbsp; &amp;nbsp;In your case, the user would need "operate the component" or "view the component" and "modify the component" authorizations in order to change the run-status.&lt;BR /&gt;&lt;BR /&gt;You should inspect the nifi-user.log on the &lt;STRONG&gt;&lt;EM&gt;aaa.com&lt;/EM&gt;&lt;/STRONG&gt; nifi server to see what user identity attempted to change the runs-status on that node and was not authorized.&amp;nbsp; Then verify the necessary authorization is setup for that user identity and try your curl command again.&lt;BR /&gt;&lt;BR /&gt;And make sure as&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/42173"&gt;@ckumar&lt;/a&gt;&amp;nbsp;pointed out that in his curl example that you are using the "-k" flag which allows curl to auto trust the serverAuth certificate presented in the TLS exchange with your secured NiFi.&lt;/P&gt;&lt;P&gt;Please help our community thrive. 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, 29 May 2024 18:23:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Trigger-RESTAPI-to-schedule-processors-from-nifi/m-p/388507#M246695</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-05-29T18:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger RESTAPI to schedule processors from nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Trigger-RESTAPI-to-schedule-processors-from-nifi/m-p/388687#M246740</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/110030"&gt;@Naveen_Sagar&lt;/a&gt;,&amp;nbsp;Did the response assist in resolving your query? If it did, kindly mark the relevant reply as the solution, as it will aid others in locating the answer more easily in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 05:15:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Trigger-RESTAPI-to-schedule-processors-from-nifi/m-p/388687#M246740</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2024-06-03T05:15:01Z</dc:date>
    </item>
  </channel>
</rss>

