ProLiant Servers - Netservers
1825944 Members
2732 Online
109689 Solutions
New Discussion

Re: For POST, PUT and PATCH methods, the provided "args" parameter is ignored.

 
darshit11
Occasional Visitor

For POST, PUT and PATCH methods, the provided "args" parameter is ignored.

I want to change HP ILO settings using python, for which I am using redfish api. In order to change a value I use put/post method as you can see below.

body = {'Oem':{'Hpe':{'Attribute': {'PowerAutoOn': 'PowerOn'}}}}
redfishobj.put("/redfish/v1/Systems/1", body=body)

 

but this command gives For POST, PUT and PATCH methods, the provided "args" parameter {body} is ignored. At first I suspected that there might be something wrong with the body I am passing but I double checked it and it is correct. Can you point out or suggest any method that I should try?

Thank you in advance

1 REPLY 1
AmRa
HPE Pro

Re: For POST, PUT and PATCH methods, the provided "args" parameter is ignored.

Please refer below HPE article  to change HP ILO settings using python.

https://hewlettpackard.github.io/ilo-rest-api-docs/ilo5/?python#

I am an HPE Employee.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

Accept or Kudo