Re: upload template with REST problem

2018-09-27 Thread l vic
*Nice! Any idea how i can configure it programmatically? eg If i have some
template that consumes Kafka messages, *
*how can I create instance of processor group with the name of topic and
list of kafka brokers?*



On Thu, Sep 27, 2018 at 3:57 AM Daniel Chaffelson 
wrote:

> If you are looking to work with Templates programmatically, then I suggest
> you look at my Python client NiPyApi -
> https://github.com/Chaffelson/nipyapi
>
> There is a module for doing all the usual template commands:
>
> https://nipyapi.readthedocs.io/en/latest/nipyapi-docs/nipyapi.html#module-nipyapi.templates
> And modules for doing most other things, including working with
> NiFi-Registry.
>
> This way you do not have to worry about the mechanics of understanding how
> the NiFi REST Api works, you can just get on with your automation.
>
> On Wed, Sep 26, 2018 at 10:52 PM Andy LoPresto 
> wrote:
>
>> I would recommend you perform the actions you want to replicate in your
>> browser using the UI, and have the Developer Tools window open at the same
>> time. You can monitor all the requests to the API that way, and even copy
>> the request as a curl command, etc. This should make it much easier for you
>> to build the API requests you want.
>>
>>
>> Andy LoPresto
>> alopre...@apache.org
>> *alopresto.apa...@gmail.com *
>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>>
>> On Sep 26, 2018, at 1:20 PM, l vic  wrote:
>>
>> Any idea how to actually instantiate the template after upload?
>>
>> On Thu, Sep 20, 2018 at 12:53 PM Bryan Bende  wrote:
>>
>>> The REST API documentation [1] for the method you are using says:
>>>
>>> NameLocation  Type  Description
>>> id   pathstring The process group id.
>>>
>>> [1] https://nifi.apache.org/docs/nifi-docs/rest-api/index.html
>>> On Thu, Sep 20, 2018 at 12:49 PM l vic  wrote:
>>> >
>>> > yes, the "id" must actually be "groupId", then it works... As usual,
>>> Nifi documentation is vague or misleading
>>> >
>>> > On Thu, Sep 20, 2018 at 12:38 PM Bryan Bende  wrote:
>>> >>
>>> >> That means there is no process group with the id you specified.
>>> >> On Thu, Sep 20, 2018 at 12:36 PM l vic  wrote:
>>> >> >
>>> >> > yes, in this case i see another error:
>>> >> >
>>> >> > Unable to locate group with id
>>> '46f95fe5-3024-31d8--'.ma6219-mac:deploy
>>> >> >
>>> >> >
>>> >> > On Thu, Sep 20, 2018 at 9:58 AM Bryan Bende 
>>> wrote:
>>> >> >>
>>> >> >> The URL you specified is not the correct path, it is missing
>>> "process-groups".
>>> >> >>
>>> >> >>
>>> http://10.10.100.105:8080/nifi-api/process-groups/f2ae3d20-e105-37a1--/templates/upload
>>> >> >> On Wed, Sep 19, 2018 at 4:17 PM l vic  wrote:
>>> >> >> >
>>> >> >> > Hi,
>>> >> >> > I have template for the processing group "test-template.xml" with
>>> >> >> > id=f2ae3d20-e105-37a1--
>>> >> >> > that I am trying to upload from my mac
>>> >> >> >
>>> >> >> > curl -iv -F template=@test-template.xml -X POST
>>> http://10.10.100.105:8080/nifi-api/f2ae3d20-e105-37a1--/templates/upload
>>> >> >> >
>>> >> >> >
>>> >> >> > I see http error:
>>> >> >> >
>>> >> >> >
>>> >> >> > The specified resource could not be found.ma6219-mac:deploy
>>> >> >> >
>>> >> >> >
>>> >> >> > Any idea what the problem is with my command?
>>> >> >> >
>>> >> >> > Thanks ,
>>> >> >> >
>>> >> >> > -V
>>>
>>
>>


