Skip to content

Latest commit

 

History

History
2146 lines (1541 loc) · 71.7 KB

FlowApi.md

File metadata and controls

2146 lines (1541 loc) · 71.7 KB

FlowApi

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

Method HTTP request Description
activateControllerServices PUT /flow/process-groups/{id}/controller-services Enable or disable Controller Services in the specified Process Group.
generateClientId GET /flow/client-id Generates a client id.
getAboutInfo GET /flow/about Retrieves details about this NiFi to put in the About dialog
getAction GET /flow/history/{id} Gets an action
getBanners GET /flow/banners Retrieves the banners for this NiFi
getBuckets GET /flow/registries/{id}/buckets Gets the buckets from the specified registry for the current user
getBulletinBoard GET /flow/bulletin-board Gets current bulletins
getBulletins GET /flow/controller/bulletins Retrieves Controller level bulletins
getClusterSummary GET /flow/cluster/summary The cluster summary for this NiFi
getComponentHistory GET /flow/history/components/{componentId} Gets configuration history for a component
getConnectionStatus GET /flow/connections/{id}/status Gets status for a connection
getConnectionStatusHistory GET /flow/connections/{id}/status/history Gets the status history for a connection
getControllerServiceTypes GET /flow/controller-service-types Retrieves the types of controller services that this NiFi supports
getControllerServicesFromController GET /flow/controller/controller-services Gets all controller services
getControllerServicesFromGroup GET /flow/process-groups/{id}/controller-services Gets all controller services
getControllerStatus GET /flow/status Gets the current status of this NiFi
getCurrentUser GET /flow/current-user Retrieves the user identity of the user making the request
getFlow GET /flow/process-groups/{id} Gets a process group
getFlowConfig GET /flow/config Retrieves the configuration for this NiFi flow
getFlows GET /flow/registries/{registry-id}/buckets/{bucket-id}/flows Gets the flows from the specified registry and bucket for the current user
getInputPortStatus GET /flow/input-ports/{id}/status Gets status for an input port
getOutputPortStatus GET /flow/output-ports/{id}/status Gets status for an output port
getPrioritizers GET /flow/prioritizers Retrieves the types of prioritizers that this NiFi supports
getProcessGroupStatus GET /flow/process-groups/{id}/status Gets the status for a process group
getProcessGroupStatusHistory GET /flow/process-groups/{id}/status/history Gets status history for a remote process group
getProcessorStatus GET /flow/processors/{id}/status Gets status for a processor
getProcessorStatusHistory GET /flow/processors/{id}/status/history Gets status history for a processor
getProcessorTypes GET /flow/processor-types Retrieves the types of processors that this NiFi supports
getRegistries GET /flow/registries Gets the listing of available registries
getRemoteProcessGroupStatus GET /flow/remote-process-groups/{id}/status Gets status for a remote process group
getRemoteProcessGroupStatusHistory GET /flow/remote-process-groups/{id}/status/history Gets the status history
getReportingTaskTypes GET /flow/reporting-task-types Retrieves the types of reporting tasks that this NiFi supports
getReportingTasks GET /flow/reporting-tasks Gets all reporting tasks
getTemplates GET /flow/templates Gets all templates
getVersions GET /flow/registries/{registry-id}/buckets/{bucket-id}/flows/{flow-id}/versions Gets the flow versions from the specified registry and bucket for the specified flow for the current user
queryHistory GET /flow/history Gets configuration history
scheduleComponents PUT /flow/process-groups/{id} Schedule or unschedule components in the specified Process Group.
searchCluster GET /flow/cluster/search-results Searches the cluster for a node with the specified address
searchFlow GET /flow/search-results Performs a search against this NiFi using the specified search term

activateControllerServices

ActivateControllerServicesEntity activateControllerServices(id, body)

