From the course: Cisco DevNet Associate (200-901) Cert Prep 3: Cisco Platforms and Development

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Learning about Cisco NSO APIs

Learning about Cisco NSO APIs

From the course: Cisco DevNet Associate (200-901) Cert Prep 3: Cisco Platforms and Development

Start my 1-month free trial

Learning about Cisco NSO APIs

- [Instructor] The NSO API example that we will see, is actually very, very straightforward. We use it as request library as well as the pprint library to print out our outputs. And we have the base URL username and password. Unfortunately, there's no always-on sandbox for NSO. So, go ahead and find the handout in your course documentation and reserve a lap for NSO, and come back to fill in the base URL, the username and password and move on from there. The biggest challenge for NSO is usually getting the right URL, as well as have this URL generated from the Yang model using a dynamic mapping. We will cover more about Yang model as well as RESTCONF/NETCONF in section eight of this course. What is also different is the header, the content type, instead of application JSON or application XML, we're going to use the Yang dash data plus JSON to specify that this is a Yang model base URL. And as you can see,…

Contents