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 (string id)
Exports a template
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class ExportTemplateExample
{
public void main()
{
var apiInstance = new TemplatesApi();
var id = id_example; // string | The template id.
try
{
// Exports a template
string result = apiInstance.ExportTemplate(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TemplatesApi.ExportTemplate: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The template id. |
string
No authorization required
- Content-Type: /
- Accept: application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TemplateEntity RemoveTemplate (string id, bool? disconnectedNodeAcknowledged = null)
Deletes a template
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class RemoveTemplateExample
{
public void main()
{
var apiInstance = new TemplatesApi();
var id = id_example; // string | The template id.
var disconnectedNodeAcknowledged = true; // bool? | Acknowledges that this node is disconnected to allow for mutable requests to proceed. (optional) (default to false)
try
{
// Deletes a template
TemplateEntity result = apiInstance.RemoveTemplate(id, disconnectedNodeAcknowledged);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TemplatesApi.RemoveTemplate: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The template id. | |
disconnectedNodeAcknowledged | bool? | 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
[Back to top] [Back to API list] [Back to Model list] [Back to README]