Skip to content

Latest commit

 

History

History
130 lines (98 loc) · 3.41 KB

TemplatesApi.md

File metadata and controls

130 lines (98 loc) · 3.41 KB

IO.Swagger.Api.TemplatesApi

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

ExportTemplate

string ExportTemplate (string id)

Exports a template

Example

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 );
            }
        }
    }
}

Parameters

Name Type Description Notes
id string The template id.

Return type

string

Authorization

No authorization required

HTTP request headers

  • Content-Type: /
  • Accept: application/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

RemoveTemplate

TemplateEntity RemoveTemplate (string id, bool? disconnectedNodeAcknowledged = null)

Deletes a template

Example

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 );
            }
        }
    }
}

Parameters

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]

Return type

TemplateEntity

Authorization

No authorization required

HTTP request headers

  • Content-Type: /
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]