Skip to content

Latest commit

 

History

History
536 lines (370 loc) · 17.1 KB

ReportingtasksApi.md

File metadata and controls

536 lines (370 loc) · 17.1 KB

ReportingtasksApi

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

Method HTTP request Description
analyzeConfiguration POST /reporting-tasks/{id}/config/analysis Performs analysis of the component's configuration, providing information about which attributes are referenced.
clearState POST /reporting-tasks/{id}/state/clear-requests Clears the state for a reporting task
deleteVerificationRequest DELETE /reporting-tasks/{id}/config/verification-requests/{requestId} Deletes the Verification Request with the given ID
getPropertyDescriptor GET /reporting-tasks/{id}/descriptors Gets a reporting task property descriptor
getReportingTask GET /reporting-tasks/{id} Gets a reporting task
getState GET /reporting-tasks/{id}/state Gets the state for a reporting task
getVerificationRequest GET /reporting-tasks/{id}/config/verification-requests/{requestId} Returns the Verification Request with the given ID
removeReportingTask DELETE /reporting-tasks/{id} Deletes a reporting task
submitConfigVerificationRequest POST /reporting-tasks/{id}/config/verification-requests Performs verification of the Reporting Task's configuration
updateReportingTask PUT /reporting-tasks/{id} Updates a reporting task
updateRunStatus PUT /reporting-tasks/{id}/run-status Updates run status of a reporting task

analyzeConfiguration

ConfigurationAnalysisEntity analyzeConfiguration(id, body)

Performs analysis of the component's configuration, providing information about which attributes are referenced.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ReportingtasksApi;


