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