The URI that returns this information is very similar to
the one explored previously, with one difference:
http://localhost:8080/restconf/data/tailf-
ncs:devices/device=ios1. device=ios1 is used to indicate
that the API should return only data specific to the
device ios1. The same headers for Content-Type,
application/yang-data+json, Authorization, and Basic
Auth with username admin and password admin need
to be included. Figure 15-7 shows the response from the
NSO server after the Send button is pressed.
Figure 15-7 RESTCONF GET Device API Call in
Postman
Cisco Modeling Labs/Cisco Virtual Internet Routing
Laboratory (CML/VIRL)
For a long time, building and maintaining infrastructure
laboratories for testing and learning was time-consuming
and required a lot of hardware, which needed space,
power, and cooling; these labs were therefore very
expensive and in reach of only a few companies. With the
advent of Network Function Virtualization (NFV) and
Cisco Modeling Labs/Cisco Virtual Internet Routing
Laboratory (CML/VIRL), it has finally become easy and
cost-effective to build infrastructure laboratories for all
types of purposes.