Re: upload template with REST problem

2018-09-27 Thread Daniel Chaffelson
If you are looking to work with Templates programmatically, then I suggest
you look at my Python client NiPyApi -https://github.com/Chaffelson/nipyapi

There is a module for doing all the usual template commands:
https://nipyapi.readthedocs.io/en/latest/nipyapi-docs/nipyapi.html#module-nipyapi.templates
And modules for doing most other things, including working with
NiFi-Registry.

This way you do not have to worry about the mechanics of understanding how
the NiFi REST Api works, you can just get on with your automation.

On Wed, Sep 26, 2018 at 10:52 PM Andy LoPresto  wrote:

> I would recommend you perform the actions you want to replicate in your
> browser using the UI, and have the Developer Tools window open at the same
> time. You can monitor all the requests to the API that way, and even copy
> the request as a curl command, etc. This should make it much easier for you
> to build the API requests you want.
>
>
> Andy LoPresto
> alopre...@apache.org
> *alopresto.apa...@gmail.com *
> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>
> On Sep 26, 2018, at 1:20 PM, l vic  wrote:
>
> Any idea how to actually instantiate the template after upload?
>
> On Thu, Sep 20, 2018 at 12:53 PM Bryan Bende  wrote:
>
>> The REST API documentation [1] for the method you are using says:
>>
>> NameLocation  Type  Description
>> id   pathstring The process group id.
>>
>> [1] https://nifi.apache.org/docs/nifi-docs/rest-api/index.html
>> On Thu, Sep 20, 2018 at 12:49 PM l vic  wrote:
>> >
>> > yes, the "id" must actually be "groupId", then it works... As usual,
>> Nifi documentation is vague or misleading
>> >
>> > On Thu, Sep 20, 2018 at 12:38 PM Bryan Bende  wrote:
>> >>
>> >> That means there is no process group with the id you specified.
>> >> On Thu, Sep 20, 2018 at 12:36 PM l vic  wrote:
>> >> >
>> >> > yes, in this case i see another error:
>> >> >
>> >> > Unable to locate group with id
>> '46f95fe5-3024-31d8--'.ma6219-mac:deploy
>> >> >
>> >> >
>> >> > On Thu, Sep 20, 2018 at 9:58 AM Bryan Bende 
>> wrote:
>> >> >>
>> >> >> The URL you specified is not the correct path, it is missing
>> "process-groups".
>> >> >>
>> >> >>
>> http://10.10.100.105:8080/nifi-api/process-groups/f2ae3d20-e105-37a1--/templates/upload
>> >> >> On Wed, Sep 19, 2018 at 4:17 PM l vic  wrote:
>> >> >> >
>> >> >> > Hi,
>> >> >> > I have template for the processing group "test-template.xml" with
>> >> >> > id=f2ae3d20-e105-37a1--
>> >> >> > that I am trying to upload from my mac
>> >> >> >
>> >> >> > curl -iv -F template=@test-template.xml -X POST
>> http://10.10.100.105:8080/nifi-api/f2ae3d20-e105-37a1--/templates/upload
>> >> >> >
>> >> >> >
>> >> >> > I see http error:
>> >> >> >
>> >> >> >
>> >> >> > The specified resource could not be found.ma6219-mac:deploy
>> >> >> >
>> >> >> >
>> >> >> > Any idea what the problem is with my command?
>> >> >> >
>> >> >> > Thanks ,
>> >> >> >
>> >> >> > -V
>>
>
>


Re: upload template with REST problem

2018-09-26 Thread Andy LoPresto
I would recommend you perform the actions you want to replicate in your browser 
using the UI, and have the Developer Tools window open at the same time. You 
can monitor all the requests to the API that way, and even copy the request as 
a curl command, etc. This should make it much easier for you to build the API 
requests you want.


