Wednesday, June 3, 2020

Creating a VLAN on NX-OS using REST

Hi, i'm reading Cisco documentation here:

https://developer.cisco.com/docs/nx-os-n3k-n9k-api-ref-7-x/#!configuring-vlans/creating-a-vlan

I plan on trying out their sandbox soon to give using REST a proper go, I've been reading through the link above and after studying the requests library for a little while now I've a couple of questions if anyone knows the answers.
The payload and POST request example they give for creating a VLAN is confusing slightly only because from what I've seen from the requests library so far and when communicating with REST API's you need to fill out the request with the correct URL, data/payload and content-type you're passing to the API. None of them appear in the example "POST http://<IP\_Address>/api/mo/sys.json"

Does anyone have any experience on this or could shed some light on it because i'm slightly confused on how to structure this API request going off their examples.



No comments:

Post a Comment