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

Rest Object creation:

:

Redfish Object creation:

:

Example 27: Get schema

The method ex27_get_schema takes an instance of rest object ( or redfish object if using Redfish API ) and schema prefix as arguments.

:

Send HTTP GET request to schema URI '/rest/v1/Schemas'.

:

From the response body find the requested schema URI.

:

Get the schema with the requested schema prefix through GET request.

:

Check the status.

:

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