CCNP ENCOR Certification Cram Notes : Automation
6.4 Describe APIs for Cisco DNA Center and vManage
Cisco DNA Center and vManage provide APIs (Application Programming Interfaces) to programmatically manage and automate network operations.
Cisco DNA Center API is based on RESTful principles and uses HTTPS for transport. It supports both XML and JSON encoding for data exchange. With the API, you can perform various tasks such as network device configuration, monitoring, and management. You can also use it to retrieve network topology, devices, and clients information.
vManage API is also based on RESTful principles and uses HTTPS for transport. It supports both JSON and XML encoding for data exchange. With the API, you can perform various tasks such as device configuration, monitoring, and management. You can also use it to retrieve network topology, devices, and clients information.
Using these APIs, you can develop custom applications or integrate with third-party tools to automate network operations, such as provisioning new network devices, updating configuration, monitoring network performance, and troubleshooting network issues.
6.5 Interpret REST API response codes and results in payload using Cisco DNA Center and RESTCONF
When using REST APIs, it is important to understand the different response codes and how to interpret the results in the payload. Here are some common REST API response codes:
200 OK: The request was successful, and the server returned the requested data.
201 Created: The request was successful, and a new resource was created.
204 No Content: The request was successful, but there is no data to return.
400 Bad Request: The request was not valid, and the server could not process it.
401 Unauthorized: The request requires authentication, and the user does not have valid credentials.
403 Forbidden: The request was valid, but the server refused to respond to it.
404 Not Found: The requested resource was not found on the server.
500 Internal Server Error: The server encountered an error while processing the request.