Add 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 10: Add iLO user account ===============================

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

:

Find and get the system resource for account service.

:

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

:

Prepare the request body for the new user account. iLO has two user account properties, login name is the string used as the user identity to log in, we use this for 'UserName'. User name is the friendly (or full) name of the user, potentially easy to reverse. Use the iLO account login name as 'UserName' in the API.

:

Set up rest of the request body with the requested privileges to the new user, by default only the login privilege is enabled..

:

Create the account through a POST request.

:

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