Modify iLO user account - 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 11: Modify iLO user account ==================================

The method ex11_modify_ilo_user_account takes an instance of rest object , iLO login account name to modify, new iLO login name, new user name, new password and other optional parameters.

:

Find and get the system resource for account service.

:

Send HTTP GET request to the account service URI(s).

:

Send another GET request to get accounts resources.

:

For the requested account to modify, add the requested fields and value from the arguments passed.

:

Organize the PATCH request body.

:

Update the account through a PATCH request. Warning, if you don't change anything, you will get an HTTP 400 response back.

:

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