Skip to content
This repository has been archived by the owner on May 17, 2018. It is now read-only.

Latest commit

 

History

History
152 lines (103 loc) · 4.11 KB

ConnectionsApi.md

File metadata and controls

152 lines (103 loc) · 4.11 KB

ConnectionsApi

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

Method HTTP request Description
deleteConnection DELETE /connections/{id} Deletes a connection
getConnection GET /connections/{id} Gets a connection
updateConnection PUT /connections/{id} Updates a connection

deleteConnection

ConnectionEntity deleteConnection(id, version, clientId)

Deletes a connection

Example

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


ConnectionsApi apiInstance = new ConnectionsApi();
String id = "id_example"; // String | The connection 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.
try {
    ConnectionEntity result = apiInstance.deleteConnection(id, version, clientId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ConnectionsApi#deleteConnection");
    e.printStackTrace();
}

Parameters

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

Return type

ConnectionEntity

Authorization

No authorization required

HTTP request headers

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

getConnection

ConnectionEntity getConnection(id)

Gets a connection

Example

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


ConnectionsApi apiInstance = new ConnectionsApi();
String id = "id_example"; // String | The connection id.
try {
    ConnectionEntity result = apiInstance.getConnection(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ConnectionsApi#getConnection");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The connection id.

Return type

ConnectionEntity

Authorization

No authorization required

HTTP request headers

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

updateConnection

ConnectionEntity updateConnection(id, body)

Updates a connection

Example

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


ConnectionsApi apiInstance = new ConnectionsApi();
String id = "id_example"; // String | The connection id.
ConnectionEntity body = new ConnectionEntity(); // ConnectionEntity | The connection configuration details.
try {
    ConnectionEntity result = apiInstance.updateConnection(id, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ConnectionsApi#updateConnection");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id String The connection id.
body ConnectionEntity The connection configuration details.

Return type

ConnectionEntity

Authorization

No authorization required

HTTP request headers

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