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

(andrew) #1

‘equipmentDeviceSummary’ instances API call is
selected. The query parameters that this specific API call
supports are displayed, as are the API URI for the
endpoint that will return the list of all the devices that
are being managed by Cisco Intersight for this specific
account. Much as with Postman, if the Send button is
clicked, the API call is triggered, and the response is
displayed in the Response Text window.


Figure 9-14 Cisco Intersight REST API Reference
Documentation


Under the Downloads section of
https://intersight.com/apidocs, the Cisco Intersight
Python and PowerShell SDKs can be downloaded. The
Python SDK covers all the functionality of the REST API
and offers Python classes and methods that can be used
to simplify Cisco Intersight automation projects. The
Python sample code in Example 9-16 was developed
using the Intersight module version 1.0 and Python 3.7.4.
This Python code replicates the earlier REST API call
equipmentDeviceSummary, which returns a list of
all the devices that are being managed by Cisco
Intersight for a specific account.


Example 9-16 Intersight Python Module Example

Click here to view code image


#! /usr/bin/env python
from intersight.intersight_api_client import
Free download pdf