DevNet Associate DEVASC 200-901 Official Certification Guide by Adrian Iliesiu (z-lib.org)

(andrew) #1

Figure 8-13 Getting a List of All the Devices in the
Cisco SD-WAN Fabric


While exploring the Cisco SD-WAN REST API, let’s get a
list of all the device templates that are configured on the
Cisco DevNet vManage server. According to the API
documentation, the resource that will return this
information is /dataservice/template/device. You pass in
the JSESSIONID value in the cookie header and build
the following curl command:


Click here to view code image


curl -X GET -k \

https://sandboxsdwan.cisco.com:8443/dataservice/template/device
\
-H 'Cookie:
JSESSIONID=v9QcTVL_ZBdIQZRsI2V95vBi7Bz47IMxRY3XAYA6.48
54266f-a8ad-4068-9651-d4e834384f51'

The response from the vManage server at
https://sandboxsdwan.cisco.com should look as shown
in Example 8-9.


Example 8-9 List of Device Configuration Templates

Click here to view code image


{
"data" : [
{
Free download pdf