Skip to content

Latest commit

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

NiFi Java API Client

본 프로젝트는 1.19.1 버전을 위해서 개발이 된것으로 타 버전도 동일한 절차에 따라서 진행하도록 합니다.

Overview

  • NiFi 소스코드를 다운로드하여 swagger.json 파일의 위치를 확인합니다.
  • Swagger Codegen으로 swagger.json 파일을 로딩하여 Java로 변환합니다.
  • 변환된 코드에서 NiFi 상위버전 부터 SSL 필수이므로 SSL 인증서 처리 및 OAuth 인증 처리 부분을 수정합니다.
    • OkHTTP를 사용하므로 SSL을 무시하도록 하고 Basic Auth, OAuth2를 추가하도록 합니다.

Swagger Codegen

Swagger Codegen을 이용하여 Client API를 생성합니다.

# cd nifi-1.19.1
# mvn -Dmaven.test.skip=true install
# wget https://oss.sonatype.org/content/repositories/releases/io/swagger/swagger-codegen-cli/2.2.1/swagger-codegen-cli-2.2.1.jar
# java -jar swagger-codegen-cli-2.2.1.jar generate -i ../nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/target/swagger-ui/swagger.json -l java

Requirements

  • Apache Maven

Installation

Maven Install을 통해서 JAR 파일을 다음과 같이 생성합니다.

mvn install

API 호출

API 호출을 위해서 Basic Auth로 Access Token을 얻습니다.

importio.swagger.client.*;
importio.swagger.client.auth.*;
importio.swagger.client.model.*;
importio.swagger.client.api.AccessApi;
importjava.io.File;
importjava.util.*;
publicclassAccessApiExample {
publicstaticvoidmain(String[] args) {
AccessApiaccessApi = newAccessApi();
ApiClientclient = newApiClient(true);
client.setDebugging(true);
client.addDefaultHeader("Authorization", getBasicAuthenticationHeader("admin", "adminadminadmin"));
client.setBasePath("https://localhost:8443/nifi-api");
accessApi.setApiClient(client);
StringaccessToken = accessApi.createAccessToken("admin", "adminadminadmin");
}
}

Access Token을 이용하여 API를 호출합니다.

importio.swagger.client.*;
importio.swagger.client.auth.*;
importio.swagger.client.model.*;
importio.swagger.client.api.AccessApi;
importjava.io.File;
importjava.util.*;
publicclassResourcesApiExample {
publicstaticvoidmain(String[] args) {
ResourcesApiapi = newResourcesApi();
ApiClientclient = newApiClient(true);
client.setDebugging(true);
client.setBasePath("https://localhost:8443/nifi-api");
client.addDefaultHeader("Authorization", String.format("Bearer %s", accessToken));
api.setApiClient(client);
ResourcesEntityresponse = api.getResources();
}
}

API Endpoints

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

