Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
Learn the REST API with the CLI
The CLI has to use the REST API to get data just like the GUI and the Python SDK does. When you traverse the management information tree using the cli, all of the queries the CLI makes to the APIC are logged to:
We can take advantage of this to learn more about the REST API.
Open two ssh sessions to the same APIC.
In one of the ssh sessions, tail the log that the CLI writes to when you traverse the management information tree:
tail -f /var/log/dme/log/neo.log
In the other session start traversing the /debug, /aci or /mit directories, looking at summary and mo files with cat and you can even change things with moset and moconfig and see what queries the cli does to get the data.