Support Questions

Find answers, ask questions, and share your expertise

nifi api run-status

avatar
New Contributor

Hi, 

I'm trying to clear the state of a processor (listFTP) to get all files.
so I used the REST API like https://nifi.apache.org/docs/nifi-docs/rest-api/index.html

stop = requests.put("{}/processors/{}/run-status".format(nifi_api,processor_id),
                    data= {"state": "STOPPED"},
                    headers={'Authorization':'Bearer {}'.format(token), 
                             'Accept':'application/json',
                             'Content-Type':'application/json'},
                    verify=False).text
print(stop)

 

I got 404 error: The specified resource could not be found.


Any help please?
Thank you

1 REPLY 1

avatar

This can likely not be resolved without much more detail, so it may be good to log a support ticket for this.

 

The first thing that comes to mind:

Are you able to use the rest API at all, does your request reach the node or is there possibly a problem in getting the request there (Firewall, hostname, typo).


- Dennis Jaheruddin

If this answer helped, please mark it as 'solved' and/or if it is valuable for future readers please apply 'kudos'.