Andy LoPresto
alopre...@apache.org
alopresto.apa...@gmail.com
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Sep 26, 2018, at 1:20 PM, l vic  wrote:
> 
> Any idea how to actually instantiate the template after upload?
> 
> On Thu, Sep 20, 2018 at 12:53 PM Bryan Bende  > wrote:
> The REST API documentation [1] for the method you are using says:
> 
> NameLocation  Type  Description
> id   pathstring The process group id.
> 
> [1] https://nifi.apache.org/docs/nifi-docs/rest-api/index.html 
> 
> On Thu, Sep 20, 2018 at 12:49 PM l vic  > wrote:
> >
> > yes, the "id" must actually be "groupId", then it works... As usual, Nifi 
> > documentation is vague or misleading
> >
> > On Thu, Sep 20, 2018 at 12:38 PM Bryan Bende  > > wrote:
> >>
> >> That means there is no process group with the id you specified.
> >> On Thu, Sep 20, 2018 at 12:36 PM l vic  >> > wrote:
> >> >
> >> > yes, in this case i see another error:
> >> >
> >> > Unable to locate group with id 
> >> > '46f95fe5-3024-31d8--'.ma6219-mac:deploy
> >> >
> >> >
> >> > On Thu, Sep 20, 2018 at 9:58 AM Bryan Bende  >> > > wrote:
> >> >>
> >> >> The URL you specified is not the correct path, it is missing 
> >> >> "process-groups".
> >> >>
> >> >> http://10.10.100.105:8080/nifi-api/process-groups/f2ae3d20-e105-37a1--/templates/upload
> >> >>  
> >> >> 
> >> >> On Wed, Sep 19, 2018 at 4:17 PM l vic  >> >> > wrote:
> >> >> >
> >> >> > Hi,
> >> >> > I have template for the processing group "test-template.xml" with
> >> >> > id=f2ae3d20-e105-37a1--
> >> >> > that I am trying to upload from my mac
> >> >> >
> >> >> > curl -iv -F template=@test-template.xml -X POST  
> >> >> > http://10.10.100.105:8080/nifi-api/f2ae3d20-e105-37a1--/templates/upload
> >> >> >  
> >> >> > 
> >> >> >
> >> >> >
> >> >> > I see http error:
> >> >> >
> >> >> >
> >> >> > The specified resource could not be found.ma6219-mac:deploy
> >> >> >
> >> >> >
> >> >> > Any idea what the problem is with my command?
> >> >> >
> >> >> > Thanks ,
> >> >> >
> >> >> > -V



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: upload template with REST problem

2018-09-26 Thread l vic
Any idea how to actually instantiate the template after upload?

On Thu, Sep 20, 2018 at 12:53 PM Bryan Bende  wrote:

> The REST API documentation [1] for the method you are using says:
>
> NameLocation  Type  Description
> id   pathstring The process group id.
>
> [1] https://nifi.apache.org/docs/nifi-docs/rest-api/index.html
> On Thu, Sep 20, 2018 at 12:49 PM l vic  wrote:
> >
> > yes, the "id" must actually be "groupId", then it works... As usual,
> Nifi documentation is vague or misleading
> >
> > On Thu, Sep 20, 2018 at 12:38 PM Bryan Bende  wrote:
> >>
> >> That means there is no process group with the id you specified.
> >> On Thu, Sep 20, 2018 at 12:36 PM l vic  wrote:
> >> >
> >> > yes, in this case i see another error:
> >> >
> >> > Unable to locate group with id
> '46f95fe5-3024-31d8--'.ma6219-mac:deploy
> >> >
> >> >
> >> > On Thu, Sep 20, 2018 at 9:58 AM Bryan Bende  wrote:
> >> >>
> >> >> The URL you specified is not the correct path, it is missing
> "process-groups".
> >> >>
> >> >>
> http://10.10.100.105:8080/nifi-api/process-groups/f2ae3d20-e105-37a1--/templates/upload
> >> >> On Wed, Sep 19, 2018 at 4:17 PM l vic  wrote:
> >> >> >
> >> >> > Hi,
> >> >> > I have template for the processing group "test-template.xml" with
> >> >> > id=f2ae3d20-e105-37a1--
> >> >> > that I am trying to upload from my mac
> >> >> >
> >> >> > curl -iv -F template=@test-template.xml -X POST
> http://10.10.100.105:8080/nifi-api/f2ae3d20-e105-37a1--/templates/upload
> >> >> >
> >> >> >
> >> >> > I see http error:
> >> >> >
> >> >> >
> >> >> > The specified resource could not be found.ma6219-mac:deploy
> >> >> >
> >> >> >
> >> >> > Any idea what the problem is with my command?
> >> >> >
> >> >> > Thanks ,
> >> >> >
> >> >> > -V
>


