<?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: Can I start a processgroup using rest-api in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-start-a-processgroup-using-rest-api/m-p/136834#M47954</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11016/avijeetd.html" nodeid="11016"&gt;@Avijeet Dash&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I was able to start a process group with following cURL command:&lt;/P&gt;&lt;PRE&gt;curl -i -H 'Content-Type: application/json' -XPUT -d '{"id":"cdb54c9a-0158-1000-5566-c45ca9692f85","state":"RUNNING"}' localhost:8080/nifi-api/flow/process-groups/cdb54c9a-0158-1000-5566-c45ca9692f85&lt;/PRE&gt;&lt;P&gt;Is there any difference with your request? I think GET response doesn't contain 'state' element because a process group doesn't have its own state, just a container of child processors.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2016 14:44:17 GMT</pubDate>
    <dc:creator>kkawamura</dc:creator>
    <dc:date>2016-12-05T14:44:17Z</dc:date>
    <item>
      <title>Can I start a processgroup using rest-api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-start-a-processgroup-using-rest-api/m-p/136831#M47951</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am able to start/stop processors using rest-api, can we do the same to process groups? The GET api doesn't show any status tag. What is the JSON we can POST to start/stop it?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Avijeet&lt;/P&gt;&lt;P&gt;{
"revision": {
"version": 0
},
"id": "8619c3f4-0158-1000-a750-24884f23ea60",
"uri": "http://localhsot:8080/nifi-api/process-groups/8619c3f4-0158-1000-a750-24884f23ea60",
"position": {
"x": 0,
"y": 0
},
"permissions": {
"canRead": true,
"canWrite": true
},
"bulletins": [],
"component": {
"id": "8619c3f4-0158-1000-a750-24884f23ea60",
"position": {
"x": 0,
"y": 0
},
"name": "NiFi Flow",
"comments": "",
"runningCount": 0,
"stoppedCount": 7,
"invalidCount": 0,
"disabledCount": 0,
"activeRemotePortCount": 0,
"inactiveRemotePortCount": 0,
"inputPortCount": 0,
"outputPortCount": 0
},
"status": {
"id": "8619c3f4-0158-1000-a750-24884f23ea60",
"name": "NiFi Flow",
"statsLastRefreshed": "06:00:52 UTC",
"aggregateSnapshot": {
"id": "8619c3f4-0158-1000-a750-24884f23ea60",
"name": "NiFi Flow",
"flowFilesIn": 0,
"bytesIn": 0,
"input": "0 (0 bytes)",
"flowFilesQueued": 36,
"bytesQueued": 1536,
"queued": "36 (1.5 KB)",
"queuedCount": "36",
"queuedSize": "1.5 KB",
"bytesRead": 296384,
"read": "289.44 KB",
"bytesWritten": 209649,
"written": "204.74 KB",
"flowFilesOut": 0,
"bytesOut": 0,
"output": "0 (0 bytes)",
"flowFilesTransferred": 1519,
"bytesTransferred": 592128,
"transferred": "1,519 (578.25 KB)",
"bytesReceived": 92325,
"flowFilesReceived": 75,
"received": "75 (90.16 KB)",
"bytesSent": 0,
"flowFilesSent": 0,
"sent": "0 (0 bytes)",
"activeThreadCount": 0
}
},
"runningCount": 0,
"stoppedCount": 7,
"invalidCount": 0,
"disabledCount": 0,
"activeRemotePortCount": 0,
"inactiveRemotePortCount": 0,
"inputPortCount": 0,
"outputPortCount": 0
}&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 14:06:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-start-a-processgroup-using-rest-api/m-p/136831#M47951</guid>
      <dc:creator>avijeetd</dc:creator>
      <dc:date>2016-12-05T14:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can I start a processgroup using rest-api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-start-a-processgroup-using-rest-api/m-p/136832#M47952</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/11016/avijeetd.html" nodeid="11016"&gt;@Avijeet Dash&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, you can do the same to process groups. Please refer &lt;A target="_blank" href="https://nifi.apache.org/docs/nifi-docs/rest-api/index.html"&gt;NiFi Rest Api&lt;/A&gt; PUT /flow/processor-groups/{id} endpoint.&lt;/P&gt;&lt;P&gt;You can start a process group by sending PUT request to the endpoint a JSON like this:&lt;/P&gt;&lt;PRE&gt;{"id":"cda85e6e-0158-1000-150a-cb88f801e860","state":"RUNNING"}&lt;/PRE&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Koji&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 14:34:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-start-a-processgroup-using-rest-api/m-p/136832#M47952</guid>
      <dc:creator>kkawamura</dc:creator>
      <dc:date>2016-12-05T14:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can I start a processgroup using rest-api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-start-a-processgroup-using-rest-api/m-p/136833#M47953</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3908/kkawamura.html" nodeid="3908"&gt;@kkawamura&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I tried this but got - Message body is malformed. Unable to map into expected format.&lt;/P&gt;&lt;P&gt;Also in GET resonse I don't see any "state" tag&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 14:38:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-start-a-processgroup-using-rest-api/m-p/136833#M47953</guid>
      <dc:creator>avijeetd</dc:creator>
      <dc:date>2016-12-05T14:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can I start a processgroup using rest-api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-start-a-processgroup-using-rest-api/m-p/136834#M47954</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11016/avijeetd.html" nodeid="11016"&gt;@Avijeet Dash&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I was able to start a process group with following cURL command:&lt;/P&gt;&lt;PRE&gt;curl -i -H 'Content-Type: application/json' -XPUT -d '{"id":"cdb54c9a-0158-1000-5566-c45ca9692f85","state":"RUNNING"}' localhost:8080/nifi-api/flow/process-groups/cdb54c9a-0158-1000-5566-c45ca9692f85&lt;/PRE&gt;&lt;P&gt;Is there any difference with your request? I think GET response doesn't contain 'state' element because a process group doesn't have its own state, just a container of child processors.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 14:44:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-start-a-processgroup-using-rest-api/m-p/136834#M47954</guid>
      <dc:creator>kkawamura</dc:creator>
      <dc:date>2016-12-05T14:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can I start a processgroup using rest-api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-start-a-processgroup-using-rest-api/m-p/136835#M47955</link>
      <description>&lt;P&gt;Hi, thanks it worked, I was using a URL like below...then noticed the 'flow', used it and worked fine.&lt;/P&gt;&lt;PRE&gt;localhost:8080/nifi-api/process-groups/cdb54c9a-0158-1000-5566-c45ca9692f85&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Dec 2016 14:11:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-I-start-a-processgroup-using-rest-api/m-p/136835#M47955</guid>
      <dc:creator>avijeetd</dc:creator>
      <dc:date>2016-12-06T14:11:35Z</dc:date>
    </item>
  </channel>
</rss>

