All URIs are relative to http://localhost/nifi-api
| Method | HTTP request | Description |
|---|---|---|
| deleteConnection | DELETE /connections/{id} | Deletes a connection |
| getConnection | GET /connections/{id} | Gets a connection |
| updateConnection | PUT /connections/{id} | Updates a connection |
ConnectionEntity deleteConnection(id, version, clientId, disconnectedNodeAcknowledged)
Deletes a connection
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ConnectionsApi;
ConnectionsApi apiInstance = new ConnectionsApi();
String id = "id_example"; // String | The connection 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 {
ConnectionEntity result = apiInstance.deleteConnection(id, version, clientId, disconnectedNodeAcknowledged);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ConnectionsApi#deleteConnection");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The connection 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
ConnectionEntity getConnection(id)
Gets a connection
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ConnectionsApi;
ConnectionsApi apiInstance = new ConnectionsApi();
String id = "id_example"; // String | The connection id.
try {
ConnectionEntity result = apiInstance.getConnection(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ConnectionsApi#getConnection");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The connection id. |
No authorization required
- Content-Type: /
- Accept: application/json
ConnectionEntity updateConnection(id, body)
Updates a connection
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ConnectionsApi;
ConnectionsApi apiInstance = new ConnectionsApi();
String id = "id_example"; // String | The connection id.
ConnectionEntity body = new ConnectionEntity(); // ConnectionEntity | The connection configuration details.
try {
ConnectionEntity result = apiInstance.updateConnection(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ConnectionsApi#updateConnection");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The connection id. | |
| body | ConnectionEntity | The connection configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json