You can grab the end points from the Data Hub End Points tab.
Example NiFi REST API Calls To CDP CDF Public Cloud NiFI Datahub
These type of REST calls will prompt you for your username/password.
Here are some examples:
How to Connect With NiFi CLI
References:
- https://nifi.apache.org/docs/nifi-docs/rest-api/index.html
- https://docs.cloudera.com/cdf-datahub/7.2.1/nifi-security/topics/cdf-datahub-nifi-security-predefined-nifiregistry-policies.html
- https://www.datainmotion.dev/2020/07/report-on-this-apache-nifi-1114-monitor.html
- https://www.datainmotion.dev/2019/04/monitoring-number-of-of-flow-files.html