<?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 get the UUID of a process group after creation using API? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-the-UUID-of-a-process-group-after-creation-using/m-p/208428#M81432</link>
    <description>&lt;P&gt;
	I am writing a script that will dynamically create a process group with a given name based on user input. I then am wanting to deploy a template inside of this process group immediately after it gets created. Since NiFi generates the UUID for the new process group after the POST to the API, I am stumped on how to get the UUID of the newly created process group. How can I accomplish this so I can then deploy a template inside of it?&lt;/P&gt;&lt;P&gt;
	I tried generating a UUID myself for the process group in bash by using `uuidgen` so I could easily track this in a variable, however the POST fails for some reason when I send this along with the name.&lt;/P&gt;&lt;P&gt;
	Here is the curl that is failing when I provide a uuid I generated.&lt;/P&gt;&lt;PRE&gt;curl -k -X POST -v -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' -d '{"revision":{"clientID":"'$uuid'","version":0},"component":{"name":"'$CLUSTER_NAME' '$FLOW_NAME'"}}' &lt;A href="https://myhost.com:9091/nifi-api/process-groups/$EXISTING_PROCESS_GROUP/process-groups/" target="_blank"&gt;https://myhost.com:9091/nifi-api/process-groups/$EXISTING_PROCESS_GROUP/process-groups/&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;If I remove the `clientID` part of the JSON, the POST works and NiFi generates a UUID for me, which results in my original problem.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jul 2018 19:40:27 GMT</pubDate>
    <dc:creator>josh_nicholson</dc:creator>
    <dc:date>2018-07-31T19:40:27Z</dc:date>
    <item>
      <title>How to get the UUID of a process group after creation using API?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-the-UUID-of-a-process-group-after-creation-using/m-p/208428#M81432</link>
      <description>&lt;P&gt;
	I am writing a script that will dynamically create a process group with a given name based on user input. I then am wanting to deploy a template inside of this process group immediately after it gets created. Since NiFi generates the UUID for the new process group after the POST to the API, I am stumped on how to get the UUID of the newly created process group. How can I accomplish this so I can then deploy a template inside of it?&lt;/P&gt;&lt;P&gt;
	I tried generating a UUID myself for the process group in bash by using `uuidgen` so I could easily track this in a variable, however the POST fails for some reason when I send this along with the name.&lt;/P&gt;&lt;P&gt;
	Here is the curl that is failing when I provide a uuid I generated.&lt;/P&gt;&lt;PRE&gt;curl -k -X POST -v -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' -d '{"revision":{"clientID":"'$uuid'","version":0},"component":{"name":"'$CLUSTER_NAME' '$FLOW_NAME'"}}' &lt;A href="https://myhost.com:9091/nifi-api/process-groups/$EXISTING_PROCESS_GROUP/process-groups/" target="_blank"&gt;https://myhost.com:9091/nifi-api/process-groups/$EXISTING_PROCESS_GROUP/process-groups/&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;If I remove the `clientID` part of the JSON, the POST works and NiFi generates a UUID for me, which results in my original problem.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 19:40:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-the-UUID-of-a-process-group-after-creation-using/m-p/208428#M81432</guid>
      <dc:creator>josh_nicholson</dc:creator>
      <dc:date>2018-07-31T19:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the UUID of a process group after creation using API?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-the-UUID-of-a-process-group-after-creation-using/m-p/208429#M81433</link>
      <description>&lt;P&gt;The response of the POST should be the process group entity with the id populated, and in addition there should be a header that has the URI of the created process group.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 23:43:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-get-the-UUID-of-a-process-group-after-creation-using/m-p/208429#M81433</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2018-07-31T23:43:46Z</dc:date>
    </item>
  </channel>
</rss>

