cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
924
Views
0
Helpful
1
Replies

How to get/read NTP/SNMP configuration in ACI using API request?

fc00::/7
Level 1
Level 1

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):

POST https://192.0.20.123/api/aaaLogin.json

{
"aaaUser":{
"attributes":{
"name":"georgewa",
"pwd":"paSSword1"
}
}
}

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?

1 Reply 1

Remi Astruc
Level 1
Level 1

Hello,

Here is how you get NTP policies for example:

GET https://<APIC_IP>/api/node/class/datetimePol.json?query-target=children

 

Remi Astruc

 

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License