Re: upload template with REST problem

2018-09-21 Thread Bryan Bende
If you click on any row in the list of operations it expands it and
shows the description of each field, which is where the description of
id field was that I referred to earlier.
On Fri, Sep 21, 2018 at 9:15 AM l vic  wrote:
>
> I can only see "id" in swagger doc, like the image attached, if i am missing 
> more verbose part I apologize
>
> On Thu, Sep 20, 2018 at 12:53 PM Bryan Bende  wrote:
>>
>> The REST API documentation [1] for the method you are using says:
>>
>> NameLocation  Type  Description
>> id   pathstring The process group id.
>>
>> [1] https://nifi.apache.org/docs/nifi-docs/rest-api/index.html
>> On Thu, Sep 20, 2018 at 12:49 PM l vic  wrote:
>> >
>> > yes, the "id" must actually be "groupId", then it works... As usual, Nifi 
>> > documentation is vague or misleading
>> >
>> > On Thu, Sep 20, 2018 at 12:38 PM Bryan Bende  wrote:
>> >>
>> >> That means there is no process group with the id you specified.
>> >> On Thu, Sep 20, 2018 at 12:36 PM l vic  wrote:
>> >> >
>> >> > yes, in this case i see another error:
>> >> >
>> >> > Unable to locate group with id 
>> >> > '46f95fe5-3024-31d8--'.ma6219-mac:deploy
>> >> >
>> >> >
>> >> > On Thu, Sep 20, 2018 at 9:58 AM Bryan Bende  wrote:
>> >> >>
>> >> >> The URL you specified is not the correct path, it is missing 
>> >> >> "process-groups".
>> >> >>
>> >> >> http://10.10.100.105:8080/nifi-api/process-groups/f2ae3d20-e105-37a1--/templates/upload
>> >> >> On Wed, Sep 19, 2018 at 4:17 PM l vic  wrote:
>> >> >> >
>> >> >> > Hi,
>> >> >> > I have template for the processing group "test-template.xml" with
>> >> >> > id=f2ae3d20-e105-37a1--
>> >> >> > that I am trying to upload from my mac
>> >> >> >
>> >> >> > curl -iv -F template=@test-template.xml -X POST  
>> >> >> > http://10.10.100.105:8080/nifi-api/f2ae3d20-e105-37a1--/templates/upload
>> >> >> >
>> >> >> >
>> >> >> > I see http error:
>> >> >> >
>> >> >> >
>> >> >> > The specified resource could not be found.ma6219-mac:deploy
>> >> >> >
>> >> >> >
>> >> >> > Any idea what the problem is with my command?
>> >> >> >
>> >> >> > Thanks ,
>> >> >> >
>> >> >> > -V


Re: upload template with REST problem

2018-09-21 Thread l vic
I can only see "id" in swagger doc, like the image attached, if i am
missing more verbose part I apologize

On Thu, Sep 20, 2018 at 12:53 PM Bryan Bende  wrote:

