swagger_client.ReportingtasksApi

All URIs are relative to http://localhost/nifi-api

Method HTTP request Description
clear_state POST /reporting-tasks/{id}/state/clear-requests Clears the state for a reporting task
get_property_descriptor GET /reporting-tasks/{id}/descriptors Gets a reporting task property descriptor
get_reporting_task GET /reporting-tasks/{id} Gets a reporting task
get_state GET /reporting-tasks/{id}/state Gets the state for a reporting task
remove_reporting_task DELETE /reporting-tasks/{id} Deletes a reporting task
update_reporting_task PUT /reporting-tasks/{id} Updates a reporting task

clear_state

ComponentStateEntity clear_state(id)

Clears the state for a reporting task

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.ReportingtasksApi()
id = 'id_example' # str | The reporting task id.

try: 
    # Clears the state for a reporting task
    api_response = api_instance.clear_state(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportingtasksApi->clear_state: %s\n" % e)

Parameters

Name Type Description Notes
id str The reporting task id.

Return type

ComponentStateEntity

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]

get_property_descriptor

PropertyDescriptorEntity get_property_descriptor(id, property_name)

Gets a reporting task property descriptor

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.ReportingtasksApi()
id = 'id_example' # str | The reporting task id.
property_name = 'property_name_example' # str | The property name.

try: 
    # Gets a reporting task property descriptor
    api_response = api_instance.get_property_descriptor(id, property_name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportingtasksApi->get_property_descriptor: %s\n" % e)

Parameters

Name Type Description Notes
id str The reporting task id.
property_name str The property name.

Return type

PropertyDescriptorEntity

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]

get_reporting_task

ReportingTaskEntity get_reporting_task(id)

Gets a reporting task

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.ReportingtasksApi()
id = 'id_example' # str | The reporting task id.

try: 
    # Gets a reporting task
    api_response = api_instance.get_reporting_task(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportingtasksApi->get_reporting_task: %s\n" % e)

Parameters

Name Type Description Notes
id str The reporting task id.

Return type

ReportingTaskEntity

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]

get_state

ComponentStateEntity get_state(id)

Gets the state for a reporting task

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.ReportingtasksApi()
id = 'id_example' # str | The reporting task id.

try: 
    # Gets the state for a reporting task
    api_response = api_instance.get_state(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportingtasksApi->get_state: %s\n" % e)

Parameters

Name Type Description Notes
id str The reporting task id.

Return type

ComponentStateEntity

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]

remove_reporting_task

ReportingTaskEntity remove_reporting_task(id, version=version, client_id=client_id)

Deletes a reporting task

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.ReportingtasksApi()
id = 'id_example' # str | The reporting task id.
version = 'version_example' # str | The revision is used to verify the client is working with the latest version of the flow. (optional)
client_id = 'client_id_example' # str | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. (optional)

try: 
    # Deletes a reporting task
    api_response = api_instance.remove_reporting_task(id, version=version, client_id=client_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportingtasksApi->remove_reporting_task: %s\n" % e)

Parameters

Name Type Description Notes
id str The reporting task id.
version str The revision is used to verify the client is working with the latest version of the flow. [optional]
client_id str If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. [optional]

Return type

ReportingTaskEntity

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]

update_reporting_task

ReportingTaskEntity update_reporting_task(id, body)

Updates a reporting task

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.ReportingtasksApi()
id = 'id_example' # str | The reporting task id.
body = swagger_client.ReportingTaskEntity() # ReportingTaskEntity | The reporting task configuration details.

try: 
    # Updates a reporting task
    api_response = api_instance.update_reporting_task(id, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReportingtasksApi->update_reporting_task: %s\n" % e)

Parameters

Name Type Description Notes
id str The reporting task id.
body ReportingTaskEntity The reporting task configuration details.

Return type

ReportingTaskEntity

Authorization

No authorization required

HTTP request headers

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

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