swagger_client.TemplatesApi
All URIs are relative to http://localhost/nifi-api
Method | HTTP request | Description |
---|---|---|
export_template | GET /templates/{id}/download | Exports a template |
remove_template | DELETE /templates/{id} | Deletes a template |
export_template
str export_template(id)
Exports a template
Example
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.TemplatesApi()
id = 'id_example' # str | The template id.
try:
# Exports a template
api_response = api_instance.export_template(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling TemplatesApi->export_template: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
id | str | The template id. |
Return type
str
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]
remove_template
TemplateEntity remove_template(id)
Deletes a template
Example
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.TemplatesApi()
id = 'id_example' # str | The template id.
try:
# Deletes a template
api_response = api_instance.remove_template(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling TemplatesApi->remove_template: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
id | str | The template id. |
Return type
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]