Get resource directory - HewlettPackard/python-ilorest-library GitHub Wiki

First 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. The class also initializes a login session, gets systems resources and message registries.

Rest Object creation:

:

Redfish Object creation:

:

Example 1: Get resource directory

The method ex1_get_resource_directory 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 resource directory URI ('/rest/v1/resourcedirectory') as parameter. For Redfish RESTful request the URI is ('/redfish/v1/resourcedirectory')

:

For a successful response status, resource directory is retrieved from the response body.

:

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