Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

How to give Access policies for template and Creating template instance via rest api

avatar

I am using rest-api of nifi to upload a template, create instance of it, modify processors and run. I am able to do this with http protocol.

Now, I secured my nifi with https and user credentials. I am trying to achieve the same (upload, create instance, etc) with rest-api.

I need to change the policies on uploaded template before creating the instance everytime and again on the template instance to modify it. Is it the correct behaviour of nifi or am I missing something?

Also, after creating the instance of template it gives "500 Internal Server Error" and I cannot get the id of the instance from api.

1 ACCEPTED SOLUTION

avatar

No, there are no logs in nifi-app.log file, The issue is solved now.. thanks for replying. Issue was with authorizations.xml which had policies for old instance. I cleaned that and its working fine now.

View solution in original post

2 REPLIES 2

avatar
Super Collaborator

do you have any logs for the internal server error. It may be in the nidi-app.log file.

avatar

No, there are no logs in nifi-app.log file, The issue is solved now.. thanks for replying. Issue was with authorizations.xml which had policies for old instance. I cleaned that and its working fine now.