Skip to content
This repository has been archived by the owner on May 17, 2018. It is now read-only.

Latest commit

 

History

History
92 lines (60 loc) · 2.05 KB

SitetositeApi.md

File metadata and controls

92 lines (60 loc) · 2.05 KB

SitetositeApi

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

getPeers

PeersEntity getPeers()

Returns the available Peers and its status of this NiFi

Example

// 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();
}

Parameters

This endpoint does not need any parameter.

Return type

PeersEntity

Authorization

No authorization required

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/xml

getSiteToSiteDetails

ControllerEntity getSiteToSiteDetails()

Returns the details about this NiFi necessary to communicate via site to site

Example

// 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();
}

Parameters

This endpoint does not need any parameter.

Return type

ControllerEntity

Authorization

No authorization required

HTTP request headers

  • Content-Type: /
  • Accept: application/json