ClassMethodHTTP requestDescription
AccessApicreateAccessTokenPOST /access/tokenCreates a token for accessing the REST API via username/password
AccessApicreateAccessTokenFromTicketPOST /access/kerberosCreates a token for accessing the REST API via Kerberos ticket exchange / SPNEGO negotiation
AccessApigetAccessStatusGET /accessGets the status the client's access
AccessApigetAccessTokenExpirationGET /access/token/expirationGet expiration for current Access Token
AccessApigetLoginConfigGET /access/configRetrieves the access configuration for this NiFi
AccessApiknoxCallbackGET /access/knox/callbackRedirect/callback URI for processing the result of the Apache Knox login sequence.
AccessApiknoxLogoutGET /access/knox/logoutPerforms a logout in the Apache Knox.
AccessApiknoxRequestGET /access/knox/requestInitiates a request to authenticate through Apache Knox.
AccessApilogOutDELETE /access/logoutPerforms a logout for other providers that have been issued a JWT.
AccessApilogOutCompleteGET /access/logout/completeCompletes the logout sequence by removing the cached Logout Request and Cookie if they existed and redirects to /nifi/login.
AccessoidcApioidcCallbackGET /access/oidc/callbackRedirect/callback URI for processing the result of the OpenId Connect login sequence.
AccessoidcApioidcExchangePOST /access/oidc/exchangeRetrieves a JWT following a successful login sequence using the configured OpenId Connect provider.
AccessoidcApioidcLogoutGET /access/oidc/logoutPerforms a logout in the OpenId Provider.
AccessoidcApioidcLogoutCallbackGET /access/oidc/logoutCallbackRedirect/callback URI for processing the result of the OpenId Connect logout sequence.
AccessoidcApioidcRequestGET /access/oidc/requestInitiates a request to authenticate through the configured OpenId Connect provider.
ConnectionsApideleteConnectionDELETE /connections/{id}Deletes a connection
ConnectionsApigetConnectionGET /connections/{id}Gets a connection
ConnectionsApiupdateConnectionPUT /connections/{id}Updates a connection
ControllerApicreateBulletinPOST /controller/bulletinCreates a new bulletin
ControllerApicreateControllerServicePOST /controller/controller-servicesCreates a new controller service
ControllerApicreateFlowRegistryClientPOST /controller/registry-clientsCreates a new flow registry client
ControllerApicreateParameterProviderPOST /controller/parameter-providersCreates a new parameter provider
ControllerApicreateReportingTaskPOST /controller/reporting-tasksCreates a new reporting task
ControllerApideleteFlowRegistryClientDELETE /controller/registry-clients/{id}Deletes a flow registry client
ControllerApideleteHistoryDELETE /controller/historyPurges history
ControllerApideleteNodeDELETE /controller/cluster/nodes/{id}Removes a node from the cluster
ControllerApigetClusterGET /controller/clusterGets the contents of the cluster
ControllerApigetControllerConfigGET /controller/configRetrieves the configuration for this NiFi Controller
ControllerApigetFlowRegistryClientGET /controller/registry-clients/{id}Gets a flow registry client
ControllerApigetFlowRegistryClientsGET /controller/registry-clientsGets the listing of available flow registry clients
ControllerApigetNodeGET /controller/cluster/nodes/{id}Gets a node in the cluster
ControllerApigetNodeStatusHistoryGET /controller/status/historyGets status history for the node
ControllerApigetPropertyDescriptorGET /controller/registry-clients/{id}/descriptorsGets a flow registry client property descriptor
ControllerApigetRegistryClientTypesGET /controller/registry-typesRetrieves the types of flow that this NiFi supports
ControllerApiupdateControllerConfigPUT /controller/configRetrieves the configuration for this NiFi
ControllerApiupdateFlowRegistryClientPUT /controller/registry-clients/{id}Updates a flow registry client
ControllerApiupdateNodePUT /controller/cluster/nodes/{id}Updates a node in the cluster
ControllerservicesApianalyzeConfigurationPOST /controller-services/{id}/config/analysisPerforms analysis of the component's configuration, providing information about which attributes are referenced.
ControllerservicesApiclearStatePOST /controller-services/{id}/state/clear-requestsClears the state for a controller service
ControllerservicesApideleteVerificationRequestDELETE /controller-services/{id}/config/verification-requests/{requestId}Deletes the Verification Request with the given ID
ControllerservicesApigetControllerServiceGET /controller-services/{id}Gets a controller service
ControllerservicesApigetControllerServiceReferencesGET /controller-services/{id}/referencesGets a controller service
ControllerservicesApigetPropertyDescriptorGET /controller-services/{id}/descriptorsGets a controller service property descriptor
ControllerservicesApigetStateGET /controller-services/{id}/stateGets the state for a controller service
ControllerservicesApigetVerificationRequestGET /controller-services/{id}/config/verification-requests/{requestId}Returns the Verification Request with the given ID
ControllerservicesApiremoveControllerServiceDELETE /controller-services/{id}Deletes a controller service
ControllerservicesApisubmitConfigVerificationRequestPOST /controller-services/{id}/config/verification-requestsPerforms verification of the Controller Service's configuration
ControllerservicesApiupdateControllerServicePUT /controller-services/{id}Updates a controller service
ControllerservicesApiupdateControllerServiceReferencesPUT /controller-services/{id}/referencesUpdates a controller services references
ControllerservicesApiupdateRunStatusPUT /controller-services/{id}/run-statusUpdates run status of a controller service
CountersApigetCountersGET /countersGets the current counters for this NiFi
CountersApiupdateCounterPUT /counters/{id}Updates the specified counter. This will reset the counter value to 0
DatatransferApicommitInputPortTransactionDELETE /data-transfer/input-ports/{portId}/transactions/{transactionId}Commit or cancel the specified transaction
DatatransferApicommitOutputPortTransactionDELETE /data-transfer/output-ports/{portId}/transactions/{transactionId}Commit or cancel the specified transaction
DatatransferApicreatePortTransactionPOST /data-transfer/{portType}/{portId}/transactionsCreate a transaction to the specified output port or input port
DatatransferApiextendInputPortTransactionTTLPUT /data-transfer/input-ports/{portId}/transactions/{transactionId}Extend transaction TTL
DatatransferApiextendOutputPortTransactionTTLPUT /data-transfer/output-ports/{portId}/transactions/{transactionId}Extend transaction TTL
DatatransferApireceiveFlowFilesPOST /data-transfer/input-ports/{portId}/transactions/{transactionId}/flow-filesTransfer flow files to the input port
DatatransferApitransferFlowFilesGET /data-transfer/output-ports/{portId}/transactions/{transactionId}/flow-filesTransfer flow files from the output port
FlowApiactivateControllerServicesPUT /flow/process-groups/{id}/controller-servicesEnable or disable Controller Services in the specified Process Group.
FlowApigenerateClientIdGET /flow/client-idGenerates a client id.
FlowApigetAboutInfoGET /flow/aboutRetrieves details about this NiFi to put in the About dialog
FlowApigetActionGET /flow/history/{id}Gets an action
FlowApigetBannersGET /flow/bannersRetrieves the banners for this NiFi
FlowApigetBucketsGET /flow/registries/{id}/bucketsGets the buckets from the specified registry for the current user
FlowApigetBulletinBoardGET /flow/bulletin-boardGets current bulletins
FlowApigetBulletinsGET /flow/controller/bulletinsRetrieves Controller level bulletins
FlowApigetClusterSummaryGET /flow/cluster/summaryThe cluster summary for this NiFi
FlowApigetComponentHistoryGET /flow/history/components/{componentId}Gets configuration history for a component
FlowApigetConnectionStatisticsGET /flow/connections/{id}/statisticsGets statistics for a connection
FlowApigetConnectionStatusGET /flow/connections/{id}/statusGets status for a connection
FlowApigetConnectionStatusHistoryGET /flow/connections/{id}/status/historyGets the status history for a connection
FlowApigetControllerServiceTypesGET /flow/controller-service-typesRetrieves the types of controller services that this NiFi supports
FlowApigetControllerServicesFromControllerGET /flow/controller/controller-servicesGets controller services for reporting tasks
FlowApigetControllerServicesFromGroupGET /flow/process-groups/{id}/controller-servicesGets all controller services
FlowApigetControllerStatusGET /flow/statusGets the current status of this NiFi
FlowApigetCurrentUserGET /flow/current-userRetrieves the user identity of the user making the request
FlowApigetDetailsGET /flow/registries/{registry-id}/buckets/{bucket-id}/flows/{flow-id}/detailsGets the details of a flow from the specified registry and bucket for the specified flow for the current user
FlowApigetFlowGET /flow/process-groups/{id}Gets a process group
FlowApigetFlowConfigGET /flow/configRetrieves the configuration for this NiFi flow
FlowApigetFlowMetricsGET /flow/metrics/{producer}Gets all metrics for the flow from a particular node
FlowApigetFlowsGET /flow/registries/{registry-id}/buckets/{bucket-id}/flowsGets the flows from the specified registry and bucket for the current user
FlowApigetInputPortStatusGET /flow/input-ports/{id}/statusGets status for an input port
FlowApigetOutputPortStatusGET /flow/output-ports/{id}/statusGets status for an output port
FlowApigetParameterContextsGET /flow/parameter-contextsGets all Parameter Contexts
FlowApigetParameterProviderTypesGET /flow/parameter-provider-typesRetrieves the types of parameter providers that this NiFi supports
FlowApigetParameterProvidersGET /flow/parameter-providersGets all parameter providers
FlowApigetPrioritizersGET /flow/prioritizersRetrieves the types of prioritizers that this NiFi supports
FlowApigetProcessGroupStatusGET /flow/process-groups/{id}/statusGets the status for a process group
FlowApigetProcessGroupStatusHistoryGET /flow/process-groups/{id}/status/historyGets status history for a remote process group
FlowApigetProcessorStatusGET /flow/processors/{id}/statusGets status for a processor
FlowApigetProcessorStatusHistoryGET /flow/processors/{id}/status/historyGets status history for a processor
FlowApigetProcessorTypesGET /flow/processor-typesRetrieves the types of processors that this NiFi supports
FlowApigetRegistryClientsGET /flow/registriesGets the listing of available flow registry clients
FlowApigetRemoteProcessGroupStatusGET /flow/remote-process-groups/{id}/statusGets status for a remote process group
FlowApigetRemoteProcessGroupStatusHistoryGET /flow/remote-process-groups/{id}/status/historyGets the status history
FlowApigetReportingTaskTypesGET /flow/reporting-task-typesRetrieves the types of reporting tasks that this NiFi supports
FlowApigetReportingTasksGET /flow/reporting-tasksGets all reporting tasks
FlowApigetRuntimeManifestGET /flow/runtime-manifestRetrieves the runtime manifest for this NiFi instance.
FlowApigetTemplatesGET /flow/templatesGets all templates
FlowApigetVersionsGET /flow/registries/{registry-id}/buckets/{bucket-id}/flows/{flow-id}/versionsGets the flow versions from the specified registry and bucket for the specified flow for the current user
FlowApiqueryHistoryGET /flow/historyGets configuration history
FlowApischeduleComponentsPUT /flow/process-groups/{id}Schedule or unschedule components in the specified Process Group.
FlowApisearchClusterGET /flow/cluster/search-resultsSearches the cluster for a node with the specified address
FlowApisearchFlowGET /flow/search-resultsPerforms a search against this NiFi using the specified search term
FlowfilequeuesApicreateDropRequestPOST /flowfile-queues/{id}/drop-requestsCreates a request to drop the contents of the queue in this connection.
FlowfilequeuesApicreateFlowFileListingPOST /flowfile-queues/{id}/listing-requestsLists the contents of the queue in this connection.
FlowfilequeuesApideleteListingRequestDELETE /flowfile-queues/{id}/listing-requests/{listing-request-id}Cancels and/or removes a request to list the contents of this connection.
FlowfilequeuesApidownloadFlowFileContentGET /flowfile-queues/{id}/flowfiles/{flowfile-uuid}/contentGets the content for a FlowFile in a Connection.
FlowfilequeuesApigetDropRequestGET /flowfile-queues/{id}/drop-requests/{drop-request-id}Gets the current status of a drop request for the specified connection.
FlowfilequeuesApigetFlowFileGET /flowfile-queues/{id}/flowfiles/{flowfile-uuid}Gets a FlowFile from a Connection.
FlowfilequeuesApigetListingRequestGET /flowfile-queues/{id}/listing-requests/{listing-request-id}Gets the current status of a listing request for the specified connection.
FlowfilequeuesApiremoveDropRequestDELETE /flowfile-queues/{id}/drop-requests/{drop-request-id}Cancels and/or removes a request to drop the contents of this connection.
FunnelApigetFunnelGET /funnels/{id}Gets a funnel
FunnelApiremoveFunnelDELETE /funnels/{id}Deletes a funnel
FunnelApiupdateFunnelPUT /funnels/{id}Updates a funnel
InputportsApigetInputPortGET /input-ports/{id}Gets an input port
InputportsApiremoveInputPortDELETE /input-ports/{id}Deletes an input port
InputportsApiupdateInputPortPUT /input-ports/{id}Updates an input port
InputportsApiupdateRunStatusPUT /input-ports/{id}/run-statusUpdates run status of an input-port
LabelsApigetLabelGET /labels/{id}Gets a label
LabelsApiremoveLabelDELETE /labels/{id}Deletes a label
LabelsApiupdateLabelPUT /labels/{id}Updates a label
OutputportsApigetOutputPortGET /output-ports/{id}Gets an output port
OutputportsApiremoveOutputPortDELETE /output-ports/{id}Deletes an output port
OutputportsApiupdateOutputPortPUT /output-ports/{id}Updates an output port
OutputportsApiupdateRunStatusPUT /output-ports/{id}/run-statusUpdates run status of an output-port
ParametercontextsApicreateParameterContextPOST /parameter-contextsCreate a Parameter Context
ParametercontextsApideleteParameterContextDELETE /parameter-contexts/{id}Deletes the Parameter Context with the given ID
ParametercontextsApideleteUpdateRequestDELETE /parameter-contexts/{contextId}/update-requests/{requestId}Deletes the Update Request with the given ID
ParametercontextsApideleteValidationRequestDELETE /parameter-contexts/{contextId}/validation-requests/{id}Deletes the Validation Request with the given ID
ParametercontextsApigetParameterContextGET /parameter-contexts/{id}Returns the Parameter Context with the given ID
ParametercontextsApigetParameterContextUpdateGET /parameter-contexts/{contextId}/update-requests/{requestId}Returns the Update Request with the given ID
ParametercontextsApigetValidationRequestGET /parameter-contexts/{contextId}/validation-requests/{id}Returns the Validation Request with the given ID
ParametercontextsApisubmitParameterContextUpdatePOST /parameter-contexts/{contextId}/update-requestsInitiate the Update Request of a Parameter Context
ParametercontextsApisubmitValidationRequestPOST /parameter-contexts/{contextId}/validation-requestsInitiate a Validation Request to determine how the validity of components will change if a Parameter Context were to be updated
ParametercontextsApiupdateParameterContextPUT /parameter-contexts/{id}Modifies a Parameter Context
ParameterprovidersApianalyzeConfigurationPOST /parameter-providers/{id}/config/analysisPerforms analysis of the component's configuration, providing information about which attributes are referenced.
ParameterprovidersApiclearStatePOST /parameter-providers/{id}/state/clear-requestsClears the state for a parameter provider
ParameterprovidersApideleteApplyParametersRequestDELETE /parameter-providers/{providerId}/apply-parameters-requests/{requestId}Deletes the Apply Parameters Request with the given ID
ParameterprovidersApideleteVerificationRequestDELETE /parameter-providers/{id}/config/verification-requests/{requestId}Deletes the Verification Request with the given ID
ParameterprovidersApifetchParametersPOST /parameter-providers/{id}/parameters/fetch-requestsFetches and temporarily caches the parameters for a provider
ParameterprovidersApigetParameterProviderGET /parameter-providers/{id}Gets a parameter provider
ParameterprovidersApigetParameterProviderApplyParametersRequestGET /parameter-providers/{providerId}/apply-parameters-requests/{requestId}Returns the Apply Parameters Request with the given ID
ParameterprovidersApigetParameterProviderReferencesGET /parameter-providers/{id}/referencesGets all references to a parameter provider
ParameterprovidersApigetPropertyDescriptorGET /parameter-providers/{id}/descriptorsGets a parameter provider property descriptor
ParameterprovidersApigetStateGET /parameter-providers/{id}/stateGets the state for a parameter provider
ParameterprovidersApigetVerificationRequestGET /parameter-providers/{id}/config/verification-requests/{requestId}Returns the Verification Request with the given ID
ParameterprovidersApiremoveParameterProviderDELETE /parameter-providers/{id}Deletes a parameter provider
ParameterprovidersApisubmitApplyParametersPOST /parameter-providers/{providerId}/apply-parameters-requestsInitiate a request to apply the fetched parameters of a Parameter Provider
ParameterprovidersApisubmitConfigVerificationRequestPOST /parameter-providers/{id}/config/verification-requestsPerforms verification of the Parameter Provider's configuration
ParameterprovidersApiupdateParameterProviderPUT /parameter-providers/{id}Updates a parameter provider
PoliciesApicreateAccessPolicyPOST /policiesCreates an access policy
PoliciesApigetAccessPolicyGET /policies/{id}Gets an access policy
PoliciesApigetAccessPolicyForResourceGET /policies/{action}/{resource}Gets an access policy for the specified action and resource
PoliciesApiremoveAccessPolicyDELETE /policies/{id}Deletes an access policy
PoliciesApiupdateAccessPolicyPUT /policies/{id}Updates a access policy
ProcessgroupsApicopySnippetPOST /process-groups/{id}/snippet-instanceCopies a snippet and discards it.
ProcessgroupsApicreateConnectionPOST /process-groups/{id}/connectionsCreates a connection
ProcessgroupsApicreateControllerServicePOST /process-groups/{id}/controller-servicesCreates a new controller service
ProcessgroupsApicreateEmptyAllConnectionsRequestPOST /process-groups/{id}/empty-all-connections-requestsCreates a request to drop all flowfiles of all connection queues in this process group.
ProcessgroupsApicreateFunnelPOST /process-groups/{id}/funnelsCreates a funnel
ProcessgroupsApicreateInputPortPOST /process-groups/{id}/input-portsCreates an input port
ProcessgroupsApicreateLabelPOST /process-groups/{id}/labelsCreates a label
ProcessgroupsApicreateOutputPortPOST /process-groups/{id}/output-portsCreates an output port
ProcessgroupsApicreateProcessGroupPOST /process-groups/{id}/process-groupsCreates a process group
ProcessgroupsApicreateProcessorPOST /process-groups/{id}/processorsCreates a new processor
ProcessgroupsApicreateRemoteProcessGroupPOST /process-groups/{id}/remote-process-groupsCreates a new process group
ProcessgroupsApicreateTemplatePOST /process-groups/{id}/templatesCreates a template and discards the specified snippet.
ProcessgroupsApideleteReplaceProcessGroupRequestDELETE /process-groups/replace-requests/{id}Deletes the Replace Request with the given ID
ProcessgroupsApideleteVariableRegistryUpdateRequestDELETE /process-groups/{groupId}/variable-registry/update-requests/{updateId}Deletes an update request for a process group's variable registry. If the request is not yet complete, it will automatically be cancelled.
ProcessgroupsApiexportProcessGroupGET /process-groups/{id}/downloadGets a process group for download
ProcessgroupsApigetConnectionsGET /process-groups/{id}/connectionsGets all connections
ProcessgroupsApigetDropAllFlowfilesRequestGET /process-groups/{id}/empty-all-connections-requests/{drop-request-id}Gets the current status of a drop all flowfiles request.
ProcessgroupsApigetFunnelsGET /process-groups/{id}/funnelsGets all funnels
ProcessgroupsApigetInputPortsGET /process-groups/{id}/input-portsGets all input ports
ProcessgroupsApigetLabelsGET /process-groups/{id}/labelsGets all labels
ProcessgroupsApigetLocalModificationsGET /process-groups/{id}/local-modificationsGets a list of local modifications to the Process Group since it was last synchronized with the Flow Registry
ProcessgroupsApigetOutputPortsGET /process-groups/{id}/output-portsGets all output ports
ProcessgroupsApigetProcessGroupGET /process-groups/{id}Gets a process group
ProcessgroupsApigetProcessGroupsGET /process-groups/{id}/process-groupsGets all process groups
ProcessgroupsApigetProcessorsGET /process-groups/{id}/processorsGets all processors
ProcessgroupsApigetRemoteProcessGroupsGET /process-groups/{id}/remote-process-groupsGets all remote process groups
ProcessgroupsApigetReplaceProcessGroupRequestGET /process-groups/replace-requests/{id}Returns the Replace Request with the given ID
ProcessgroupsApigetVariableRegistryGET /process-groups/{id}/variable-registryGets a process group's variable registry
ProcessgroupsApigetVariableRegistryUpdateRequestGET /process-groups/{groupId}/variable-registry/update-requests/{updateId}Gets a process group's variable registry
ProcessgroupsApiimportProcessGroupPOST /process-groups/{id}/process-groups/importImports a specified process group
ProcessgroupsApiimportTemplatePOST /process-groups/{id}/templates/importImports a template
ProcessgroupsApiinitiateReplaceProcessGroupPOST /process-groups/{id}/replace-requestsInitiate the Replace Request of a Process Group with the given ID
ProcessgroupsApiinstantiateTemplatePOST /process-groups/{id}/template-instanceInstantiates a template
ProcessgroupsApiremoveDropRequestDELETE /process-groups/{id}/empty-all-connections-requests/{drop-request-id}Cancels and/or removes a request to drop all flowfiles.
ProcessgroupsApiremoveProcessGroupDELETE /process-groups/{id}Deletes a process group
ProcessgroupsApireplaceProcessGroupPUT /process-groups/{id}/flow-contentsReplace Process Group contents with the given ID with the specified Process Group contents
ProcessgroupsApisubmitUpdateVariableRegistryRequestPOST /process-groups/{id}/variable-registry/update-requestsSubmits a request to update a process group's variable registry
ProcessgroupsApiupdateProcessGroupPUT /process-groups/{id}Updates a process group
ProcessgroupsApiupdateVariableRegistryPUT /process-groups/{id}/variable-registryUpdates the contents of a Process Group's variable Registry
ProcessgroupsApiuploadProcessGroupPOST /process-groups/{id}/process-groups/uploadUploads a versioned flow definition and creates a process group
ProcessgroupsApiuploadTemplatePOST /process-groups/{id}/templates/uploadUploads a template
ProcessorsApianalyzeConfigurationPOST /processors/{id}/config/analysisPerforms analysis of the component's configuration, providing information about which attributes are referenced.
ProcessorsApiclearStatePOST /processors/{id}/state/clear-requestsClears the state for a processor
ProcessorsApideleteProcessorDELETE /processors/{id}Deletes a processor
ProcessorsApideleteVerificationRequestDELETE /processors/{id}/config/verification-requests/{requestId}Deletes the Verification Request with the given ID
ProcessorsApigetProcessorGET /processors/{id}Gets a processor
ProcessorsApigetProcessorDiagnosticsGET /processors/{id}/diagnosticsGets diagnostics information about a processor
ProcessorsApigetProcessorRunStatusDetailsPOST /processors/run-status-details/queriesSubmits a query to retrieve the run status details of all processors that are in the given list of Processor IDs
ProcessorsApigetPropertyDescriptorGET /processors/{id}/descriptorsGets the descriptor for a processor property
ProcessorsApigetStateGET /processors/{id}/stateGets the state for a processor
ProcessorsApigetVerificationRequestGET /processors/{id}/config/verification-requests/{requestId}Returns the Verification Request with the given ID
ProcessorsApisubmitProcessorVerificationRequestPOST /processors/{id}/config/verification-requestsPerforms verification of the Processor's configuration
ProcessorsApiterminateProcessorDELETE /processors/{id}/threadsTerminates a processor, essentially "deleting" its threads and any active tasks
ProcessorsApiupdateProcessorPUT /processors/{id}Updates a processor
ProcessorsApiupdateRunStatusPUT /processors/{id}/run-statusUpdates run status of a processor
ProvenanceApideleteLineageDELETE /provenance/lineage/{id}Deletes a lineage query
ProvenanceApideleteProvenanceDELETE /provenance/{id}Deletes a provenance query
ProvenanceApigetLineageGET /provenance/lineage/{id}Gets a lineage query
ProvenanceApigetProvenanceGET /provenance/{id}Gets a provenance query
ProvenanceApigetSearchOptionsGET /provenance/search-optionsGets the searchable attributes for provenance events
ProvenanceApisubmitLineageRequestPOST /provenance/lineageSubmits a lineage query
ProvenanceApisubmitProvenanceRequestPOST /provenanceSubmits a provenance query
ProvenanceeventsApigetInputContentGET /provenance-events/{id}/content/inputGets the input content for a provenance event
ProvenanceeventsApigetOutputContentGET /provenance-events/{id}/content/outputGets the output content for a provenance event
ProvenanceeventsApigetProvenanceEventGET /provenance-events/{id}Gets a provenance event
ProvenanceeventsApisubmitReplayPOST /provenance-events/replaysReplays content from a provenance event
ProvenanceeventsApisubmitReplayLatestEventPOST /provenance-events/latest/replaysReplays content from a provenance event
RemoteprocessgroupsApigetRemoteProcessGroupGET /remote-process-groups/{id}Gets a remote process group
RemoteprocessgroupsApigetStateGET /remote-process-groups/{id}/stateGets the state for a RemoteProcessGroup
RemoteprocessgroupsApiremoveRemoteProcessGroupDELETE /remote-process-groups/{id}Deletes a remote process group
RemoteprocessgroupsApiupdateRemoteProcessGroupPUT /remote-process-groups/{id}Updates a remote process group
RemoteprocessgroupsApiupdateRemoteProcessGroupInputPortPUT /remote-process-groups/{id}/input-ports/{port-id}Updates a remote port
RemoteprocessgroupsApiupdateRemoteProcessGroupInputPortRunStatusPUT /remote-process-groups/{id}/input-ports/{port-id}/run-statusUpdates run status of a remote port
RemoteprocessgroupsApiupdateRemoteProcessGroupOutputPortPUT /remote-process-groups/{id}/output-ports/{port-id}Updates a remote port
RemoteprocessgroupsApiupdateRemoteProcessGroupOutputPortRunStatusPUT /remote-process-groups/{id}/output-ports/{port-id}/run-statusUpdates run status of a remote port
RemoteprocessgroupsApiupdateRemoteProcessGroupRunStatusPUT /remote-process-groups/{id}/run-statusUpdates run status of a remote process group
RemoteprocessgroupsApiupdateRemoteProcessGroupRunStatusesPUT /remote-process-groups/process-group/{id}/run-statusUpdates run status of all remote process groups in a process group (recursively)
ReportingtasksApianalyzeConfigurationPOST /reporting-tasks/{id}/config/analysisPerforms analysis of the component's configuration, providing information about which attributes are referenced.
ReportingtasksApiclearStatePOST /reporting-tasks/{id}/state/clear-requestsClears the state for a reporting task
ReportingtasksApideleteVerificationRequestDELETE /reporting-tasks/{id}/config/verification-requests/{requestId}Deletes the Verification Request with the given ID
ReportingtasksApigetPropertyDescriptorGET /reporting-tasks/{id}/descriptorsGets a reporting task property descriptor
ReportingtasksApigetReportingTaskGET /reporting-tasks/{id}Gets a reporting task
ReportingtasksApigetStateGET /reporting-tasks/{id}/stateGets the state for a reporting task
ReportingtasksApigetVerificationRequestGET /reporting-tasks/{id}/config/verification-requests/{requestId}Returns the Verification Request with the given ID
ReportingtasksApiremoveReportingTaskDELETE /reporting-tasks/{id}Deletes a reporting task
ReportingtasksApisubmitConfigVerificationRequestPOST /reporting-tasks/{id}/config/verification-requestsPerforms verification of the Reporting Task's configuration
ReportingtasksApiupdateReportingTaskPUT /reporting-tasks/{id}Updates a reporting task
ReportingtasksApiupdateRunStatusPUT /reporting-tasks/{id}/run-statusUpdates run status of a reporting task
ResourcesApigetResourcesGET /resourcesGets the available resources that support access/authorization policies
SitetositeApigetPeersGET /site-to-site/peersReturns the available Peers and its status of this NiFi
SitetositeApigetSiteToSiteDetailsGET /site-to-siteReturns the details about this NiFi necessary to communicate via site to site
SnippetsApicreateSnippetPOST /snippetsCreates a snippet. The snippet will be automatically discarded if not used in a subsequent request after 1 minute.
SnippetsApideleteSnippetDELETE /snippets/{id}Deletes the components in a snippet and discards the snippet
SnippetsApiupdateSnippetPUT /snippets/{id}Move's the components in this Snippet into a new Process Group and discards the snippet
SystemdiagnosticsApigetSystemDiagnosticsGET /system-diagnosticsGets the diagnostics for the system NiFi is running on
TemplatesApiexportTemplateGET /templates/{id}/downloadExports a template
TemplatesApiremoveTemplateDELETE /templates/{id}Deletes a template
TenantsApicreateUserPOST /tenants/usersCreates a user
TenantsApicreateUserGroupPOST /tenants/user-groupsCreates a user group
TenantsApigetUserGET /tenants/users/{id}Gets a user
TenantsApigetUserGroupGET /tenants/user-groups/{id}Gets a user group
TenantsApigetUserGroupsGET /tenants/user-groupsGets all user groups
TenantsApigetUsersGET /tenants/usersGets all users
TenantsApiremoveUserDELETE /tenants/users/{id}Deletes a user
TenantsApiremoveUserGroupDELETE /tenants/user-groups/{id}Deletes a user group
TenantsApisearchTenantsGET /tenants/search-resultsSearches for a tenant with the specified identity
TenantsApiupdateUserPUT /tenants/users/{id}Updates a user
TenantsApiupdateUserGroupPUT /tenants/user-groups/{id}Updates a user group
VersionsApicreateVersionControlRequestPOST /versions/active-requestsCreate a version control request
VersionsApideleteRevertRequestDELETE /versions/revert-requests/{id}Deletes the Revert Request with the given ID
VersionsApideleteUpdateRequestDELETE /versions/update-requests/{id}Deletes the Update Request with the given ID
VersionsApideleteVersionControlRequestDELETE /versions/active-requests/{id}Deletes the version control request with the given ID
VersionsApiexportFlowVersionGET /versions/process-groups/{id}/downloadGets the latest version of a Process Group for download
VersionsApigetRevertRequestGET /versions/revert-requests/{id}Returns the Revert Request with the given ID
VersionsApigetUpdateRequestGET /versions/update-requests/{id}Returns the Update Request with the given ID
VersionsApigetVersionInformationGET /versions/process-groups/{id}Gets the Version Control information for a process group
VersionsApiinitiateRevertFlowVersionPOST /versions/revert-requests/process-groups/{id}Initiate the Revert Request of a Process Group with the given ID
VersionsApiinitiateVersionControlUpdatePOST /versions/update-requests/process-groups/{id}Initiate the Update Request of a Process Group with the given ID
VersionsApisaveToFlowRegistryPOST /versions/process-groups/{id}Save the Process Group with the given ID
VersionsApistopVersionControlDELETE /versions/process-groups/{id}Stops version controlling the Process Group with the given ID
VersionsApiupdateFlowVersionPUT /versions/process-groups/{id}Update the version of a Process Group with the given ID
VersionsApiupdateVersionControlRequestPUT /versions/active-requests/{id}Updates the request with the given ID

Documentation for Models

About

NiFi Java API Client

Topics

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages