Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A webhook integration allows you to send BloxOne notifications to a designated application by using a unique URL. When setting up your webhook service, you can choose to use the default webhook template or construct a custom template for a specific payload for your webhook notification.  

...

No Format
Customer: {{ .customer_name}} 
Application: {{ .application_name}} 
Message: {{ .message}}

You define values for customer_name and application_name in the Webhook Context field. Note that Message is an Infoblox-defined field.

The following is an example of how to use the actionable_redirect_action and actionable_redirect_label keys:

No Format
{{if $url:=.actionable_redirect_action}}
ActionableRedirectUrl: {{$url}}
{{if $text:=.actionable_redirect_label}}
ActionableRedirectText: {{$text}}
{{else}}ActionableRedirectText: {{$url}}  {{end}}
{{end}}

For more information about the default template and supported keys, see Default Webhook Template and Supported Keys.

You can also use the BloxOne API to create a custom template. For more information about using the notification APIs, see BloxOne Cloud > Notifications config in 
https://csp.infoblox.com/apidoc.

...

No Format
{

    "customer_name": “John Doe”,

    "application_name": "BloxOne DDI",

    "Authorization": ["Basic YWxhZGRpbjpvcGVuc2VzYW1l", "http-header:true"],

    "Content-type": ["application/xml", "http-header:true "]

	“actionable_redirect_action”: “https://actionable.redirect.url.com”,

	“actionable_redirect_label”: “actionable redirect link text”

}

Note that the actionable_redirect_label key is optional. If it is missing, the default value would be the value in actionable_redirect_action. In addition, if actionable_redirect_action is missing, neither ActionableRedirectUrl nor ActionableRedirectText will show up in the HTTP payload.

The webhook context must be in a valid, non-nested JSON format.

Based on the examples given in the Template and Webhook Context fields, BloxOne generates the following:

...

Panel
borderColor#A9A9A9
bgColor#D3D3D3
borderWidth2

Customer:  John Doe,    

Application:  BloxOne DDI    

Message:  Internal error occurred. For more details, see log for request 1a94821f-0f7a-48ab-b1cf-b137d628afd4

ActionableRedirecturl: https://actionable.redirect.url.com

ActionableRedirectText: actionable redirect link text


Click Validate after you complete the template and webhook context. BloxOne validates the JSON schema you have entered and sends an error if the template or webhook context is not in a valid JSON format.

...