All URIs are relative to http://localhost/nifi-api
Method | HTTP request | Description |
---|---|---|
getPeers | GET /site-to-site/peers | Returns the available Peers and its status of this NiFi |
getSiteToSiteDetails | GET /site-to-site | Returns the details about this NiFi necessary to communicate via site to site |
PeersEntity getPeers()
Returns the available Peers and its status of this NiFi
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.SitetositeApi;
SitetositeApi apiInstance = new SitetositeApi();
try {
PeersEntity result = apiInstance.getPeers();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SitetositeApi#getPeers");
e.printStackTrace();
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: /
- Accept: application/json, application/xml
ControllerEntity getSiteToSiteDetails()
Returns the details about this NiFi necessary to communicate via site to site
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.SitetositeApi;
SitetositeApi apiInstance = new SitetositeApi();
try {
ControllerEntity result = apiInstance.getSiteToSiteDetails();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SitetositeApi#getSiteToSiteDetails");
e.printStackTrace();
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: /
- Accept: application/json