Follow these steps to render the configuration of device AUSYD01-SW-1 in the REST API.
- Scroll down to the footer of the Web UI. On the left hand side there are 5 icons, and a tool tip appears over each one when you hover over it. Click on the one called REST API Documentation. This opens the Swagger documentation for the REST API in a separate browser tab.
- Make an API call to render the configuration of device
AUSYD01-SW-1. Under theDCIMsection find thePOST /api/dcim/devices/{id}/render-config/API call. Click to open it, and then click Try it out on the right hand side. - In the Parameters section note the
idof the device is required. You can check theidof the device in NetBox in the UI by clicking Devices > Devices > AUSYD01-SW-1 and in the top-right corner it will saydcim.device:141 - Enter
141for theidparameter, and click execute. - In the Responses section note the
Request URLand then scroll down through the Response Body to view the data that has been returned from NetBox. Thecontentsection will contain the device configuration.