forked from DMTF/python-redfish-library
Get schema
Jack Garcia edited this page May 25, 2017
·
1 revision
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:
:
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.
: