Книга: Acing the CCNA Exam: Volume 2 Advanced Networking and Security
Назад: 22 Network automation
Дальше: 25 Ansible and Terraform

for an explanation of all six REST architectural . You’ll have to make a Postman account if you want to follow along (it’s free). Another option is Insomnia, available at , but I will use Postman for this demonstration.

Our objective is to retrieve Catalyst Center’s inventory list—the list of devices it manages. First, we need to generate an access token. After logging in to Postman, click Workspaces, and then open My Workspace, as shown in .

  • Click Authorization, and select Basic Auth.

  • Enter the username devnetuser and password Cisco123!.

  • Click Send to send the API call to Catalyst Center.

  • Copy the token from the.

  • Select Header to add an additional HTTP header to the API call.

  • Add the key X-Auth-Token, and paste the token you generated previously as the value.

  • Click Send to send the API call.

    Cisco DevNet

    DevNet is a program by Cisco to support developers and other IT professionals looking to create applications and integrations using Cisco’s suite of products and APIs. It provides resources such as documentation, courses, learning labs, and sandbox platforms for experimentation. If you want to dive deeper into network automation, DevNet is an invaluable resource. Check it out at .

    Summary