Chap 28 - Foundational Network Programmability Concepts Flashcards
What are APIs?
Application Programming Interface - APIs are mechanisms used to communicate with applications and other software.
What is a Northbound API?
Northbound APIs are often used to communicate from a network controller to its management software.
What is a Southbound API?
Changes are pushed down to the individual devices by using a Southbound API.
What is a RESTful API?
RESTful APIs use HTTP methods to gather and manipulate data. Because there is a defined structure for how HTTP works, it offers a consistent way to interact with APIs from multiple vendors.
What are 5 HTTP functions used by REST?
* Get - requests data * Post - submits data * Put - replaces data * Patch - appends data * Delete - removes data
What is CRUD?
An acronym for Create - inserts data, Read - retrieves data, Update - modifies or replaces data, Delete - removes data. These all refer to actions taken in a database or application.
What is Postman?
Postman is an application that makes it possible to interact with APIs using a console-based approach. Postman allows for the use of various data types and formats to interact with REST-based APIs.
What are 2 of the most common data formats used with APIs?
* Extensible Markup Language (XML) * JavaScript Object Notation (JSON)
What are 6 HTTP Status Codes?
* 200 - ok * 201 - created * 400 - bad request * 401 - unauthorized * 403 - forbidden * 404 - not found
What format does DNA Center expect all incoming data from the REST API to be in?
JSON format
What HTTP function is used to send credentials to Cisco DNA Center?
HTTP POST function
What is Cisco DNA Center Token API used for?
To authenticate users
How long is the token you receive from DNA good until?
Only for the current session.
What type of http operation is performed to authenticate?
POST
What is a YANG Data Model?
YANG Data models describe whatever can be configured, monitored, all the administrative actions that can be executed, and all the notifications that the device is capable of generating.
What is NETCONF?
It is an IETF standard protocol that uses the YANG data models to communicate with the various devices on the network.
What protocols does NETCONF run over?
NETCONF runs over SSH, TLS, and (although not common), Simple Object Access Protocol (SOAP).
What are 2 differences between NETCONF and SNMP?
* SNMP can’t distinguish between configuration data and operational data, but NETCONF can * NETCONF uses paths to describe resources, whereas SNMP uses object identifiers (OIDs).
What are 2 things NETCONF can do?
* Collects status * Changes config * Takes administrative actions * Sends event notifications * Does backups and restores * Tests configurations before finalizing them
What are 7 characteristics about Transactions?
* All or nothing * No order or sequencing * Processed in same order every time * Run in parallel state * Have no impact on each other * Do not overwrite or interfere with each other * Do not impact each other if same transaction is run against multiple devices
What does NETCONF do when a TCP connection has been made?
* NETCONF exchanges information called capabilities * Capabilities tell the client what the device it’s connected to can do.
What are 5 common operations NETCONF can do?
* get * get-config * edit-config * copy-config * delete-config