Get base registry - HewlettPackard/python-ilorest-library GitHub Wiki

If not created already, create an instance of Rest or Redfish Object using the RestObject or RedfishObject class respectively. The class constructor takes iLO hostname/ ip address, iLO login username and password as arguments.

Rest Object creation:

:

Redfish Object creation:

:

Example 2: Get base registry

The method ex2_get_base_registry takes an instance of rest object ( or redfish object if using Redfish API) as argument.

:

A Restful GET request is performed next by calling the Rest object's get method with the registries uri ('/rest/v1/registries') as parameter. For Redfish RESTful request the URI is ('/redfish/v1/registries')

:

From the response body for each "Location" in "Items" with "Base" or "iLO" Id , a GET request in performed with the URI retrieved from ["Location"]["Uri"]["extref"].

:

For successful response status, messages are added to MESSAGE_REGISTRIES.

:

⚠️ **GitHub.com Fallback** ⚠️