The attribute key contains a further nested dictionary describing key-value pairs that define attributes on the object. Nested dictionary with two keys: attribute and children. Repeated at all levels of the tree, so it is fairly simple to implement after it is initially understood.Īll objects are described as JSON dictionaries, in which the key is the name of the package and class. Containment is defined by creating child elements.įor JSON, encoding requires definition of certain entities to reflect the tree-based hierarchy however, the definition is Operation is simple: the element tag is the name of the package and class, and any properties of that object are specifiedĪs attributes of that element. Payloads to and from the REST interface can be encapsulated through either XML or JSON encoding. The GET method is nullipotent, meaning that it can be called zero or more times without making any changes The POST andĭELETE methods are idempotent, meaning that there is no additional effect if they are called more than once with the same Standard REST methods are supported on the API, which includes POST, GET, and DELETE operations through HTTP. Notification, so that when a change occurs in the MIT, an event can be sent through a web socket. It even provides a means of subscribing to push-based event The REST API also provides an interface through which other information canīe retrieved, including statistics, faults, and audit events. The same REST interface is used by the APIC CLI, GUI, and SDK, so that whenever information is displayed, it is read through the REST API, and when configuration changesĪre made, they are written through the REST API. The REST API is the interface into the management information tree (MIT) and allows manipulation of the object model state. You can useĪny programming language to generate the messages and the JSON or XML documents that contain the API methods or Managed Object Or HTTPS messages that contain JavaScript Object Notation (JSON) or Extensible Markup Language (XML) documents. The API accepts and returns HTTP (not enabled by default) The Application Policy Infrastructure Controller ( APIC) REST API is a programmatic interface that uses REST architecture. Using the Managed Object Browser (Visore).Requiring a Challenge Token for an API Session.Authenticating and Maintaining an API Session.Configuring a Custom Certificate for Cisco ACI HTTPS Access Using the GUI.Configuring HTTP and HTTPS Using the GUI.Configuring the HTTP Request Method and Content Type.Example: XML Get Endpoints (Devices) with IP and MAC Addresses.Example: Using the XML API and OwnerTag to Add Audit Log Information to Actions.Example: Using the JSON API to Get Top Level System Elements.Example: Using the JSON API to Get Running Firmware.Example: Using the JSON API to Get Information About a Node. Example: Using the JSON API to Add a Leaf Port Selector Profile.Composing the API Command Body for an API Operation on an MO.Composing the API Command Body to Call a Method.Using Managed Objects in REST API Commands.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |