HewlettPackard / python-ilorest-library

Python library for interacting with devices which support a Redfish Service
Apache License 2.0
189 stars 92 forks source link

Unable to setup SmartArray EncryptionSettings #103

Closed samiron7567 closed 3 years ago

samiron7567 commented 3 years ago

With reference to the below get_SmartArray_EncryptionSettings and with the HPE RestAPI reference guide, I am unable to find parameters to setup encryption using RestAPI. Please provide one or make the documentation available as referance.

https://github.com/HewlettPackard/python-ilorest-library/blob/master/examples/Redfish/get_SmartArray_EncryptionSettings.py

I understand these are the desired properties to get values but with help of these I would like to set "CryptoOfficerPassword, MasterKey, CryptoOfficerRecoveryQuestion/Answer" as well. Please help!

"EncryptionBootPasswordSet"
"EncryptionCryptoOfficerPasswordSet"
"EncryptionLocalKeyCacheEnabled"
"EncryptionMixedVolumesEnabled"
"EncryptionPhysicalDriveCount"
"EncryptionRecoveryParamsSet"
"EncryptionStandaloneModeEnabled"
"EncryptionUserPasswordSet"
samiron7567 commented 3 years ago

Looks like there is no POST or PATCH method available in /redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/ If anyone knows the exact link to setup encryption, that woule be very much helpful

{
        "@odata.id": "/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/",
        "@odata.type": "#HpeSmartStorageArrayController.v2_2_0.HpeSmartStorageArrayController",
        "ETag": "W/\"8B667AD8\"",
        "HttpMethods": [
            "GET",
            "HEAD"
        ]
}
rajeevkallur commented 3 years ago

Please check /redfish/v1/Systems/1/SmartStorageConfig URI which has POST/PATCH available.