- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Connect to nifi cluster by passing username and password using nipyapi
- Labels:
-
Apache NiFi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have been trying to connect to NiFi by passing the username and password using nypyapi. Here is the sample code I'm using. Am I doing something wrong here.
nipyapi.config.nifi_config.host = 'https://10.23.44.20:80/nifi-api'
login = nipyapi.security.service_login(service='nifi', username='nifi', password='xxxx', bool_response=True)
Below is the excerpt from the documentation on nipyapi.security.service_login..
Login requires a secure connection over https. Prior to calling this method, the host must be specified and the SSLContext should be configured (if necessary).
Created 03-19-2020 01:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Were you able to figure out the solution for this. I have been trying to connect to secured nifi using username and password.