HPE Nimble Gets Coiled Up in Python…

This one’s for our developer community: HPE Nimble just released a full open-source Software Development Kit (SDK) for Python! This seemlessly integrates into the Nimble REST API engine for a simple and structured approach to interface with the array platform & OS for custom automation, resource reporting, or anything that needs to be extracted from the platform in a scheduled or methodical way.

It’s as simple as running “pip install nimble-sdk” within your Python CLI tool, and from there you can inspect actions available.

$ pip install nimble-sdk
$ python
Python 3.7.7 (default, Mar 10 2020, 15:43:03) 
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin 
Type "help", "copyright", "credits" or "license" for more information. 
>>> from nimbleclient import NimOSClient 
>>> api = NimOSClient("192.168.1.100", "admin", "admin")
>>> api.
api.access_control_records           api.fibre_channel_sessions           api.replication_partners
api.active_directory_memberships     api.folders                          api.shelves
api.alarms                           api.groups                           api.snapshot_collections
api.application_categories           api.initiator_groups                 api.snapshots
api.application_servers              api.initiators                       api.software_versions
api.arrays                           api.jobs                             api.space_domains
api.audit_log                        api.key_managers                     api.subnets
api.chap_users                       api.master_key                       api.tokens
api.controllers                      api.network_configs                  api.user_groups
api.disks                            api.network_interfaces               api.user_policies
api.events                           api.performance_policies             api.users
api.fibre_channel_configs            api.pools                            api.versions
api.fibre_channel_initiator_aliases  api.protection_schedules             api.volume_collections
api.fibre_channel_interfaces         api.protection_templates             api.volumes
api.fibre_channel_ports              api.protocol_endpoints               api.witnesses

See installusing and example workflows for more elaborate examples.

Interested in getting started? Well, here are some important links for you:

Note: The Python SDK supports NimbleOS 5.1.x and above.

And don’t stop there! We also have a Python SDK for HPE Cloud Volumes, as well as a Puppet module & Ansible playbooks for Nimble & HPE Cloud Volumes.

Happy coding!

Leave a Reply

Your email address will not be published. Required fields are marked *