Is there a way to programmatically receive target uri for NiFi remote process group?

63 Views Asked by At

I'm trying to programmatically create a NiFi flow using the NiFi api. I'm creating a remote process group in an inner flow.

The RPG request payload requires the target uri of the remote process group. Is there a way to get that uri programmatically via the api?

Thanks in advance

1

There are 1 best solutions below

1
Sdairs On

NiFi Rest API docs are here:

Specifically, a GET on /remote-process-groups/{id} returns a RemoteProcessGroupEntity which contains the RPG info including URI.

{
    "revision": {…},
    "id": "value",
    "uri": "value",
    "position": {…},
    "permissions": {…},
    "bulletins": [{…}],
    "disconnectedNodeAcknowledged": true,
    "component": {…},
    "status": {…},
    "inputPortCount": 0,
    "outputPortCount": 0,
    "operatePermissions": {…}
}

If you are using Python, consider NiPyAPI for programmatically interacting with the NiFi API.