All URIs are relative to http://localhost/nifi-api
| Method | HTTP request | Description |
|---|---|---|
| copySnippet | POST /process-groups/{id}/snippet-instance | Copies a snippet and discards it. |
| createConnection | POST /process-groups/{id}/connections | Creates a connection |
| createControllerService | POST /process-groups/{id}/controller-services | Creates a new controller service |
| createEmptyAllConnectionsRequest | POST /process-groups/{id}/empty-all-connections-requests | Creates a request to drop all flowfiles of all connection queues in this process group. |
| createFunnel | POST /process-groups/{id}/funnels | Creates a funnel |
| createInputPort | POST /process-groups/{id}/input-ports | Creates an input port |
| createLabel | POST /process-groups/{id}/labels | Creates a label |
| createOutputPort | POST /process-groups/{id}/output-ports | Creates an output port |
| createProcessGroup | POST /process-groups/{id}/process-groups | Creates a process group |
| createProcessor | POST /process-groups/{id}/processors | Creates a new processor |
| createRemoteProcessGroup | POST /process-groups/{id}/remote-process-groups | Creates a new process group |
| createTemplate | POST /process-groups/{id}/templates | Creates a template and discards the specified snippet. |
| deleteReplaceProcessGroupRequest | DELETE /process-groups/replace-requests/{id} | Deletes the Replace Request with the given ID |
| deleteVariableRegistryUpdateRequest | DELETE /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. |
| exportProcessGroup | GET /process-groups/{id}/download | Gets a process group for download |
| getConnections | GET /process-groups/{id}/connections | Gets all connections |
| getDropAllFlowfilesRequest | GET /process-groups/{id}/empty-all-connections-requests/{drop-request-id} | Gets the current status of a drop all flowfiles request. |
| getFunnels | GET /process-groups/{id}/funnels | Gets all funnels |
| getInputPorts | GET /process-groups/{id}/input-ports | Gets all input ports |
| getLabels | GET /process-groups/{id}/labels | Gets all labels |
| getLocalModifications | GET /process-groups/{id}/local-modifications | Gets a list of local modifications to the Process Group since it was last synchronized with the Flow Registry |
| getOutputPorts | GET /process-groups/{id}/output-ports | Gets all output ports |
| getProcessGroup | GET /process-groups/{id} | Gets a process group |
| getProcessGroups | GET /process-groups/{id}/process-groups | Gets all process groups |
| getProcessors | GET /process-groups/{id}/processors | Gets all processors |
| getRemoteProcessGroups | GET /process-groups/{id}/remote-process-groups | Gets all remote process groups |
| getReplaceProcessGroupRequest | GET /process-groups/replace-requests/{id} | Returns the Replace Request with the given ID |
| getVariableRegistry | GET /process-groups/{id}/variable-registry | Gets a process group's variable registry |
| getVariableRegistryUpdateRequest | GET /process-groups/{groupId}/variable-registry/update-requests/{updateId} | Gets a process group's variable registry |
| importProcessGroup | POST /process-groups/{id}/process-groups/import | Imports a specified process group |
| importTemplate | POST /process-groups/{id}/templates/import | Imports a template |
| initiateReplaceProcessGroup | POST /process-groups/{id}/replace-requests | Initiate the Replace Request of a Process Group with the given ID |
| instantiateTemplate | POST /process-groups/{id}/template-instance | Instantiates a template |
| removeDropRequest | DELETE /process-groups/{id}/empty-all-connections-requests/{drop-request-id} | Cancels and/or removes a request to drop all flowfiles. |
| removeProcessGroup | DELETE /process-groups/{id} | Deletes a process group |
| replaceProcessGroup | PUT /process-groups/{id}/flow-contents | Replace Process Group contents with the given ID with the specified Process Group contents |
| submitUpdateVariableRegistryRequest | POST /process-groups/{id}/variable-registry/update-requests | Submits a request to update a process group's variable registry |
| updateProcessGroup | PUT /process-groups/{id} | Updates a process group |
| updateVariableRegistry | PUT /process-groups/{id}/variable-registry | Updates the contents of a Process Group's variable Registry |
| uploadProcessGroup | POST /process-groups/{id}/process-groups/upload | Uploads a versioned flow definition and creates a process group |
| uploadTemplate | POST /process-groups/{id}/templates/upload | Uploads a template |
FlowEntity copySnippet(id, body)
Copies a snippet and discards it.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
CopySnippetRequestEntity body = new CopySnippetRequestEntity(); // CopySnippetRequestEntity | The copy snippet request.
try {
FlowEntity result = apiInstance.copySnippet(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#copySnippet");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| body | CopySnippetRequestEntity | The copy snippet request. |
No authorization required
- Content-Type: application/json
- Accept: application/json
ConnectionEntity createConnection(id, body)
Creates a connection
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
ConnectionEntity body = new ConnectionEntity(); // ConnectionEntity | The connection configuration details.
try {
ConnectionEntity result = apiInstance.createConnection(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#createConnection");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| body | ConnectionEntity | The connection configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
ControllerServiceEntity createControllerService(id, body)
Creates a new controller service
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
ControllerServiceEntity body = new ControllerServiceEntity(); // ControllerServiceEntity | The controller service configuration details.
try {
ControllerServiceEntity result = apiInstance.createControllerService(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#createControllerService");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| body | ControllerServiceEntity | The controller service configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
DropRequestEntity createEmptyAllConnectionsRequest(id)
Creates a request to drop all flowfiles of all connection queues in this process group.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
try {
DropRequestEntity result = apiInstance.createEmptyAllConnectionsRequest(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#createEmptyAllConnectionsRequest");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. |
No authorization required
- Content-Type: /
- Accept: application/json
FunnelEntity createFunnel(id, body)
Creates a funnel
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
FunnelEntity body = new FunnelEntity(); // FunnelEntity | The funnel configuration details.
try {
FunnelEntity result = apiInstance.createFunnel(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#createFunnel");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| body | FunnelEntity | The funnel configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
PortEntity createInputPort(id, body)
Creates an input port
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
PortEntity body = new PortEntity(); // PortEntity | The input port configuration details.
try {
PortEntity result = apiInstance.createInputPort(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#createInputPort");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| body | PortEntity | The input port configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
LabelEntity createLabel(id, body)
Creates a label
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
LabelEntity body = new LabelEntity(); // LabelEntity | The label configuration details.
try {
LabelEntity result = apiInstance.createLabel(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#createLabel");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| body | LabelEntity | The label configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
PortEntity createOutputPort(id, body)
Creates an output port
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
PortEntity body = new PortEntity(); // PortEntity | The output port configuration.
try {
PortEntity result = apiInstance.createOutputPort(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#createOutputPort");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| body | PortEntity | The output port configuration. |
No authorization required
- Content-Type: application/json
- Accept: application/json
ProcessGroupEntity createProcessGroup(id, body)
Creates a process group
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
ProcessGroupEntity body = new ProcessGroupEntity(); // ProcessGroupEntity | The process group configuration details.
try {
ProcessGroupEntity result = apiInstance.createProcessGroup(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#createProcessGroup");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| body | ProcessGroupEntity | The process group configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
ProcessorEntity createProcessor(id, body)
Creates a new processor
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
ProcessorEntity body = new ProcessorEntity(); // ProcessorEntity | The processor configuration details.
try {
ProcessorEntity result = apiInstance.createProcessor(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#createProcessor");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| body | ProcessorEntity | The processor configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
RemoteProcessGroupEntity createRemoteProcessGroup(id, body)
Creates a new process group
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
RemoteProcessGroupEntity body = new RemoteProcessGroupEntity(); // RemoteProcessGroupEntity | The remote process group configuration details.
try {
RemoteProcessGroupEntity result = apiInstance.createRemoteProcessGroup(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#createRemoteProcessGroup");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| body | RemoteProcessGroupEntity | The remote process group configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
TemplateEntity createTemplate(id, body)
Creates a template and discards the specified snippet.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
CreateTemplateRequestEntity body = new CreateTemplateRequestEntity(); // CreateTemplateRequestEntity | The create template request.
try {
TemplateEntity result = apiInstance.createTemplate(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#createTemplate");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| body | CreateTemplateRequestEntity | The create template request. |
No authorization required
- Content-Type: application/json
- Accept: application/json
ProcessGroupReplaceRequestEntity deleteReplaceProcessGroupRequest(id, disconnectedNodeAcknowledged)
Deletes the Replace Request with the given ID
Deletes the Replace Request with the given ID. After a request is created via a POST to /process-groups/{id}/replace-requests, it is expected that the client will properly clean up the request by DELETE'ing it, once the Replace process has completed. If the request is deleted before the request completes, then the Replace request will finish the step that it is currently performing and then will cancel any subsequent steps. Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The ID of the Update Request
Boolean disconnectedNodeAcknowledged = false; // Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed.
try {
ProcessGroupReplaceRequestEntity result = apiInstance.deleteReplaceProcessGroupRequest(id, disconnectedNodeAcknowledged);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#deleteReplaceProcessGroupRequest");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The ID of the Update Request | |
| disconnectedNodeAcknowledged | Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] |
ProcessGroupReplaceRequestEntity
No authorization required
- Content-Type: /
- Accept: application/json
VariableRegistryUpdateRequestEntity deleteVariableRegistryUpdateRequest(groupId, updateId, disconnectedNodeAcknowledged)
Deletes an update request for a process group's variable registry. If the request is not yet complete, it will automatically be cancelled.
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String groupId = "groupId_example"; // String | The process group id.
String updateId = "updateId_example"; // String | The ID of the Variable Registry Update Request
Boolean disconnectedNodeAcknowledged = false; // Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed.
try {
VariableRegistryUpdateRequestEntity result = apiInstance.deleteVariableRegistryUpdateRequest(groupId, updateId, disconnectedNodeAcknowledged);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#deleteVariableRegistryUpdateRequest");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| groupId | String | The process group id. | |
| updateId | String | The ID of the Variable Registry Update Request | |
| disconnectedNodeAcknowledged | Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] |
VariableRegistryUpdateRequestEntity
No authorization required
- Content-Type: /
- Accept: application/json
String exportProcessGroup(id, includeReferencedServices)
Gets a process group for download
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
Boolean includeReferencedServices = false; // Boolean | If referenced services from outside the target group should be included
try {
String result = apiInstance.exportProcessGroup(id, includeReferencedServices);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#exportProcessGroup");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| includeReferencedServices | Boolean | If referenced services from outside the target group should be included | [optional] [default to false] |
String
No authorization required
- Content-Type: /
- Accept: application/json
ConnectionsEntity getConnections(id)
Gets all connections
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
try {
ConnectionsEntity result = apiInstance.getConnections(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#getConnections");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. |
No authorization required
- Content-Type: /
- Accept: application/json
DropRequestEntity getDropAllFlowfilesRequest(id, dropRequestId)
Gets the current status of a drop all flowfiles request.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
String dropRequestId = "dropRequestId_example"; // String | The drop request id.
try {
DropRequestEntity result = apiInstance.getDropAllFlowfilesRequest(id, dropRequestId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#getDropAllFlowfilesRequest");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| dropRequestId | String | The drop request id. |
No authorization required
- Content-Type: /
- Accept: application/json
FunnelsEntity getFunnels(id)
Gets all funnels
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
try {
FunnelsEntity result = apiInstance.getFunnels(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#getFunnels");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. |
No authorization required
- Content-Type: /
- Accept: application/json
InputPortsEntity getInputPorts(id)
Gets all input ports
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
try {
InputPortsEntity result = apiInstance.getInputPorts(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#getInputPorts");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. |
No authorization required
- Content-Type: /
- Accept: application/json
LabelsEntity getLabels(id)
Gets all labels
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
try {
LabelsEntity result = apiInstance.getLabels(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#getLabels");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. |
No authorization required
- Content-Type: /
- Accept: application/json
FlowComparisonEntity getLocalModifications(id)
Gets a list of local modifications to the Process Group since it was last synchronized with the Flow Registry
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
try {
FlowComparisonEntity result = apiInstance.getLocalModifications(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#getLocalModifications");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. |
No authorization required
- Content-Type: /
- Accept: application/json
OutputPortsEntity getOutputPorts(id)
Gets all output ports
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
try {
OutputPortsEntity result = apiInstance.getOutputPorts(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#getOutputPorts");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. |
No authorization required
- Content-Type: /
- Accept: application/json
ProcessGroupEntity getProcessGroup(id)
Gets a process group
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
try {
ProcessGroupEntity result = apiInstance.getProcessGroup(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#getProcessGroup");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. |
No authorization required
- Content-Type: /
- Accept: application/json
ProcessGroupsEntity getProcessGroups(id)
Gets all process groups
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
try {
ProcessGroupsEntity result = apiInstance.getProcessGroups(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#getProcessGroups");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. |
No authorization required
- Content-Type: /
- Accept: application/json
ProcessorsEntity getProcessors(id, includeDescendantGroups)
Gets all processors
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
Boolean includeDescendantGroups = false; // Boolean | Whether or not to include processors from descendant process groups
try {
ProcessorsEntity result = apiInstance.getProcessors(id, includeDescendantGroups);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#getProcessors");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| includeDescendantGroups | Boolean | Whether or not to include processors from descendant process groups | [optional] [default to false] |
No authorization required
- Content-Type: /
- Accept: application/json
RemoteProcessGroupsEntity getRemoteProcessGroups(id)
Gets all remote process groups
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
try {
RemoteProcessGroupsEntity result = apiInstance.getRemoteProcessGroups(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#getRemoteProcessGroups");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. |
No authorization required
- Content-Type: /
- Accept: application/json
ProcessGroupReplaceRequestEntity getReplaceProcessGroupRequest(id)
Returns the Replace Request with the given ID
Returns the Replace Request with the given ID. Once a Replace Request has been created by performing a POST to /process-groups/{id}/replace-requests, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures. Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The ID of the Replace Request
try {
ProcessGroupReplaceRequestEntity result = apiInstance.getReplaceProcessGroupRequest(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#getReplaceProcessGroupRequest");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The ID of the Replace Request |
ProcessGroupReplaceRequestEntity
No authorization required
- Content-Type: /
- Accept: application/json
VariableRegistryEntity getVariableRegistry(id, includeAncestorGroups)
Gets a process group's variable registry
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
Boolean includeAncestorGroups = true; // Boolean | Whether or not to include ancestor groups
try {
VariableRegistryEntity result = apiInstance.getVariableRegistry(id, includeAncestorGroups);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#getVariableRegistry");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| includeAncestorGroups | Boolean | Whether or not to include ancestor groups | [optional] [default to true] |
No authorization required
- Content-Type: /
- Accept: application/json
VariableRegistryUpdateRequestEntity getVariableRegistryUpdateRequest(groupId, updateId)
Gets a process group's variable registry
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String groupId = "groupId_example"; // String | The process group id.
String updateId = "updateId_example"; // String | The ID of the Variable Registry Update Request
try {
VariableRegistryUpdateRequestEntity result = apiInstance.getVariableRegistryUpdateRequest(groupId, updateId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#getVariableRegistryUpdateRequest");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| groupId | String | The process group id. | |
| updateId | String | The ID of the Variable Registry Update Request |
VariableRegistryUpdateRequestEntity
No authorization required
- Content-Type: /
- Accept: application/json
ProcessGroupEntity importProcessGroup(id)
Imports a specified process group
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
try {
ProcessGroupEntity result = apiInstance.importProcessGroup(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#importProcessGroup");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. |
No authorization required
- Content-Type: application/json
- Accept: application/json
TemplateEntity importTemplate(id)
Imports a template
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
try {
TemplateEntity result = apiInstance.importTemplate(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#importTemplate");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. |
No authorization required
- Content-Type: application/xml
- Accept: application/xml
ProcessGroupReplaceRequestEntity initiateReplaceProcessGroup(id, body)
Initiate the Replace Request of a Process Group with the given ID
This will initiate the action of replacing a process group with the given process group. This can be a lengthy process, as it will stop any Processors and disable any Controller Services necessary to perform the action and then restart them. As a result, the endpoint will immediately return a ProcessGroupReplaceRequestEntity, and the process of replacing the flow will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /process-groups/replace-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /process-groups/replace-requests/{requestId}. Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
ProcessGroupImportEntity body = new ProcessGroupImportEntity(); // ProcessGroupImportEntity | The process group replace request entity
try {
ProcessGroupReplaceRequestEntity result = apiInstance.initiateReplaceProcessGroup(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#initiateReplaceProcessGroup");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| body | ProcessGroupImportEntity | The process group replace request entity |
ProcessGroupReplaceRequestEntity
No authorization required
- Content-Type: application/json
- Accept: application/json
FlowEntity instantiateTemplate(id, body)
Instantiates a template
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
InstantiateTemplateRequestEntity body = new InstantiateTemplateRequestEntity(); // InstantiateTemplateRequestEntity | The instantiate template request.
try {
FlowEntity result = apiInstance.instantiateTemplate(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#instantiateTemplate");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| body | InstantiateTemplateRequestEntity | The instantiate template request. |
No authorization required
- Content-Type: application/json
- Accept: application/json
DropRequestEntity removeDropRequest(id, dropRequestId)
Cancels and/or removes a request to drop all flowfiles.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
String dropRequestId = "dropRequestId_example"; // String | The drop request id.
try {
DropRequestEntity result = apiInstance.removeDropRequest(id, dropRequestId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#removeDropRequest");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| dropRequestId | String | The drop request id. |
No authorization required
- Content-Type: /
- Accept: application/json
ProcessGroupEntity removeProcessGroup(id, version, clientId, disconnectedNodeAcknowledged)
Deletes a process group
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
String version = "version_example"; // String | The revision is used to verify the client is working with the latest version of the flow.
String clientId = "clientId_example"; // String | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.
Boolean disconnectedNodeAcknowledged = false; // Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed.
try {
ProcessGroupEntity result = apiInstance.removeProcessGroup(id, version, clientId, disconnectedNodeAcknowledged);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#removeProcessGroup");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| version | String | The revision is used to verify the client is working with the latest version of the flow. | [optional] |
| clientId | String | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. | [optional] |
| disconnectedNodeAcknowledged | Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] [default to false] |
No authorization required
- Content-Type: /
- Accept: application/json
ProcessGroupImportEntity replaceProcessGroup(id, body)
Replace Process Group contents with the given ID with the specified Process Group contents
This endpoint is used for replication within a cluster, when replacing a flow with a new flow. It expects that the flow beingreplaced is not under version control and that the given snapshot will not modify any Processor that is currently running or any Controller Service that is enabled. Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
ProcessGroupImportEntity body = new ProcessGroupImportEntity(); // ProcessGroupImportEntity | The process group replace request entity.
try {
ProcessGroupImportEntity result = apiInstance.replaceProcessGroup(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#replaceProcessGroup");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| body | ProcessGroupImportEntity | The process group replace request entity. |
No authorization required
- Content-Type: application/json
- Accept: application/json
VariableRegistryUpdateRequestEntity submitUpdateVariableRegistryRequest(id, body)
Submits a request to update a process group's variable registry
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
VariableRegistryEntity body = new VariableRegistryEntity(); // VariableRegistryEntity | The variable registry configuration details.
try {
VariableRegistryUpdateRequestEntity result = apiInstance.submitUpdateVariableRegistryRequest(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#submitUpdateVariableRegistryRequest");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| body | VariableRegistryEntity | The variable registry configuration details. |
VariableRegistryUpdateRequestEntity
No authorization required
- Content-Type: application/json
- Accept: application/json
ProcessGroupEntity updateProcessGroup(id, body)
Updates a process group
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
ProcessGroupEntity body = new ProcessGroupEntity(); // ProcessGroupEntity | The process group configuration details.
try {
ProcessGroupEntity result = apiInstance.updateProcessGroup(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#updateProcessGroup");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| body | ProcessGroupEntity | The process group configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
VariableRegistryEntity updateVariableRegistry(id, body)
Updates the contents of a Process Group's variable Registry
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
VariableRegistryEntity body = new VariableRegistryEntity(); // VariableRegistryEntity | The variable registry configuration details.
try {
VariableRegistryEntity result = apiInstance.updateVariableRegistry(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#updateVariableRegistry");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| body | VariableRegistryEntity | The variable registry configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
ProcessGroupEntity uploadProcessGroup(id, body, body2, body3, body4, body5)
Uploads a versioned flow definition and creates a process group
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
String body = "body_example"; // String | The process group name.
Double body2 = 3.4D; // Double | The process group X position.
Double body3 = 3.4D; // Double | The process group Y position.
String body4 = "body_example"; // String | The client id.
Boolean body5 = true; // Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed.
try {
ProcessGroupEntity result = apiInstance.uploadProcessGroup(id, body, body2, body3, body4, body5);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#uploadProcessGroup");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| body | String | The process group name. | |
| body2 | Double | The process group X position. | |
| body3 | Double | The process group Y position. | |
| body4 | String | The client id. | |
| body5 | Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] |
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
TemplateEntity uploadTemplate(id, template, body)
Uploads a template
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ProcessgroupsApi;
ProcessgroupsApi apiInstance = new ProcessgroupsApi();
String id = "id_example"; // String | The process group id.
File template = new File("/path/to/file.txt"); // File | The binary content of the template file being uploaded.
Boolean body = true; // Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed.
try {
TemplateEntity result = apiInstance.uploadTemplate(id, template, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProcessgroupsApi#uploadTemplate");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The process group id. | |
| template | File | The binary content of the template file being uploaded. | |
| body | Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed. | [optional] |
No authorization required
- Content-Type: multipart/form-data
- Accept: application/xml