All URIs are relative to http://localhost/nifi-api
Method | HTTP request | Description |
---|---|---|
createControllerService | POST /controller/controller-services | Creates a new controller service |
createReportingTask | POST /controller/reporting-tasks | Creates a new reporting task |
deleteHistory | DELETE /controller/history | Purges history |
deleteNode | DELETE /controller/cluster/nodes/{id} | Removes a node from the cluster |
getCluster | GET /controller/cluster | Gets the contents of the cluster |
getControllerConfig | GET /controller/config | Retrieves the configuration for this NiFi Controller |
getNode | GET /controller/cluster/nodes/{id} | Gets a node in the cluster |
updateControllerConfig | PUT /controller/config | Retrieves the configuration for this NiFi |
updateNode | PUT /controller/cluster/nodes/{id} | Updates a node in the cluster |
ControllerServiceEntity createControllerService(body)
Creates a new controller service
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ControllerApi;
ControllerApi apiInstance = new ControllerApi();
ControllerServiceEntity body = new ControllerServiceEntity(); // ControllerServiceEntity | The controller service configuration details.
try {
ControllerServiceEntity result = apiInstance.createControllerService(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ControllerApi#createControllerService");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ControllerServiceEntity | The controller service configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
ReportingTaskEntity createReportingTask(body)
Creates a new reporting task
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ControllerApi;
ControllerApi apiInstance = new ControllerApi();
ReportingTaskEntity body = new ReportingTaskEntity(); // ReportingTaskEntity | The reporting task configuration details.
try {
ReportingTaskEntity result = apiInstance.createReportingTask(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ControllerApi#createReportingTask");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ReportingTaskEntity | The reporting task configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
HistoryEntity deleteHistory(endDate)
Purges history
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ControllerApi;
ControllerApi apiInstance = new ControllerApi();
String endDate = "endDate_example"; // String | Purge actions before this date/time.
try {
HistoryEntity result = apiInstance.deleteHistory(endDate);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ControllerApi#deleteHistory");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
endDate | String | Purge actions before this date/time. |
No authorization required
- Content-Type: /
- Accept: application/json
NodeEntity deleteNode(id)
Removes a node from the cluster
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ControllerApi;
ControllerApi apiInstance = new ControllerApi();
String id = "id_example"; // String | The node id.
try {
NodeEntity result = apiInstance.deleteNode(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ControllerApi#deleteNode");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | The node id. |
No authorization required
- Content-Type: /
- Accept: application/json
ClusterEntity getCluster()
Gets the contents of the cluster
Returns the contents of the cluster including all nodes and their status.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ControllerApi;
ControllerApi apiInstance = new ControllerApi();
try {
ClusterEntity result = apiInstance.getCluster();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ControllerApi#getCluster");
e.printStackTrace();
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: /
- Accept: application/json
ControllerConfigurationEntity getControllerConfig()
Retrieves the configuration for this NiFi Controller
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ControllerApi;
ControllerApi apiInstance = new ControllerApi();
try {
ControllerConfigurationEntity result = apiInstance.getControllerConfig();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ControllerApi#getControllerConfig");
e.printStackTrace();
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: /
- Accept: application/json
NodeEntity getNode(id)
Gets a node in the cluster
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ControllerApi;
ControllerApi apiInstance = new ControllerApi();
String id = "id_example"; // String | The node id.
try {
NodeEntity result = apiInstance.getNode(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ControllerApi#getNode");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | The node id. |
No authorization required
- Content-Type: /
- Accept: application/json
ControllerConfigurationEntity updateControllerConfig(body)
Retrieves the configuration for this NiFi
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ControllerApi;
ControllerApi apiInstance = new ControllerApi();
ControllerConfigurationEntity body = new ControllerConfigurationEntity(); // ControllerConfigurationEntity | The controller configuration.
try {
ControllerConfigurationEntity result = apiInstance.updateControllerConfig(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ControllerApi#updateControllerConfig");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ControllerConfigurationEntity | The controller configuration. |
No authorization required
- Content-Type: application/json
- Accept: application/json
NodeEntity updateNode(id, body)
Updates a node in the cluster
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ControllerApi;
ControllerApi apiInstance = new ControllerApi();
String id = "id_example"; // String | The node id.
NodeEntity body = new NodeEntity(); // NodeEntity | The node configuration. The only configuration that will be honored at this endpoint is the status or primary flag.
try {
NodeEntity result = apiInstance.updateNode(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ControllerApi#updateNode");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | The node id. | |
body | NodeEntity | The node configuration. The only configuration that will be honored at this endpoint is the status or primary flag. |
No authorization required
- Content-Type: application/json
- Accept: application/json