First Approach to Cisco ACI APIs
本文介绍了如何通过API Inspector和REST API实现Cisco ACI的自动化操作,强调其API优先设计和自文档化特性。 2026-1-3 17:46:21 Author: www.adainese.it(查看原文) 阅读量:4 收藏

Post cover

Let’s now see how to write our first automation for Cisco ACI. As we mentioned, Cisco ACI is designed to be API-first, meaning that every operation is performed through APIs.

Cisco made an interesting design choice: to address the challenge of documenting APIs in an effective and long-lasting way, they built a web interface that itself uses only APIs. In other words, by observing what happens while we use the web interface, we can identify the APIs being called and the required parameters. In addition, Cisco added a feature to the web interface: API Inspector, which allows us to observe the APIs in use.

We can therefore say that Cisco ACI APIs are self-documenting. Cisco also provides an official APIC REST API User Guide . This guide will be very useful later on, but to get started, API Inspector is the fastest way to achieve results.

Let’s go through the process step by step.

API Inspector

First, connect to the APIC and go to Tools → Show API Inspector:

Patreon Image

A new browser window will open, containing the API Inspector. Navigate through the web interface and add a tenant. If we look at the API Inspector window, we’ll see that it contains all the API calls performed during our actions:

Patreon Image

For example, if we select our tenant in the web interface, we will find a POST call and its payload:

method: POST url: https://172.25.82.1/api/node/mo/uni/tn-AD-TEST.json payload: { "fvTenant": { "attributes": { "dn": "uni/tn-AD-TEST", "name": "AD-TEST", "rn": "tn-AD-TEST", "status": "created" }, "children": [] } }

Continue reading the post on Patreon .


文章来源: https://www.adainese.it/blog/2025/12/21/first-approach-to-cisco-aci-apis/
如有侵权请联系:admin#unsafe.sh