All URIs are relative to http://localhost/nifi-api
| Method | HTTP request | Description |
|---|---|---|
| exportTemplate | GET /templates/{id}/download | Exports a template |
| removeTemplate | DELETE /templates/{id} | Deletes a template |
String exportTemplate(id)
Exports a template
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.TemplatesApi;
TemplatesApi apiInstance = new TemplatesApi();
String id = "id_example"; // String | The template id.
try {
String result = apiInstance.exportTemplate(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#exportTemplate");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The template id. |
String
No authorization required
- Content-Type: /
- Accept: application/xml
TemplateEntity removeTemplate(id, disconnectedNodeAcknowledged)
Deletes a template
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.TemplatesApi;
TemplatesApi apiInstance = new TemplatesApi();
String id = "id_example"; // String | The template id.
Boolean disconnectedNodeAcknowledged = false; // Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed.
try {
TemplateEntity result = apiInstance.removeTemplate(id, disconnectedNodeAcknowledged);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TemplatesApi#removeTemplate");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | The template id. | |
| 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