Building Network Web Services with Python

In the previous chapters, we were a consumer of the APIs provided by various tools. In Chapter 3, APIs and Intent-Driven Networking, we saw that we can use a HTTP POST method to NX-API at the http://<your router ip>/ins URL with the CLI command embedded in the body to execute commands remotely on the Cisco Nexus device; the device then returns the command execution output in return. In Chapter 8, Network Monitoring with Python Part 2, we used the GET method for our sFlow-RT at http://<your host ip>:8008/version with an empty body to retrieve the version of the sFlow-RT software. These exchanges are examples of RESTful web services.

According to Wikipedia (https://en.wikipedia.org/wiki/Representational_state_transfer ...

Get Mastering Python Networking - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.