<?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 How to stop a process group in NiFi using curl command in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-stop-a-process-group-in-NiFi-using-curl-command/m-p/193856#M155916</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to stop a nifi process group from UNIX where the nifi is installed using curl command.&lt;/P&gt;&lt;P&gt;First I generated the access token to the URL that I am trying to POST by running the below command:&lt;/P&gt;&lt;P&gt;curl --tlsv1.2  &lt;A href="https://localhost:9966/nifi-api/access/token" target="_blank" rel="nofollow noopener noreferrer"&gt;https://localhost:9966/nifi-api/access/token&lt;/A&gt; --data 'username=*****&amp;amp;password=****' -k&lt;/P&gt;&lt;P&gt;After this, I am running the below command using the access token generated from above step:&lt;/P&gt;&lt;P&gt;curl --tlsv1.2 -ik -H 'Content-Type: application/json' -H 'Authorization: Bearer {token from above command}' -XPUT -d'{"id":"03bc6708-6a44-4069-8fe3-77ec056639e7","state":"STOPPED"}' &lt;A href="https://localhost:9966/nifi-api/flow/process-groups/03bc6708-6a44-4069-8fe3-77ec056639e7" target="_blank" rel="nofollow noopener noreferrer"&gt;https://localhost:9966/nifi-api/flow/process-groups/03bc6708-6a44-4069-8fe3-77ec056639e7&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I get the below error when I run the above command:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="79516-hw-cmd-nifi.png" style="width: 350px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18164i6B89929CEADCD4A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="79516-hw-cmd-nifi.png" alt="79516-hw-cmd-nifi.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can someone help me resolve this issue?&lt;/P&gt;&lt;P&gt;Am I running the correct commands? If not can someone give me the correct commands to GET/POST NiFi content using curl command&lt;/P&gt;&lt;P&gt;PS: I am able to access NiFi UI through my web browser using this link: &lt;A href="https://nifi-host:port/nifi" target="_blank" rel="nofollow noopener noreferrer"&gt;https://nifi-host:port/nifi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="79515-hw-cmd-nifi.png" style="width: 350px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18165i823FE216F37E866B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="79515-hw-cmd-nifi.png" alt="79515-hw-cmd-nifi.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 06:55:54 GMT</pubDate>
    <dc:creator>harishvaibhav_k</dc:creator>
    <dc:date>2019-08-18T06:55:54Z</dc:date>
  </channel>
</rss>

