yvan rooseleer 30 nov 2018 etw apic-emyvan rooseleer 30 nov 2018. postman: http get head post put...

16
ETW APIC-EM Network Programmability with Cisco APIC-EM Web Services - DevNet - Python - Jupyter Notebook Yvan Rooseleer <[email protected]> 30 NOV 2018

Upload: others

Post on 25-Sep-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Yvan Rooseleer  30 NOV 2018 ETW APIC-EMYvan Rooseleer  30 NOV 2018. POSTMAN: HTTP GET HEAD POST PUT DELETE What is a web service? A web service

ETW APIC-EMNetwork Programmability with Cisco APIC-EM

Web Services - DevNet - Python - Jupyter Notebook

Yvan Rooseleer <[email protected]> 30 NOV 2018

Page 2: Yvan Rooseleer  30 NOV 2018 ETW APIC-EMYvan Rooseleer  30 NOV 2018. POSTMAN: HTTP GET HEAD POST PUT DELETE What is a web service? A web service

POSTMAN: HTTP GET HEAD POST PUT DELETE

What is a web service?A web service is a way for two systems to communicate through a defined interface

REST (Representational State Transfer) REST is an architecture style for designing networked applications In REST, HTTP is used to communicate between 2 machines REST web services can send plain text, JSON, and also XML.

REST is a lightweight alternative to RPC, SOAP, Corba, …

Other exampleSOAP (Simple Object Access Protocol)

SOAP and REST can't be compared directly, since the first is a protocol (or at least tries to be) and the second is an architectural style.

Page 3: Yvan Rooseleer  30 NOV 2018 ETW APIC-EMYvan Rooseleer  30 NOV 2018. POSTMAN: HTTP GET HEAD POST PUT DELETE What is a web service? A web service

POSTMAN: MAPQUEST API - GET REQUEST

Page 4: Yvan Rooseleer  30 NOV 2018 ETW APIC-EMYvan Rooseleer  30 NOV 2018. POSTMAN: HTTP GET HEAD POST PUT DELETE What is a web service? A web service

POSTMAN: MAPQUEST API - RESPONSE

Page 5: Yvan Rooseleer  30 NOV 2018 ETW APIC-EMYvan Rooseleer  30 NOV 2018. POSTMAN: HTTP GET HEAD POST PUT DELETE What is a web service? A web service

MAPQUEST Developer APIs

Page 6: Yvan Rooseleer  30 NOV 2018 ETW APIC-EMYvan Rooseleer  30 NOV 2018. POSTMAN: HTTP GET HEAD POST PUT DELETE What is a web service? A web service

DevNet - Cisco APIC-EM Sandbox API Login

Page 7: Yvan Rooseleer  30 NOV 2018 ETW APIC-EMYvan Rooseleer  30 NOV 2018. POSTMAN: HTTP GET HEAD POST PUT DELETE What is a web service? A web service

Cisco Application Policy Infrastructure Controller Enterprise Module

Page 8: Yvan Rooseleer  30 NOV 2018 ETW APIC-EMYvan Rooseleer  30 NOV 2018. POSTMAN: HTTP GET HEAD POST PUT DELETE What is a web service? A web service

APIC-EM Controller - Device Inventory

Page 9: Yvan Rooseleer  30 NOV 2018 ETW APIC-EMYvan Rooseleer  30 NOV 2018. POSTMAN: HTTP GET HEAD POST PUT DELETE What is a web service? A web service

APIC-EM Controller - Device Inventory(2)

Page 10: Yvan Rooseleer  30 NOV 2018 ETW APIC-EMYvan Rooseleer  30 NOV 2018. POSTMAN: HTTP GET HEAD POST PUT DELETE What is a web service? A web service

APIC-EM Controller - Path Trace

Page 11: Yvan Rooseleer  30 NOV 2018 ETW APIC-EMYvan Rooseleer  30 NOV 2018. POSTMAN: HTTP GET HEAD POST PUT DELETE What is a web service? A web service

IDLE Python Programming Environment

Page 12: Yvan Rooseleer  30 NOV 2018 ETW APIC-EMYvan Rooseleer  30 NOV 2018. POSTMAN: HTTP GET HEAD POST PUT DELETE What is a web service? A web service

ANACONDA NAVIGATOR with Jupyter Notebook

Page 13: Yvan Rooseleer  30 NOV 2018 ETW APIC-EMYvan Rooseleer  30 NOV 2018. POSTMAN: HTTP GET HEAD POST PUT DELETE What is a web service? A web service

PATH TRACE using PYTHON (1)

Page 14: Yvan Rooseleer  30 NOV 2018 ETW APIC-EMYvan Rooseleer  30 NOV 2018. POSTMAN: HTTP GET HEAD POST PUT DELETE What is a web service? A web service

PATH TRACE using PYTHON (2)

Page 15: Yvan Rooseleer  30 NOV 2018 ETW APIC-EMYvan Rooseleer  30 NOV 2018. POSTMAN: HTTP GET HEAD POST PUT DELETE What is a web service? A web service

Coding Practice● Coding is not new to Cisco.

There have always been talented programmers for the IOS and for network applications.● Writing simple code based on examples is easy.● Writing complex code is difficult.● Writing complex declarative CLI scripts is no easy task either.● In the future a number of networkers will be writing code, if they like it.● But even more networkers will run the code, and maybe adapt it.

Page 16: Yvan Rooseleer  30 NOV 2018 ETW APIC-EMYvan Rooseleer  30 NOV 2018. POSTMAN: HTTP GET HEAD POST PUT DELETE What is a web service? A web service