Skip to main content

HttpRecordSink

Description

Format and send Records to a configured uri using HTTP post. The Record Writer formats the records which are sent as the body of the HTTP post request. JsonRecordSetWriter is often used with this processor because many HTTP posts require a JSON body.

Tags

http, post, record, sink

Properties

In the list below required Properties are shown with an asterisk (*). Other properties are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

Display NameAPI NameDefault ValueAllowable ValuesDescription
API URL *API URLThe URL which receives the HTTP requests.

Supports Expression Language, using Environment variables.
Maximum Batch Size *Maximum Batch Size0Specifies the maximum number of records to send in the body of each HTTP request. Zero means the batch size is not limited, and all records are sent together in a single HTTP request.

Supports Expression Language, using Environment variables.
Record Writer *record-sink-record-writerController Service:
RecordSetWriterFactory

Implementations:
AvroRecordSetWriter
CSVRecordSetWriter
FreeFormTextRecordSetWriter
JsonRecordSetWriter
RecordSetWriterLookup
ScriptedRecordSetWriter
XMLRecordSetWriter
Specifies the Controller Service to use for writing out the records.
Web Service Client Provider *Web Service Client ProviderController Service:
WebClientServiceProvider

Implementations:
StandardWebClientServiceProvider
Controller service to provide the HTTP client for sending the HTTP requests.
OAuth2 Access Token ProviderOAuth2 Access Token ProviderController Service:
OAuth2AccessTokenProvider

Implementations:
StandardOauth2AccessTokenProvider
OAuth2 service that provides the access tokens for the HTTP requests.

State Management

This component does not store state.

Restricted

This component is not restricted.

System Resource Considerations

This component does not specify system resource considerations.

See Also