CCIE Data Center Written Exam: REST API Code for Creating an EPG

Determining REST API Code for Creating an EPG

Question

Which three options can be used to determine REST API code to create an EPG? (Choose three.)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E. F.

ABC.

To create an EPG using REST API, there are several ways to determine the necessary REST API code, three of which are listed below:

A. Using the APIC management information tree: The APIC management information tree provides a hierarchical view of the managed objects in the fabric. It is a web-based GUI interface that allows users to navigate the fabric and view or modify the configurations of the different managed objects. To create an EPG, one can navigate to the appropriate location in the tree and view the configuration of an existing EPG to determine the necessary REST API code.

B. By downloading the XML configuration file and looking up an EPG configuration: The XML configuration file contains the configurations of all the managed objects in the fabric. To create an EPG, one can download the configuration file, search for an existing EPG configuration, and use it as a template to create a new EPG.

C. Using the API inspector when creating a test EPG: The API inspector is a feature of the APIC GUI that allows users to view the REST API calls that are generated when performing actions in the GUI. To create a test EPG, one can use the GUI to create an EPG and then view the REST API code generated by the API inspector.

D. Using the "show EPG configuration" command on the CLI of the APIC: The show EPG configuration command on the CLI of the APIC can be used to view the configuration of an existing EPG. One can use this command to determine the necessary REST API code to create a new EPG.

E. Calling the epgCreate() function in the Cobra API standard library: The Cobra API is a Python library that provides a programmatic interface to the APIC. The epgCreate() function in the Cobra API can be used to create a new EPG.

F. Performing an HTTP GET method on https://<APIC IP>/doc/epg.xml, which will return the necessary data to create an EPG: Performing an HTTP GET method on the epg.xml document on the APIC will return an XML document that contains the schema for creating an EPG. This schema can be used to determine the necessary REST API code to create a new EPG.

In summary, to determine the REST API code to create an EPG, one can use any of the above methods, or a combination of them, depending on the preference and available resources.