I am currently playing around with integrating DNAC (CCC) into a webhook environment.
I would like to define a header for the hostname in the webhook settings (CCC).
The hostname serves as an identifier in the webhook for the unique event notification assignment, i.e. from which system the event comes.
Currently only an IP address is recognizable into Webhook.
Unfortunately the documentation is not sufficient and surely someone has an overview of the header information that could be defined?
All attempts to provide a hostname were unsuccessful.
CCC Webhook settings - Headers
Header Name = Host
Header Value = [Hostname]
json
{
"event": "${eventType}",
"hostname": "${dnacHostname}",
"device": {
"id": "${deviceId}",
"name": "${deviceName}",
"ip": "${deviceIp}"
},
"severity": "${severity}",
"description": "${eventDescription}",
"timestamp": "${timestamp}",
"category": "${category}"
}
Thank you for your input and examples.
regards,
Markus