All URIs are relative to http://localhost/nifi-api
Method | HTTP request | Description |
---|---|---|
clearState | POST /controller-services/{id}/state/clear-requests | Clears the state for a controller service |
getControllerService | GET /controller-services/{id} | Gets a controller service |
getControllerServiceReferences | GET /controller-services/{id}/references | Gets a controller service |
getPropertyDescriptor | GET /controller-services/{id}/descriptors | Gets a controller service property descriptor |
getState | GET /controller-services/{id}/state | Gets the state for a controller service |
removeControllerService | DELETE /controller-services/{id} | Deletes a controller service |
updateControllerService | PUT /controller-services/{id} | Updates a controller service |
updateControllerServiceReferences | PUT /controller-services/{id}/references | Updates a controller services references |
ComponentStateDTO clearState(id)
Clears the state for a controller service
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ControllerservicesApi;
ControllerservicesApi apiInstance = new ControllerservicesApi();
String id = "id_example"; // String | The controller service id.
try {
ComponentStateDTO result = apiInstance.clearState(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ControllerservicesApi#clearState");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | The controller service id. |
No authorization required
- Content-Type: /
- Accept: application/json
ControllerServiceEntity getControllerService(id)
Gets a controller service
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ControllerservicesApi;
ControllerservicesApi apiInstance = new ControllerservicesApi();
String id = "id_example"; // String | The controller service id.
try {
ControllerServiceEntity result = apiInstance.getControllerService(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ControllerservicesApi#getControllerService");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | The controller service id. |
No authorization required
- Content-Type: /
- Accept: application/json
ControllerServiceEntity getControllerServiceReferences(id)
Gets a controller service
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ControllerservicesApi;
ControllerservicesApi apiInstance = new ControllerservicesApi();
String id = "id_example"; // String | The controller service id.
try {
ControllerServiceEntity result = apiInstance.getControllerServiceReferences(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ControllerservicesApi#getControllerServiceReferences");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | The controller service id. |
No authorization required
- Content-Type: /
- Accept: application/json
PropertyDescriptorEntity getPropertyDescriptor(id, propertyName)
Gets a controller service property descriptor
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ControllerservicesApi;
ControllerservicesApi apiInstance = new ControllerservicesApi();
String id = "id_example"; // String | The controller service id.
String propertyName = "propertyName_example"; // String | The property name to return the descriptor for.
try {
PropertyDescriptorEntity result = apiInstance.getPropertyDescriptor(id, propertyName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ControllerservicesApi#getPropertyDescriptor");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | The controller service id. | |
propertyName | String | The property name to return the descriptor for. |
No authorization required
- Content-Type: /
- Accept: application/json
ComponentStateDTO getState(id)
Gets the state for a controller service
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ControllerservicesApi;
ControllerservicesApi apiInstance = new ControllerservicesApi();
String id = "id_example"; // String | The controller service id.
try {
ComponentStateDTO result = apiInstance.getState(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ControllerservicesApi#getState");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | The controller service id. |
No authorization required
- Content-Type: /
- Accept: application/json
ControllerServiceEntity removeControllerService(id, version, clientId)
Deletes a controller service
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ControllerservicesApi;
ControllerservicesApi apiInstance = new ControllerservicesApi();
String id = "id_example"; // String | The controller service 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 {
ControllerServiceEntity result = apiInstance.removeControllerService(id, version, clientId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ControllerservicesApi#removeControllerService");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | The controller service 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
ControllerServiceEntity updateControllerService(id, body)
Updates a controller service
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ControllerservicesApi;
ControllerservicesApi apiInstance = new ControllerservicesApi();
String id = "id_example"; // String | The controller service id.
ControllerServiceEntity body = new ControllerServiceEntity(); // ControllerServiceEntity | The controller service configuration details.
try {
ControllerServiceEntity result = apiInstance.updateControllerService(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ControllerservicesApi#updateControllerService");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | The controller service id. | |
body | ControllerServiceEntity | The controller service configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
ControllerServiceReferencingComponentsEntity updateControllerServiceReferences(id, body)
Updates a controller services references
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ControllerservicesApi;
ControllerservicesApi apiInstance = new ControllerservicesApi();
String id = "id_example"; // String | The controller service id.
UpdateControllerServiceReferenceRequestEntity body = new UpdateControllerServiceReferenceRequestEntity(); // UpdateControllerServiceReferenceRequestEntity | The controller service request update request.
try {
ControllerServiceReferencingComponentsEntity result = apiInstance.updateControllerServiceReferences(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ControllerservicesApi#updateControllerServiceReferences");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | The controller service id. | |
body | UpdateControllerServiceReferenceRequestEntity | The controller service request update request. |
ControllerServiceReferencingComponentsEntity
No authorization required
- Content-Type: application/json
- Accept: application/json