I've been reading about Cisco APIC REST API User Guide - https://www.cisco.com/c/en/us/td/docs/switches/datacenter/aci/apic/sw/1-x/api/rest/b_APIC_RESTful_API_User_Guide/performing_common_tasks.html

and managed to get in using JSON API in Postman.

Example (as documented in the link above):



There are bunch of examples in the document on how to make changes on the ACI, but I couldn't find any examples to make a simple query without making any changes.

Let say how to get/read the current configuration in ACI, let say NTP or SNMP setting using API request?

  • Which tool are you using to send REST API? PostMan, curl .. etc – user May 20 '19 at 13:37
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can post and accept your own answer. – Ron Maupin Jan 5 at 18:25

If you are using PostMan to send REST API, first of all, you need to login into the APIC controller.

For example:

Method: POST Body raw, Type xml:


<aaaUser name='USERNAME' pwd='PASSWORD'/>

You will receive a token stored in a cookie which postman will store for you, It will last 5 minutes. After 5 minutes, you will need to log in again.

After that, you can run REST API.

For example:

Method: GET


In order to get all the NTP providers configured in the fabric.

If you prefer json format, then change REST URL to:

Method: GET


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.