Apache NiFi REST API

REST API definition for Apache NiFi web services

OpenAPI spec version: 2.7.2 Contact: dev@nifi.apache.org Generated by: https://github.com/swagger-api/swagger-codegen.git

class nipyapi.nifi.apis.connections_api.ConnectionsApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

__init__(api_client=None)[source]
delete_connection(id, **kwargs)[source]

Deletes a connection. This method makes a synchronous HTTP request and returns the response data directly.

For full HTTP response details (status code, headers, etc.), use the corresponding delete_connection_with_http_info() method instead.

Parameters:
  • id (str) – The connection id. (required)

  • version (LongParameter) – The revision is used to verify the client is working with the latest version of the flow.

  • client_id (ClientIdParameter) – If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.

  • disconnected_node_acknowledged (bool) – Acknowledges that this node is disconnected to allow for mutable requests to proceed.

Returns:

The response data.

Return type:

ConnectionEntity

delete_connection_with_http_info(id, **kwargs)[source]

Deletes a connection. This method makes a synchronous HTTP request and returns detailed response information.

Returns the response data along with HTTP status code, headers, and other metadata. For just the response data, use the corresponding delete_connection() method instead.

Parameters:
  • id (str) – The connection id. (required)

  • version (LongParameter) – The revision is used to verify the client is working with the latest version of the flow.

  • client_id (ClientIdParameter) – If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.

  • disconnected_node_acknowledged (bool) – Acknowledges that this node is disconnected to allow for mutable requests to proceed.

Returns:

(ConnectionEntity, status_code, headers) - Response data with HTTP details.

Return type:

tuple

get_connection(id, **kwargs)[source]

Gets a connection. This method makes a synchronous HTTP request and returns the response data directly.

For full HTTP response details (status code, headers, etc.), use the corresponding get_connection_with_http_info() method instead.

Parameters:

id (str) – The connection id. (required)

Returns:

The response data.

Return type:

ConnectionEntity

get_connection_with_http_info(id, **kwargs)[source]

Gets a connection. This method makes a synchronous HTTP request and returns detailed response information.

Returns the response data along with HTTP status code, headers, and other metadata. For just the response data, use the corresponding get_connection() method instead.

Parameters:

id (str) – The connection id. (required)

Returns:

(ConnectionEntity, status_code, headers) - Response data with HTTP details.

Return type:

tuple

update_connection(body, id, **kwargs)[source]

Updates a connection. This method makes a synchronous HTTP request and returns the response data directly.

For full HTTP response details (status code, headers, etc.), use the corresponding update_connection_with_http_info() method instead.

Parameters:
  • body (ConnectionEntity) – The connection configuration details. (required)

  • id (str) – The connection id. (required)

Returns:

The response data.

Return type:

ConnectionEntity

update_connection_with_http_info(body, id, **kwargs)[source]

Updates a connection. This method makes a synchronous HTTP request and returns detailed response information.

Returns the response data along with HTTP status code, headers, and other metadata. For just the response data, use the corresponding update_connection() method instead.

Parameters:
  • body (ConnectionEntity) – The connection configuration details. (required)

  • id (str) – The connection id. (required)

Returns:

(ConnectionEntity, status_code, headers) - Response data with HTTP details.

Return type:

tuple