Skip to content

Latest commit

 

History

History
334 lines (228 loc) · 9.29 KB

ProvenanceApi.md

File metadata and controls

334 lines (228 loc) · 9.29 KB

ProvenanceApi

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

Method HTTP request Description
deleteLineage DELETE /provenance/lineage/{id} Deletes a lineage query
deleteProvenance DELETE /provenance/{id} Deletes a provenance query
getLineage GET /provenance/lineage/{id} Gets a lineage query
getProvenance GET /provenance/{id} Gets a provenance query
getSearchOptions GET /provenance/search-options Gets the searchable attributes for provenance events
submitLineageRequest POST /provenance/lineage Submits a lineage query
submitProvenanceRequest POST /provenance Submits a provenance query

deleteLineage

LineageEntity deleteLineage(id, clusterNodeId)

Deletes a lineage query

Example

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


ProvenanceApi apiInstance = new ProvenanceApi();
String id = "id_example"; // String | The id of the lineage query.
String clusterNodeId = "clusterNodeId_example"; // String | The id of the node where this query exists if clustered.
try {
    LineageEntity result = apiInstance.deleteLineage(id, clusterNodeId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ProvenanceApi#deleteLineage");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The id of the lineage query.
clusterNodeId String The id of the node where this query exists if clustered. [optional]

Return type

LineageEntity

Authorization

No authorization required

HTTP request headers

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

deleteProvenance

ProvenanceEntity deleteProvenance(id, clusterNodeId)

Deletes a provenance query

Example

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


ProvenanceApi apiInstance = new ProvenanceApi();
String id = "id_example"; // String | The id of the provenance query.
String clusterNodeId = "clusterNodeId_example"; // String | The id of the node where this query exists if clustered.
try {
    ProvenanceEntity result = apiInstance.deleteProvenance(id, clusterNodeId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ProvenanceApi#deleteProvenance");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The id of the provenance query.
clusterNodeId String The id of the node where this query exists if clustered. [optional]

Return type

ProvenanceEntity

Authorization

No authorization required

HTTP request headers

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

getLineage

LineageEntity getLineage(id, clusterNodeId)

Gets a lineage query

Example

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


ProvenanceApi apiInstance = new ProvenanceApi();
String id = "id_example"; // String | The id of the lineage query.
String clusterNodeId = "clusterNodeId_example"; // String | The id of the node where this query exists if clustered.
try {
    LineageEntity result = apiInstance.getLineage(id, clusterNodeId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ProvenanceApi#getLineage");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The id of the lineage query.
clusterNodeId String The id of the node where this query exists if clustered. [optional]

Return type

LineageEntity

Authorization

No authorization required

HTTP request headers

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

getProvenance

ProvenanceEntity getProvenance(id, clusterNodeId)

Gets a provenance query

Example

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


ProvenanceApi apiInstance = new ProvenanceApi();
String id = "id_example"; // String | The id of the provenance query.
String clusterNodeId = "clusterNodeId_example"; // String | The id of the node where this query exists if clustered.
try {
    ProvenanceEntity result = apiInstance.getProvenance(id, clusterNodeId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ProvenanceApi#getProvenance");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The id of the provenance query.
clusterNodeId String The id of the node where this query exists if clustered. [optional]

Return type

ProvenanceEntity

Authorization

No authorization required

HTTP request headers

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

getSearchOptions

ProvenanceOptionsEntity getSearchOptions()

Gets the searchable attributes for provenance events

Example

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


ProvenanceApi apiInstance = new ProvenanceApi();
try {
    ProvenanceOptionsEntity result = apiInstance.getSearchOptions();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ProvenanceApi#getSearchOptions");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

ProvenanceOptionsEntity

Authorization

No authorization required

HTTP request headers

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

submitLineageRequest

LineageEntity submitLineageRequest(body)

Submits a lineage query

Lineage queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the lineage request should be deleted by the client who originally submitted it.

Example

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


ProvenanceApi apiInstance = new ProvenanceApi();
LineageEntity body = new LineageEntity(); // LineageEntity | The lineage query details.
try {
    LineageEntity result = apiInstance.submitLineageRequest(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ProvenanceApi#submitLineageRequest");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body LineageEntity The lineage query details.

Return type

LineageEntity

Authorization

No authorization required

HTTP request headers

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

submitProvenanceRequest

ProvenanceEntity submitProvenanceRequest(body)

Submits a provenance query

Provenance queries may be long running so this endpoint submits a request. The response will include the current state of the query. If the request is not completed the URI in the response can be used at a later time to get the updated state of the query. Once the query has completed the provenance request should be deleted by the client who originally submitted it.

Example

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


ProvenanceApi apiInstance = new ProvenanceApi();
ProvenanceEntity body = new ProvenanceEntity(); // ProvenanceEntity | The provenance query details.
try {
    ProvenanceEntity result = apiInstance.submitProvenanceRequest(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ProvenanceApi#submitProvenanceRequest");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body ProvenanceEntity The provenance query details.

Return type

ProvenanceEntity

Authorization

No authorization required

HTTP request headers

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