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