Skip to content

callback/data-override

Replaces the default machine object sent as the callback request body.

Replaces the machine object that the callback plugin sends as the body of the request with the supplied value. This parameter is untyped, so any JSON value may be provided.

If the value is a string, it is run through the template rendering engine with the machine and endpoint info available, in the same manner as the Url and header fields of a callback action. The rendered string is JSON encoded unless the callback action sets RawBody to true, in which case the rendered string is sent verbatim.

If the value is not a string, it is JSON encoded and sent as the body.

Setting this parameter also forces secure parameter decoding for the machine object lookup performed by the action.

This parameter has no default on purpose. When it is absent the callback sends the machine object, and a default would make that behavior unreachable because the endpoint fills unsupplied action parameters from the parameter default.

Normally this parameter is passed as an argument to the callbackDo action. It may also be set on a machine or a profile, in which case the endpoint supplies it to every callbackDo action for that machine. Setting it in the plugin configuration has no effect.

Example, sending an empty body:

Bash
drpcli machines runaction Name:mach-07 callbackDo \
  callback/action postman-get-test \
  callback/data-override "{}"

Objects that Reference callback/data-override

Not used in current content packs

Objects used by callback/data-override

Not used in current content packs