From the course: Cisco DevNet Associate (200-901) Cert Prep 2: Understanding and Using APIs
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Webhook concepts
From the course: Cisco DevNet Associate (200-901) Cert Prep 2: Understanding and Using APIs
Webhook concepts
- [Narrator] API calls are great when the information you need is static and you do not need to take action on the change of information right away. For example, for our network devices, the configuration files are somewhere static, they do not change often. So using a rest API to take a nightly snapshot of the configuration file for backup is probably good enough. However, on the other hand, what if we need to keep track of the route changes in our routing table? or keep track of our BGP neighbor flapping changes. For example, if we want to automatically be alerted when default route disappears from the routing table via email, how can we do that? One way we could do this, is to make periodic API calls to our device, say every minute. But that is a lot of API calls that our target needs to answer. The result is wasted resources in both the client as well as the server. This is where webhooks could be helpful. Imagine…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.