ReportingtasksApi apiInstance = new ReportingtasksApi();
String id = "id_example"; // String | The reporting task id.
ConfigurationAnalysisEntity body = new ConfigurationAnalysisEntity(); // ConfigurationAnalysisEntity | The configuration analysis request.
try {
    ConfigurationAnalysisEntity result = apiInstance.analyzeConfiguration(id, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ReportingtasksApi#analyzeConfiguration");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The reporting task id.
body ConfigurationAnalysisEntity The configuration analysis request.

Return type

ConfigurationAnalysisEntity

Authorization

No authorization required

HTTP request headers

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

clearState

ComponentStateEntity clearState(id)

Clears the state for a reporting task

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ReportingtasksApi;


ReportingtasksApi apiInstance = new ReportingtasksApi();
String id = "id_example"; // String | The reporting task id.
try {
    ComponentStateEntity result = apiInstance.clearState(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ReportingtasksApi#clearState");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The reporting task id.

Return type

ComponentStateEntity

Authorization

No authorization required

HTTP request headers

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

deleteVerificationRequest

VerifyConfigRequestEntity deleteVerificationRequest(id, requestId)

Deletes the Verification Request with the given ID

Deletes the Verification Request with the given ID. After a request is created, it is expected that the client will properly clean up the request by DELETE'ing it, once the Verification process has completed. If the request is deleted before the request completes, then the Verification request will finish the step that it is currently performing and then will cancel any subsequent steps.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ReportingtasksApi;


ReportingtasksApi apiInstance = new ReportingtasksApi();
String id = "id_example"; // String | The ID of the Reporting Task
String requestId = "requestId_example"; // String | The ID of the Verification Request
try {
    VerifyConfigRequestEntity result = apiInstance.deleteVerificationRequest(id, requestId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ReportingtasksApi#deleteVerificationRequest");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The ID of the Reporting Task
requestId String The ID of the Verification Request

Return type

VerifyConfigRequestEntity

Authorization

No authorization required

HTTP request headers

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

getPropertyDescriptor

PropertyDescriptorEntity getPropertyDescriptor(id, propertyName, sensitive)

Gets a reporting task property descriptor

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ReportingtasksApi;


ReportingtasksApi apiInstance = new ReportingtasksApi();
String id = "id_example"; // String | The reporting task id.
String propertyName = "propertyName_example"; // String | The property name.
Boolean sensitive = false; // Boolean | Property Descriptor requested sensitive status
try {
    PropertyDescriptorEntity result = apiInstance.getPropertyDescriptor(id, propertyName, sensitive);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ReportingtasksApi#getPropertyDescriptor");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The reporting task id.
propertyName String The property name.
sensitive Boolean Property Descriptor requested sensitive status [optional] [default to false]

Return type

PropertyDescriptorEntity

Authorization

No authorization required

HTTP request headers

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

getReportingTask

ReportingTaskEntity getReportingTask(id)

Gets a reporting task

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ReportingtasksApi;


ReportingtasksApi apiInstance = new ReportingtasksApi();
String id = "id_example"; // String | The reporting task id.
try {
    ReportingTaskEntity result = apiInstance.getReportingTask(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ReportingtasksApi#getReportingTask");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The reporting task id.

Return type

ReportingTaskEntity

Authorization

No authorization required

HTTP request headers

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

getState

ComponentStateEntity getState(id)

Gets the state for a reporting task

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ReportingtasksApi;


ReportingtasksApi apiInstance = new ReportingtasksApi();
String id = "id_example"; // String | The reporting task id.
try {
    ComponentStateEntity result = apiInstance.getState(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ReportingtasksApi#getState");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The reporting task id.

Return type

ComponentStateEntity

Authorization

No authorization required

HTTP request headers

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

getVerificationRequest

VerifyConfigRequestEntity getVerificationRequest(id, requestId)

Returns the Verification Request with the given ID

Returns the Verification Request with the given ID. Once an Verification Request has been created, that request can subsequently be retrieved via this endpoint, and the request that is fetched will contain the updated state, such as percent complete, the current state of the request, and any failures.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ReportingtasksApi;


ReportingtasksApi apiInstance = new ReportingtasksApi();
String id = "id_example"; // String | The ID of the Reporting Task
String requestId = "requestId_example"; // String | The ID of the Verification Request
try {
    VerifyConfigRequestEntity result = apiInstance.getVerificationRequest(id, requestId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ReportingtasksApi#getVerificationRequest");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The ID of the Reporting Task
requestId String The ID of the Verification Request

Return type

VerifyConfigRequestEntity

Authorization

No authorization required

HTTP request headers

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

removeReportingTask

ReportingTaskEntity removeReportingTask(id, version, clientId, disconnectedNodeAcknowledged)

Deletes a reporting task

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ReportingtasksApi;


ReportingtasksApi apiInstance = new ReportingtasksApi();
String id = "id_example"; // String | The reporting task id.
String version = "version_example"; // String | The revision is used to verify the client is working with the latest version of the flow.
String clientId = "clientId_example"; // String | If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.
Boolean disconnectedNodeAcknowledged = false; // Boolean | Acknowledges that this node is disconnected to allow for mutable requests to proceed.
try {
    ReportingTaskEntity result = apiInstance.removeReportingTask(id, version, clientId, disconnectedNodeAcknowledged);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ReportingtasksApi#removeReportingTask");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The reporting task id.
version String The revision is used to verify the client is working with the latest version of the flow. [optional]
clientId String If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. [optional]
disconnectedNodeAcknowledged Boolean Acknowledges that this node is disconnected to allow for mutable requests to proceed. [optional] [default to false]

Return type

ReportingTaskEntity

Authorization

No authorization required

HTTP request headers

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

submitConfigVerificationRequest

VerifyConfigRequestEntity submitConfigVerificationRequest(id, body)

Performs verification of the Reporting Task's configuration

This will initiate the process of verifying a given Reporting Task configuration. This may be a long-running task. As a result, this endpoint will immediately return a ReportingTaskConfigVerificationRequestEntity, and the process of performing the verification will occur asynchronously in the background. The client may then periodically poll the status of the request by issuing a GET request to /reporting-tasks/{taskId}/verification-requests/{requestId}. Once the request is completed, the client is expected to issue a DELETE request to /reporting-tasks/{serviceId}/verification-requests/{requestId}.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ReportingtasksApi;


ReportingtasksApi apiInstance = new ReportingtasksApi();
String id = "id_example"; // String | The reporting task id.
VerifyConfigRequestEntity body = new VerifyConfigRequestEntity(); // VerifyConfigRequestEntity | The reporting task configuration verification request.
try {
    VerifyConfigRequestEntity result = apiInstance.submitConfigVerificationRequest(id, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ReportingtasksApi#submitConfigVerificationRequest");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The reporting task id.
body VerifyConfigRequestEntity The reporting task configuration verification request.

Return type

VerifyConfigRequestEntity

Authorization

No authorization required

HTTP request headers

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

updateReportingTask

ReportingTaskEntity updateReportingTask(id, body)

Updates a reporting task

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ReportingtasksApi;


ReportingtasksApi apiInstance = new ReportingtasksApi();
String id = "id_example"; // String | The reporting task id.
ReportingTaskEntity body = new ReportingTaskEntity(); // ReportingTaskEntity | The reporting task configuration details.
try {
    ReportingTaskEntity result = apiInstance.updateReportingTask(id, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ReportingtasksApi#updateReportingTask");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String 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

updateRunStatus

ReportingTaskEntity updateRunStatus(id, body)

Updates run status of a reporting task

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ReportingtasksApi;


ReportingtasksApi apiInstance = new ReportingtasksApi();
String id = "id_example"; // String | The reporting task id.
ReportingTaskRunStatusEntity body = new ReportingTaskRunStatusEntity(); // ReportingTaskRunStatusEntity | The reporting task run status.
try {
    ReportingTaskEntity result = apiInstance.updateRunStatus(id, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ReportingtasksApi#updateRunStatus");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The reporting task id.
body ReportingTaskRunStatusEntity The reporting task run status.

Return type

ReportingTaskEntity

Authorization

No authorization required

HTTP request headers

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