> The REST API documentation [1] for the method you are using says:
>
> NameLocation  Type  Description
> id   pathstring The process group id.
>
> [1] https://nifi.apache.org/docs/nifi-docs/rest-api/index.html
> On Thu, Sep 20, 2018 at 12:49 PM l vic  wrote:
> >
> > yes, the "id" must actually be "groupId", then it works... As usual,
> Nifi documentation is vague or misleading
> >
> > On Thu, Sep 20, 2018 at 12:38 PM Bryan Bende  wrote:
> >>
> >> That means there is no process group with the id you specified.
> >> On Thu, Sep 20, 2018 at 12:36 PM l vic  wrote:
> >> >
> >> > yes, in this case i see another error:
> >> >
> >> > Unable to locate group with id
> '46f95fe5-3024-31d8--'.ma6219-mac:deploy
> >> >
> >> >
> >> > On Thu, Sep 20, 2018 at 9:58 AM Bryan Bende  wrote:
> >> >>
> >> >> The URL you specified is not the correct path, it is missing
> "process-groups".
> >> >>
> >> >>
> http://10.10.100.105:8080/nifi-api/process-groups/f2ae3d20-e105-37a1--/templates/upload
> >> >> On Wed, Sep 19, 2018 at 4:17 PM l vic  wrote:
> >> >> >
> >> >> > Hi,
> >> >> > I have template for the processing group "test-template.xml" with
> >> >> > id=f2ae3d20-e105-37a1--
> >> >> > that I am trying to upload from my mac
> >> >> >
> >> >> > curl -iv -F template=@test-template.xml -X POST
> http://10.10.100.105:8080/nifi-api/f2ae3d20-e105-37a1--/templates/upload
> >> >> >
> >> >> >
> >> >> > I see http error:
> >> >> >
> >> >> >
> >> >> > The specified resource could not be found.ma6219-mac:deploy
> >> >> >
> >> >> >
> >> >> > Any idea what the problem is with my command?
> >> >> >
> >> >> > Thanks ,
> >> >> >
> >> >> > -V
>


Re: upload template with REST problem

2018-09-21 Thread Pierre Villard
lvic, we're doing our best to provide a documentation as good as we can.
Feel free to file a JIRA and suggest the modifications you'd like to see to
make things better.

Le jeu. 20 sept. 2018 à 18:53, Bryan Bende  a écrit :

> The REST API documentation [1] for the method you are using says:
>
> NameLocation  Type  Description
> id   pathstring The process group id.
>
> [1] https://nifi.apache.org/docs/nifi-docs/rest-api/index.html
> On Thu, Sep 20, 2018 at 12:49 PM l vic  wrote:
> >
> > yes, the "id" must actually be "groupId", then it works... As usual,
> Nifi documentation is vague or misleading
> >
> > On Thu, Sep 20, 2018 at 12:38 PM Bryan Bende  wrote:
> >>
> >> That means there is no process group with the id you specified.
> >> On Thu, Sep 20, 2018 at 12:36 PM l vic  wrote:
> >> >
> >> > yes, in this case i see another error:
> >> >
> >> > Unable to locate group with id
> '46f95fe5-3024-31d8--'.ma6219-mac:deploy
> >> >
> >> >
> >> > On Thu, Sep 20, 2018 at 9:58 AM Bryan Bende  wrote:
> >> >>
> >> >> The URL you specified is not the correct path, it is missing
> "process-groups".
> >> >>
> >> >>
> http://10.10.100.105:8080/nifi-api/process-groups/f2ae3d20-e105-37a1--/templates/upload
> >> >> On Wed, Sep 19, 2018 at 4:17 PM l vic  wrote:
> >> >> >
> >> >> > Hi,
> >> >> > I have template for the processing group "test-template.xml" with
> >> >> > id=f2ae3d20-e105-37a1--
> >> >> > that I am trying to upload from my mac
> >> >> >
> >> >> > curl -iv -F template=@test-template.xml -X POST
> http://10.10.100.105:8080/nifi-api/f2ae3d20-e105-37a1--/templates/upload
> >> >> >
> >> >> >
> >> >> > I see http error:
> >> >> >
> >> >> >
> >> >> > The specified resource could not be found.ma6219-mac:deploy
> >> >> >
> >> >> >
> >> >> > Any idea what the problem is with my command?
> >> >> >
> >> >> > Thanks ,
> >> >> >
> >> >> > -V
>


