
Python Interface for Cisco UCSM API Operations
"Explore the ucsmsdk.v0.9.0.0 Python SDK, an open-source tool for interfacing with Cisco UCSM APIs. Simplify CRUD operations, generate Python scripts, and leverage client-side filters for improved usability. Discover features like event handling, structural changes, and easy filter specifications."
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
Ucsmsdk v0.9.0.0 UCS PYTHON SDK
What is it? Python language binding to interface with Cisco UCSM APIs for CRUD operations Open source https://github.com/ciscoucs/ucsmsdk On Pypi https://pypi.python.org/pypi/ucsmsdk/0.9.0.0 Apache License, Version 2.0 Not backward compatible with the earlier ucssdk 0.8.x
Installation using pip: pip install ucsmsdk using github: git clone https://github.com/CiscoUcs/ucsmsdk.git cd ucsmsdk make install
Design and usability Changes Every UCS managed object type is abstracted as a python class. Better code Writing/Reading by specifying the objects directly. CRUD APIs are simplified for usability Async API Ability to watch for Ucs events convert_to_ucs_python API to generate python script for operations done on the UI Low runtime memory usage Client side filter support (in addition to having server side filters) Client side parameter validation Samples packaged with the SDK Auto-generation of API reference documentation PEP8 compliance
Convert to ucs python Helps a user to get kick-started with ucsmsdk without having pre-requisite knowledge of Ucs Object Model or python sdk itself. Ability to generate python script based on operations done on UCSM Java based UI
Filters Filters can be specified as pure strings now, without the need of creating filters objects. filter = (prop1, value1) filter = (prop1, value1) or (prop2, value2) filter = (prop1, value1, type="eq") and ((prop2, value2) or (prop2, value3)) filter = (prop1, value1, type="re", flag="I") and ((prop2, value2) or (prop2, value3))
Event-handling Async APIs are provided to tap into Ucs event channel and look for specified conditions A poll-mode is also support if desired
Structural changes Code is restructured to ease usability Changes to enable community contribution Additional documentation and tests
Community email ucs-python@cisco.com slack We are on Slack - slack requires registration, but the ucspython team is open invitation to anyone to register here