datastreaming configuration protocol http consumers <service_name> content-type <content-type>

Prev Next

Specifies the content type for the HTTP receiver used in metadata streaming. The default content type is application/json.

Syntax

[no] datastreaming configuration protocol http consumers <service_name> content-type <content_type>

Parameters

no

Use the no form of this command to disable metadata streaming to the HTTP receiver.

<service_name>

The name of the service.

<content_type>

Specifies a content type for the HTTP receiver. There are three options for content-type:

  • application/json (This is the default)

  • application/x-ww-form-urlencoded

  • text/plain

Example

The following example specifies that the HTTP receiver accepts streamed metadata as application/JSON format:

hostname (config) # datastreaming configuration protocol http consumers cm7.saturn.example.com content-type application/json

The following example specifies that the HTTP receiver accepts streamed metadata as application/x-www-form-urlencoded:

hostname (config) # datastreaming configuration protocol http consumers cm7.saturn.example.com content-type /x-www-form-urlencoded

The following example specifies that the HTTP receiver accepts streamed metadata as text/plain format:

hostname (config) # datastreaming configuration protocol http consumers cm7.saturn.example.com content-type text/plain

The following example disables a content-type for the HTTP receiver:

hostname (config) # no datastreaming configuration protocol http consumers cm7.saturn.example.com content-type

User role

Admin or operator

Command mode

Config

Supported appliances

This command is supported on the following appliances running the specified releases or later:

  • Email Security — Server: Release 8.4.0.