Re: upload template with REST problem

2018-09-20 Thread Bryan Bende
The REST API documentation [1] for the method you are using says:

NameLocation  Type  Description
id   pathstring The process group id.

[1] https://nifi.apache.org/docs/nifi-docs/rest-api/index.html
On Thu, Sep 20, 2018 at 12:49 PM l vic  wrote:
>
> yes, the "id" must actually be "groupId", then it works... As usual, Nifi 
> documentation is vague or misleading
>
> On Thu, Sep 20, 2018 at 12:38 PM Bryan Bende  wrote:
>>
>> That means there is no process group with the id you specified.
>> On Thu, Sep 20, 2018 at 12:36 PM l vic  wrote:
>> >
>> > yes, in this case i see another error:
>> >
>> > Unable to locate group with id 
>> > '46f95fe5-3024-31d8--'.ma6219-mac:deploy
>> >
>> >
>> > On Thu, Sep 20, 2018 at 9:58 AM Bryan Bende  wrote:
>> >>
>> >> The URL you specified is not the correct path, it is missing 
>> >> "process-groups".
>> >>
>> >> http://10.10.100.105:8080/nifi-api/process-groups/f2ae3d20-e105-37a1--/templates/upload
>> >> On Wed, Sep 19, 2018 at 4:17 PM l vic  wrote:
>> >> >
>> >> > Hi,
>> >> > I have template for the processing group "test-template.xml" with
>> >> > id=f2ae3d20-e105-37a1--
>> >> > that I am trying to upload from my mac
>> >> >
>> >> > curl -iv -F template=@test-template.xml -X POST  
>> >> > http://10.10.100.105:8080/nifi-api/f2ae3d20-e105-37a1--/templates/upload
>> >> >
>> >> >
>> >> > I see http error:
>> >> >
>> >> >
>> >> > The specified resource could not be found.ma6219-mac:deploy
>> >> >
>> >> >
>> >> > Any idea what the problem is with my command?
>> >> >
>> >> > Thanks ,
>> >> >
>> >> > -V


Re: upload template with REST problem

2018-09-20 Thread l vic
yes, the "id" must actually be "groupId", then it works... As usual, Nifi
documentation is vague or misleading

On Thu, Sep 20, 2018 at 12:38 PM Bryan Bende  wrote:

> That means there is no process group with the id you specified.
> On Thu, Sep 20, 2018 at 12:36 PM l vic  wrote:
> >
> > yes, in this case i see another error:
> >
> > Unable to locate group with id
> '46f95fe5-3024-31d8--'.ma6219-mac:deploy
> >
> >
> > On Thu, Sep 20, 2018 at 9:58 AM Bryan Bende  wrote:
> >>
> >> The URL you specified is not the correct path, it is missing
> "process-groups".
> >>
> >>
> http://10.10.100.105:8080/nifi-api/process-groups/f2ae3d20-e105-37a1--/templates/upload
> >> On Wed, Sep 19, 2018 at 4:17 PM l vic  wrote:
> >> >
> >> > Hi,
> >> > I have template for the processing group "test-template.xml" with
> >> > id=f2ae3d20-e105-37a1--
> >> > that I am trying to upload from my mac
> >> >
> >> > curl -iv -F template=@test-template.xml -X POST
> http://10.10.100.105:8080/nifi-api/f2ae3d20-e105-37a1--/templates/upload
> >> >
> >> >
> >> > I see http error:
> >> >
> >> >
> >> > The specified resource could not be found.ma6219-mac:deploy
> >> >
> >> >
> >> > Any idea what the problem is with my command?
> >> >
> >> > Thanks ,
> >> >
> >> > -V
>


