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