Configuring the webhook v2 transport
The webhook v2 transport allows the probe to connect to a specified resource server and subscribe to receive events.
The transport also enables the probe to create a callback URL to which the target server or an
HTTP client can send notifications using POST
or GET
requests.
Webhook v2 transport properties
The following table describes the properties in the restWebhookTransportV2.properties file.
Property name |
Description |
---|---|
webhookURI |
Use this property to specify the path of the Web Hook URI on the local server into which the target device will POST notifications. This property can be set to a URL to specify the scheme (HTTP or HTTPS), port number, and path, for example:
or
If only the path is specified, the HTTP(s) server will bind to the local port number specified in the Port property of the message_bus.props file. Make sure the local port is free. If unset or empty, the probe will generate a path. By default this property is set to |
respondWithContent |
Use this property to specify whether the probe includes the HTTP body received from the client
HTTP request in the HTTP response. Set this property to The default is |
validateBodySyntax |
Use this property to specify that the probe performs a JSON and XML syntax format check on the HTTP request body. The default is |
validateRequestURI |
Use this property to specify whether the probe checks the URI paths. Set this property to
The default is |
idleTimeout |
Use this property to specify the time (in seconds) that the webhook allows an idle HTTP connection to remain open before it is closed. If set to The default is |
basicAuthenticationUsername |
Use this property to specify the basic authentication username that the probe should use in the authentication header to gain access to the target device. |
basicAuthenticationPassword |
Use this property to specify the password associated with the basic authentication username that the probe should use in the authentication header. |
httpConnectionPropertiesFile |
Use this property to specify the JSON file containing REST connection properties. The default is |
# Example Webhook Properties file
#webhookURI=OFF
#respondWithContent=OFF
#validateBodySyntax=ON
#validateRequestURI=ON
#idleTimeout=180
#serverBasicAuthenticationUsername=
#serverBasicAuthenticationPassword=
#httpConnectionPropertiesFile=$OMNIHOME/java/conf/restMultiChannelHttpTransport.json