Re: upload template with REST problem

2018-09-20 Thread Bryan Bende
That means there is no process group with the id you specified.
On Thu, Sep 20, 2018 at 12:36 PM l vic  wrote:
>
> yes, in this case i see another error:
>
> Unable to locate group with id 
> '46f95fe5-3024-31d8--'.ma6219-mac:deploy
>
>
> On Thu, Sep 20, 2018 at 9:58 AM Bryan Bende  wrote:
>>
>> The URL you specified is not the correct path, it is missing 
>> "process-groups".
>>
>> http://10.10.100.105:8080/nifi-api/process-groups/f2ae3d20-e105-37a1--/templates/upload
>> On Wed, Sep 19, 2018 at 4:17 PM l vic  wrote:
>> >
>> > Hi,
>> > I have template for the processing group "test-template.xml" with
>> > id=f2ae3d20-e105-37a1--
>> > that I am trying to upload from my mac
>> >
>> > curl -iv -F template=@test-template.xml -X POST  
>> > http://10.10.100.105:8080/nifi-api/f2ae3d20-e105-37a1--/templates/upload
>> >
>> >
>> > I see http error:
>> >
>> >
>> > The specified resource could not be found.ma6219-mac:deploy
>> >
>> >
>> > Any idea what the problem is with my command?
>> >
>> > Thanks ,
>> >
>> > -V


Re: upload template with REST problem

2018-09-20 Thread l vic
yes, in this case i see another error:

Unable to locate group with id
'46f95fe5-3024-31d8--'.ma6219-mac:deploy

On Thu, Sep 20, 2018 at 9:58 AM Bryan Bende  wrote:

> The URL you specified is not the correct path, it is missing
> "process-groups".
>
>
> http://10.10.100.105:8080/nifi-api/process-groups/f2ae3d20-e105-37a1--/templates/upload
> On Wed, Sep 19, 2018 at 4:17 PM l vic  wrote:
> >
> > Hi,
> > I have template for the processing group "test-template.xml" with
> > id=f2ae3d20-e105-37a1--
> > that I am trying to upload from my mac
> >
> > curl -iv -F template=@test-template.xml -X POST
> http://10.10.100.105:8080/nifi-api/f2ae3d20-e105-37a1--/templates/upload
> >
> >
> > I see http error:
> >
> >
> > The specified resource could not be found.ma6219-mac:deploy
> >
> >
> > Any idea what the problem is with my command?
> >
> > Thanks ,
> >
> > -V
>


Re: upload template with REST problem

2018-09-20 Thread Bryan Bende
The URL you specified is not the correct path, it is missing "process-groups".

http://10.10.100.105:8080/nifi-api/process-groups/f2ae3d20-e105-37a1--/templates/upload
On Wed, Sep 19, 2018 at 4:17 PM l vic  wrote:
>
> Hi,
> I have template for the processing group "test-template.xml" with
> id=f2ae3d20-e105-37a1--
> that I am trying to upload from my mac
>
> curl -iv -F template=@test-template.xml -X POST  
> http://10.10.100.105:8080/nifi-api/f2ae3d20-e105-37a1--/templates/upload
>
>
> I see http error:
>
>
> The specified resource could not be found.ma6219-mac:deploy
>
>
> Any idea what the problem is with my command?
>
> Thanks ,
>
> -V


upload template with REST problem

2018-09-19 Thread l vic
Hi,
I have template for the processing group "test-template.xml" with
id=f2ae3d20-e105-37a1--
that I am trying to upload from my mac

curl -iv -F template=@test-template.xml -X POST
http://10.10.100.105:8080/nifi-api/f2ae3d20-e105-37a1--/templates/upload


I see http error:


*The specified resource could not be found.ma6219-mac:deploy*


Any idea what the problem is with my command?

Thanks ,

-V