Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Cisco ACI Cookbook

You're reading from   Cisco ACI Cookbook A Practical Guide to Maximize Automated Solutions and Policy-Drive Application Profiles

Arrow left icon
Product type Paperback
Published in May 2017
Publisher
ISBN-13 9781787129214
Length 424 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Stuart Fordham Stuart Fordham
Author Profile Icon Stuart Fordham
Stuart Fordham
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Understanding Components and the ACI Fabric FREE CHAPTER 2. Configuring Policies and Tenants 3. Hypervisor Integration (and Other Third Parties) 4. Routing in ACI 5. ACI Security 6. Implementing Quality of Service in ACI 7. Network Programmability with ACI 8. Monitoring ACI 9. Troubleshooting ACI 10. An End-to-End Example Using the NX-OS CLI

Authenticating through REST and XML


Without authenticating to the APIC first, we will not be able to run any subsequent commands.

How to do it...

  1. Set the URL to https://192.168.1.205/api/aaaLogin.xml (obviously changing the IP address to the one of your APIC controller).
  2. Enter the following on line 1:
     <aaaUser name="admin" pwd="admin123" />

 

 

  1. Press Send.

How it works...

The Postman application sends the raw XML to the aaaLogin.xml URL. In the results pane, we should see some XML returned and should have, on the left-hand side, a status code of 200 (meaning everything worked fine). The XML code should look like this:

<?xml version="1.0" encoding="UTF-8"?>
<imdata totalCount="1">
 <aaaLogin token="8HoO9sU0o39ygQinBsHcrBD61hhXdr+JNiXaiETpZUz+5t+5C2ijW8JbTOCc/53dZP0M9O4ByrbtNWknUwj0fkppYXPVEjPyGlkfP8JDOGV9THxEi28Dpcf0eDOBNlRNHlPAnsvXJ1B1cM+aT+xk3ADfR4D9koFNT0VRTENzSux5uwKzjvScbRY1AIIN+Dor" siteFingerprint="ROT0QumJdEhJzyqM" refreshTimeoutSeconds="600" maximumLifetimeSeconds...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime