fabric, called pod-1. Next, let’s find out more information
about pod-1 and discover how many devices are part of
this fabric. The API URI link for the resource that will
return this information is
https://sandboxapicdc.cisco.com/api/node/class/topolo
gy/pod-1/topSystem.json. We specify again APIC-
cookie, and the GET request should look like the one in
Example 9-5.
Example 9-5 curl Command to Get ACI Pod
Information
Click here to view code image
curl -k -X GET \
https://sandboxapicdc.cisco.com/api/node/class/topology/pod-
1/topSystem.json \
-H 'Cookie: APIC-
cookie=pRgAAAAAAAAAAAAAAAAAAGNPf39fZd71fV6DJWidJoqxJmHt1Fephmw6Q0
I5byoafVMZ29a6pL+4u5krJ0G2Jdrvl0l2l9cMx/o0ciIbVRfFZruCEgqsPg8+dbjb8kWX02FJLcw9Qpsg
98s5QfOaMDQWHSyqwOObKOGxxglLeQbkgxM8/fgOAFZxbKHMw0+09ihdiu7jTb7AAJVZEzYzXA=='
The redacted response from the APIC should look similar
to the one shown in Example 9-6.
Example 9-6 REST API Response Containing Details
About the Cisco ACI Pod
Click here to view code image
{
"imdata" : [
{
"topSystem" : {
"attributes" : {
"role" : "controller",
"name" : "apic1",
"fabricId" : "1",
"inbMgmtAddr" : "192.168.11.1",
"oobMgmtAddr" : "10.10.20.14",
"systemUpTime" :