Enable or disable Controller Services in the specified Process Group.

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String id = "id_example"; // String | The process group id.
ActivateControllerServicesEntity body = new ActivateControllerServicesEntity(); // ActivateControllerServicesEntity | The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered.
try {
    ActivateControllerServicesEntity result = apiInstance.activateControllerServices(id, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#activateControllerServices");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The process group id.
body ActivateControllerServicesEntity The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered.

Return type

ActivateControllerServicesEntity

Authorization

auth

HTTP request headers

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

generateClientId

String generateClientId()

Generates a client id.

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
try {
    String result = apiInstance.generateClientId();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#generateClientId");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

String

Authorization

auth

HTTP request headers

  • Content-Type: /
  • Accept: text/plain

getAboutInfo

AboutEntity getAboutInfo()

Retrieves details about this NiFi to put in the About dialog

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
try {
    AboutEntity result = apiInstance.getAboutInfo();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getAboutInfo");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

AboutEntity

Authorization

auth

HTTP request headers

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

getAction

ActionEntity getAction(id)

Gets an action

Note: This endpoint is subject to change as NiFi and it's REST API evolve.

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String id = "id_example"; // String | The action id.
try {
    ActionEntity result = apiInstance.getAction(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getAction");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The action id.

Return type

ActionEntity

Authorization

auth

HTTP request headers

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

getBanners

BannerEntity getBanners()

Retrieves the banners for this NiFi

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
try {
    BannerEntity result = apiInstance.getBanners();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getBanners");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

BannerEntity

Authorization

auth

HTTP request headers

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

getBuckets

BucketsEntity getBuckets(id)

Gets the buckets from the specified registry for the current user

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String id = "id_example"; // String | The registry id.
try {
    BucketsEntity result = apiInstance.getBuckets(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getBuckets");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The registry id.

Return type

BucketsEntity

Authorization

auth

HTTP request headers

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

getBulletinBoard

BulletinBoardEntity getBulletinBoard(after, sourceName, message, sourceId, groupId, limit)

Gets current bulletins

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String after = "after_example"; // String | Includes bulletins with an id after this value.
String sourceName = "sourceName_example"; // String | Includes bulletins originating from this sources whose name match this regular expression.
String message = "message_example"; // String | Includes bulletins whose message that match this regular expression.
String sourceId = "sourceId_example"; // String | Includes bulletins originating from this sources whose id match this regular expression.
String groupId = "groupId_example"; // String | Includes bulletins originating from this sources whose group id match this regular expression.
String limit = "limit_example"; // String | The number of bulletins to limit the response to.
try {
    BulletinBoardEntity result = apiInstance.getBulletinBoard(after, sourceName, message, sourceId, groupId, limit);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getBulletinBoard");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
after String Includes bulletins with an id after this value. [optional]
sourceName String Includes bulletins originating from this sources whose name match this regular expression. [optional]
message String Includes bulletins whose message that match this regular expression. [optional]
sourceId String Includes bulletins originating from this sources whose id match this regular expression. [optional]
groupId String Includes bulletins originating from this sources whose group id match this regular expression. [optional]
limit String The number of bulletins to limit the response to. [optional]

Return type

BulletinBoardEntity

Authorization

auth

HTTP request headers

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

getBulletins

ControllerBulletinsEntity getBulletins()

Retrieves Controller level bulletins

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
try {
    ControllerBulletinsEntity result = apiInstance.getBulletins();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getBulletins");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

ControllerBulletinsEntity

Authorization

auth

HTTP request headers

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

getClusterSummary

ClusteSummaryEntity getClusterSummary()

The cluster summary for this NiFi

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
try {
    ClusteSummaryEntity result = apiInstance.getClusterSummary();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getClusterSummary");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

ClusteSummaryEntity

Authorization

auth

HTTP request headers

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

getComponentHistory

ComponentHistoryEntity getComponentHistory(componentId)

Gets configuration history for a component

Note: This endpoint is subject to change as NiFi and it's REST API evolve.

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String componentId = "componentId_example"; // String | The component id.
try {
    ComponentHistoryEntity result = apiInstance.getComponentHistory(componentId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getComponentHistory");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
componentId String The component id.

Return type

ComponentHistoryEntity

Authorization

auth

HTTP request headers

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

getConnectionStatus

ConnectionStatusEntity getConnectionStatus(id, nodewise, clusterNodeId)

Gets status for a connection

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String id = "id_example"; // String | The connection id.
Boolean nodewise = false; // Boolean | Whether or not to include the breakdown per node. Optional, defaults to false
String clusterNodeId = "clusterNodeId_example"; // String | The id of the node where to get the status.
try {
    ConnectionStatusEntity result = apiInstance.getConnectionStatus(id, nodewise, clusterNodeId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getConnectionStatus");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The connection id.
nodewise Boolean Whether or not to include the breakdown per node. Optional, defaults to false [optional] [default to false]
clusterNodeId String The id of the node where to get the status. [optional]

Return type

ConnectionStatusEntity

Authorization

auth

HTTP request headers

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

getConnectionStatusHistory

StatusHistoryEntity getConnectionStatusHistory(id)

Gets the status history for a connection

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String id = "id_example"; // String | The connection id.
try {
    StatusHistoryEntity result = apiInstance.getConnectionStatusHistory(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getConnectionStatusHistory");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The connection id.

Return type

StatusHistoryEntity

Authorization

auth

HTTP request headers

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

getControllerServiceTypes

ControllerServiceTypesEntity getControllerServiceTypes(serviceType, serviceBundleGroup, serviceBundleArtifact, serviceBundleVersion, bundleGroupFilter, bundleArtifactFilter, typeFilter)

Retrieves the types of controller services that this NiFi supports

Note: This endpoint is subject to change as NiFi and it's REST API evolve.

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String serviceType = "serviceType_example"; // String | If specified, will only return controller services that are compatible with this type of service.
String serviceBundleGroup = "serviceBundleGroup_example"; // String | If serviceType specified, is the bundle group of the serviceType.
String serviceBundleArtifact = "serviceBundleArtifact_example"; // String | If serviceType specified, is the bundle artifact of the serviceType.
String serviceBundleVersion = "serviceBundleVersion_example"; // String | If serviceType specified, is the bundle version of the serviceType.
String bundleGroupFilter = "bundleGroupFilter_example"; // String | If specified, will only return types that are a member of this bundle group.
String bundleArtifactFilter = "bundleArtifactFilter_example"; // String | If specified, will only return types that are a member of this bundle artifact.
String typeFilter = "typeFilter_example"; // String | If specified, will only return types whose fully qualified classname matches.
try {
    ControllerServiceTypesEntity result = apiInstance.getControllerServiceTypes(serviceType, serviceBundleGroup, serviceBundleArtifact, serviceBundleVersion, bundleGroupFilter, bundleArtifactFilter, typeFilter);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getControllerServiceTypes");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
serviceType String If specified, will only return controller services that are compatible with this type of service. [optional]
serviceBundleGroup String If serviceType specified, is the bundle group of the serviceType. [optional]
serviceBundleArtifact String If serviceType specified, is the bundle artifact of the serviceType. [optional]
serviceBundleVersion String If serviceType specified, is the bundle version of the serviceType. [optional]
bundleGroupFilter String If specified, will only return types that are a member of this bundle group. [optional]
bundleArtifactFilter String If specified, will only return types that are a member of this bundle artifact. [optional]
typeFilter String If specified, will only return types whose fully qualified classname matches. [optional]

Return type

ControllerServiceTypesEntity

Authorization

auth

HTTP request headers

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

getControllerServicesFromController

ControllerServicesEntity getControllerServicesFromController()

Gets all controller services

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
try {
    ControllerServicesEntity result = apiInstance.getControllerServicesFromController();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getControllerServicesFromController");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

ControllerServicesEntity

Authorization

auth

HTTP request headers

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

getControllerServicesFromGroup

ControllerServicesEntity getControllerServicesFromGroup(id, includeAncestorGroups, includeDescendantGroups)

Gets all controller services

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String id = "id_example"; // String | The process group id.
Boolean includeAncestorGroups = true; // Boolean | Whether or not to include parent/ancestory process groups
Boolean includeDescendantGroups = false; // Boolean | Whether or not to include descendant process groups
try {
    ControllerServicesEntity result = apiInstance.getControllerServicesFromGroup(id, includeAncestorGroups, includeDescendantGroups);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getControllerServicesFromGroup");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The process group id.
includeAncestorGroups Boolean Whether or not to include parent/ancestory process groups [optional] [default to true]
includeDescendantGroups Boolean Whether or not to include descendant process groups [optional] [default to false]

Return type

ControllerServicesEntity

Authorization

auth

HTTP request headers

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

getControllerStatus

ControllerStatusEntity getControllerStatus()

Gets the current status of this NiFi

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
try {
    ControllerStatusEntity result = apiInstance.getControllerStatus();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getControllerStatus");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

ControllerStatusEntity

Authorization

auth

HTTP request headers

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

getCurrentUser

CurrentUserEntity getCurrentUser()

Retrieves the user identity of the user making the request

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
try {
    CurrentUserEntity result = apiInstance.getCurrentUser();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getCurrentUser");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

CurrentUserEntity

Authorization

auth

HTTP request headers

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

getFlow

ProcessGroupFlowEntity getFlow(id)

Gets a process group

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String id = "id_example"; // String | The process group id.
try {
    ProcessGroupFlowEntity result = apiInstance.getFlow(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getFlow");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The process group id.

Return type

ProcessGroupFlowEntity

Authorization

auth

HTTP request headers

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

getFlowConfig

FlowConfigurationEntity getFlowConfig()

Retrieves the configuration for this NiFi flow

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
try {
    FlowConfigurationEntity result = apiInstance.getFlowConfig();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getFlowConfig");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

FlowConfigurationEntity

Authorization

auth

HTTP request headers

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

getFlows

BucketsEntity getFlows(registryId, bucketId)

Gets the flows from the specified registry and bucket for the current user

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String registryId = "registryId_example"; // String | The registry id.
String bucketId = "bucketId_example"; // String | The bucket id.
try {
    BucketsEntity result = apiInstance.getFlows(registryId, bucketId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getFlows");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
registryId String The registry id.
bucketId String The bucket id.

Return type

BucketsEntity

Authorization

auth

HTTP request headers

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

getInputPortStatus

PortStatusEntity getInputPortStatus(id, nodewise, clusterNodeId)

Gets status for an input port

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String id = "id_example"; // String | The input port id.
Boolean nodewise = false; // Boolean | Whether or not to include the breakdown per node. Optional, defaults to false
String clusterNodeId = "clusterNodeId_example"; // String | The id of the node where to get the status.
try {
    PortStatusEntity result = apiInstance.getInputPortStatus(id, nodewise, clusterNodeId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getInputPortStatus");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The input port id.
nodewise Boolean Whether or not to include the breakdown per node. Optional, defaults to false [optional] [default to false]
clusterNodeId String The id of the node where to get the status. [optional]

Return type

PortStatusEntity

Authorization

auth

HTTP request headers

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

getOutputPortStatus

PortStatusEntity getOutputPortStatus(id, nodewise, clusterNodeId)

Gets status for an output port

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String id = "id_example"; // String | The output port id.
Boolean nodewise = false; // Boolean | Whether or not to include the breakdown per node. Optional, defaults to false
String clusterNodeId = "clusterNodeId_example"; // String | The id of the node where to get the status.
try {
    PortStatusEntity result = apiInstance.getOutputPortStatus(id, nodewise, clusterNodeId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getOutputPortStatus");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The output port id.
nodewise Boolean Whether or not to include the breakdown per node. Optional, defaults to false [optional] [default to false]
clusterNodeId String The id of the node where to get the status. [optional]

Return type

PortStatusEntity

Authorization

auth

HTTP request headers

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

getPrioritizers

PrioritizerTypesEntity getPrioritizers()

Retrieves the types of prioritizers that this NiFi supports

Note: This endpoint is subject to change as NiFi and it's REST API evolve.

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
try {
    PrioritizerTypesEntity result = apiInstance.getPrioritizers();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getPrioritizers");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

PrioritizerTypesEntity

Authorization

auth

HTTP request headers

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

getProcessGroupStatus

ProcessGroupStatusEntity getProcessGroupStatus(id, recursive, nodewise, clusterNodeId)

Gets the status for a process group

The status for a process group includes status for all descendent components. When invoked on the root group with recursive set to true, it will return the current status of every component in the flow.

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String id = "id_example"; // String | The process group id.
Boolean recursive = false; // Boolean | Whether all descendant groups and the status of their content will be included. Optional, defaults to false
Boolean nodewise = false; // Boolean | Whether or not to include the breakdown per node. Optional, defaults to false
String clusterNodeId = "clusterNodeId_example"; // String | The id of the node where to get the status.
try {
    ProcessGroupStatusEntity result = apiInstance.getProcessGroupStatus(id, recursive, nodewise, clusterNodeId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getProcessGroupStatus");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The process group id.
recursive Boolean Whether all descendant groups and the status of their content will be included. Optional, defaults to false [optional] [default to false]
nodewise Boolean Whether or not to include the breakdown per node. Optional, defaults to false [optional] [default to false]
clusterNodeId String The id of the node where to get the status. [optional]

Return type

ProcessGroupStatusEntity

Authorization

auth

HTTP request headers

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

getProcessGroupStatusHistory

StatusHistoryEntity getProcessGroupStatusHistory(id)

Gets status history for a remote process group

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String id = "id_example"; // String | The process group id.
try {
    StatusHistoryEntity result = apiInstance.getProcessGroupStatusHistory(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getProcessGroupStatusHistory");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The process group id.

Return type

StatusHistoryEntity

Authorization

auth

HTTP request headers

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

getProcessorStatus

ProcessorStatusEntity getProcessorStatus(id, nodewise, clusterNodeId)

Gets status for a processor

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String id = "id_example"; // String | The processor id.
Boolean nodewise = false; // Boolean | Whether or not to include the breakdown per node. Optional, defaults to false
String clusterNodeId = "clusterNodeId_example"; // String | The id of the node where to get the status.
try {
    ProcessorStatusEntity result = apiInstance.getProcessorStatus(id, nodewise, clusterNodeId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getProcessorStatus");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The processor id.
nodewise Boolean Whether or not to include the breakdown per node. Optional, defaults to false [optional] [default to false]
clusterNodeId String The id of the node where to get the status. [optional]

Return type

ProcessorStatusEntity

Authorization

auth

HTTP request headers

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

getProcessorStatusHistory

StatusHistoryEntity getProcessorStatusHistory(id)

Gets status history for a processor

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String id = "id_example"; // String | The processor id.
try {
    StatusHistoryEntity result = apiInstance.getProcessorStatusHistory(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getProcessorStatusHistory");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The processor id.

Return type

StatusHistoryEntity

Authorization

auth

HTTP request headers

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

getProcessorTypes

ProcessorTypesEntity getProcessorTypes(bundleGroupFilter, bundleArtifactFilter, type)

Retrieves the types of processors that this NiFi supports

Note: This endpoint is subject to change as NiFi and it's REST API evolve.

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String bundleGroupFilter = "bundleGroupFilter_example"; // String | If specified, will only return types that are a member of this bundle group.
String bundleArtifactFilter = "bundleArtifactFilter_example"; // String | If specified, will only return types that are a member of this bundle artifact.
String type = "type_example"; // String | If specified, will only return types whose fully qualified classname matches.
try {
    ProcessorTypesEntity result = apiInstance.getProcessorTypes(bundleGroupFilter, bundleArtifactFilter, type);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getProcessorTypes");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
bundleGroupFilter String If specified, will only return types that are a member of this bundle group. [optional]
bundleArtifactFilter String If specified, will only return types that are a member of this bundle artifact. [optional]
type String If specified, will only return types whose fully qualified classname matches. [optional]

Return type

ProcessorTypesEntity

Authorization

auth

HTTP request headers

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

getRegistries

RegistryClientsEntity getRegistries()

Gets the listing of available registries

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
try {
    RegistryClientsEntity result = apiInstance.getRegistries();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getRegistries");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

RegistryClientsEntity

Authorization

auth

HTTP request headers

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

getRemoteProcessGroupStatus

RemoteProcessGroupStatusEntity getRemoteProcessGroupStatus(id, nodewise, clusterNodeId)

Gets status for a remote process group

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String id = "id_example"; // String | The remote process group id.
Boolean nodewise = false; // Boolean | Whether or not to include the breakdown per node. Optional, defaults to false
String clusterNodeId = "clusterNodeId_example"; // String | The id of the node where to get the status.
try {
    RemoteProcessGroupStatusEntity result = apiInstance.getRemoteProcessGroupStatus(id, nodewise, clusterNodeId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getRemoteProcessGroupStatus");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The remote process group id.
nodewise Boolean Whether or not to include the breakdown per node. Optional, defaults to false [optional] [default to false]
clusterNodeId String The id of the node where to get the status. [optional]

Return type

RemoteProcessGroupStatusEntity

Authorization

auth

HTTP request headers

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

getRemoteProcessGroupStatusHistory

StatusHistoryEntity getRemoteProcessGroupStatusHistory(id)

Gets the status history

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String id = "id_example"; // String | The remote process group id.
try {
    StatusHistoryEntity result = apiInstance.getRemoteProcessGroupStatusHistory(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getRemoteProcessGroupStatusHistory");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The remote process group id.

Return type

StatusHistoryEntity

Authorization

auth

HTTP request headers

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

getReportingTaskTypes

ReportingTaskTypesEntity getReportingTaskTypes(bundleGroupFilter, bundleArtifactFilter, type)

Retrieves the types of reporting tasks that this NiFi supports

Note: This endpoint is subject to change as NiFi and it's REST API evolve.

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String bundleGroupFilter = "bundleGroupFilter_example"; // String | If specified, will only return types that are a member of this bundle group.
String bundleArtifactFilter = "bundleArtifactFilter_example"; // String | If specified, will only return types that are a member of this bundle artifact.
String type = "type_example"; // String | If specified, will only return types whose fully qualified classname matches.
try {
    ReportingTaskTypesEntity result = apiInstance.getReportingTaskTypes(bundleGroupFilter, bundleArtifactFilter, type);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getReportingTaskTypes");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
bundleGroupFilter String If specified, will only return types that are a member of this bundle group. [optional]
bundleArtifactFilter String If specified, will only return types that are a member of this bundle artifact. [optional]
type String If specified, will only return types whose fully qualified classname matches. [optional]

Return type

ReportingTaskTypesEntity

Authorization

auth

HTTP request headers

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

getReportingTasks

ReportingTasksEntity getReportingTasks()

Gets all reporting tasks

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
try {
    ReportingTasksEntity result = apiInstance.getReportingTasks();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getReportingTasks");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

ReportingTasksEntity

Authorization

auth

HTTP request headers

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

getTemplates

TemplatesEntity getTemplates()

Gets all templates

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
try {
    TemplatesEntity result = apiInstance.getTemplates();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getTemplates");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

TemplatesEntity

Authorization

auth

HTTP request headers

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

getVersions

BucketsEntity getVersions(registryId, bucketId, flowId)

Gets the flow versions from the specified registry and bucket for the specified flow for the current user

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String registryId = "registryId_example"; // String | The registry id.
String bucketId = "bucketId_example"; // String | The bucket id.
String flowId = "flowId_example"; // String | The flow id.
try {
    BucketsEntity result = apiInstance.getVersions(registryId, bucketId, flowId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#getVersions");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
registryId String The registry id.
bucketId String The bucket id.
flowId String The flow id.

Return type

BucketsEntity

Authorization

auth

HTTP request headers

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

queryHistory

HistoryEntity queryHistory(offset, count, sortColumn, sortOrder, startDate, endDate, userIdentity, sourceId)

Gets configuration history

Note: This endpoint is subject to change as NiFi and it's REST API evolve.

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String offset = "offset_example"; // String | The offset into the result set.
String count = "count_example"; // String | The number of actions to return.
String sortColumn = "sortColumn_example"; // String | The field to sort on.
String sortOrder = "sortOrder_example"; // String | The direction to sort.
String startDate = "startDate_example"; // String | Include actions after this date.
String endDate = "endDate_example"; // String | Include actions before this date.
String userIdentity = "userIdentity_example"; // String | Include actions performed by this user.
String sourceId = "sourceId_example"; // String | Include actions on this component.
try {
    HistoryEntity result = apiInstance.queryHistory(offset, count, sortColumn, sortOrder, startDate, endDate, userIdentity, sourceId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#queryHistory");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
offset String The offset into the result set.
count String The number of actions to return.
sortColumn String The field to sort on. [optional]
sortOrder String The direction to sort. [optional]
startDate String Include actions after this date. [optional]
endDate String Include actions before this date. [optional]
userIdentity String Include actions performed by this user. [optional]
sourceId String Include actions on this component. [optional]

Return type

HistoryEntity

Authorization

auth

HTTP request headers

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

scheduleComponents

ScheduleComponentsEntity scheduleComponents(id, body)

Schedule or unschedule components in the specified Process Group.

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String id = "id_example"; // String | The process group id.
ScheduleComponentsEntity body = new ScheduleComponentsEntity(); // ScheduleComponentsEntity | The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered.
try {
    ScheduleComponentsEntity result = apiInstance.scheduleComponents(id, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#scheduleComponents");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The process group id.
body ScheduleComponentsEntity The request to schedule or unschedule. If the comopnents in the request are not specified, all authorized components will be considered.

Return type

ScheduleComponentsEntity

Authorization

auth

HTTP request headers

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

searchCluster

ClusterSearchResultsEntity searchCluster(q)

Searches the cluster for a node with the specified address

Note: This endpoint is subject to change as NiFi and it's REST API evolve.

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String q = "q_example"; // String | Node address to search for.
try {
    ClusterSearchResultsEntity result = apiInstance.searchCluster(q);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#searchCluster");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
q String Node address to search for.

Return type

ClusterSearchResultsEntity

Authorization

auth

HTTP request headers

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

searchFlow

SearchResultsEntity searchFlow(q)

Performs a search against this NiFi using the specified search term

Only search results from authorized components will be returned.

Example

// Import classes:
//import com.github.hermannpencole.nifi.swagger.ApiClient;
//import com.github.hermannpencole.nifi.swagger.ApiException;
//import com.github.hermannpencole.nifi.swagger.Configuration;
//import com.github.hermannpencole.nifi.swagger.auth.*;
//import com.github.hermannpencole.nifi.swagger.client.FlowApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

FlowApi apiInstance = new FlowApi();
String q = "q_example"; // String | 
try {
    SearchResultsEntity result = apiInstance.searchFlow(q);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling FlowApi#searchFlow");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
q String [optional]

Return type

SearchResultsEntity

Authorization

auth

HTTP request headers

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