swagger_client.SitetositeApi

All URIs are relative to http://localhost/nifi-api

Method HTTP request Description
get_peers GET /site-to-site/peers Returns the available Peers and its status of this NiFi
get_site_to_site_details GET /site-to-site Returns the details about this NiFi necessary to communicate via site to site

get_peers

PeersEntity get_peers()

Returns the available Peers and its status of this NiFi

Example

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SitetositeApi()

try: 
    # Returns the available Peers and its status of this NiFi
    api_response = api_instance.get_peers()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SitetositeApi->get_peers: %s\n" % e)

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_site_to_site_details

ControllerEntity get_site_to_site_details()

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

Example

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SitetositeApi()

try: 
    # Returns the details about this NiFi necessary to communicate via site to site
    api_response = api_instance.get_site_to_site_details()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SitetositeApi->get_site_to_site_details: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

ControllerEntity

Authorization

No authorization required

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]