Skip to content

Latest commit

 

History

History
120 lines (90 loc) · 3 KB

SiteToSiteApi.md

File metadata and controls

120 lines (90 loc) · 3 KB

IO.Swagger.Api.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

using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class GetPeersExample
    {
        public void main()
        {
            var apiInstance = new SiteToSiteApi();

            try
            {
                // Returns the available Peers and its status of this NiFi
                PeersEntity result = apiInstance.GetPeers();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SiteToSiteApi.GetPeers: " + e.Message );
            }
        }
    }
}

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]

GetSiteToSiteDetails

ControllerEntity GetSiteToSiteDetails ()

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

Example

using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class GetSiteToSiteDetailsExample
    {
        public void main()
        {
            var apiInstance = new SiteToSiteApi();

            try
            {
                // Returns the details about this NiFi necessary to communicate via site to site
                ControllerEntity result = apiInstance.GetSiteToSiteDetails();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SiteToSiteApi.GetSiteToSiteDetails: " + e.Message );
            }
        }
    }
}

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]