Users Guide

Table Of Contents
Table 67. redfish_powerstate (continued)
Parameter Required Default Choices Comments
<I(baseuri)>/
redfish/v1/
Systems)
Examples
- name: Manage power state of the device.
redfish_powerstate:
baseuri: "192.168.0.1"
username: "username"
pasword: "password"
reset_type: "On"
- name: Manage power state of a specified device.
redfish_powerstate:
baseuri: "192.168.0.1"
username: "username"
password: "password"
reset_type: "ForceOff"
resource_id: "System.Embedded.1"
Return values
msg:
description: Overall status of the reset operation
returned: always
type: str
sample: "Successfully applied the reset type: 'On'."
error_info:
type: dict
description: Details of a the HTTP error.
returned: on http error
sample: {
"error": {
"@Message.ExtendedInfo": [
{
"Message": "Unable to complete the operation because the resource
/redfish/v1/Systems/System.Embedded.1/Actions/ComputerSystem.Reset
entered in is
not found.",
"MessageArgs": [
"/redfish/v1/Systems/System.Embedded.1/Actions/ComputerSystem.Reset"
],
"MessageArgs@odata.count": 1,
"MessageId": "IDRAC.2.1.SYS403",
"RelatedProperties": [],
"RelatedProperties@odata.count": 0,
"Resolution": "Enter the correct resource and retry the operation.
For information about valid resource,
see the Redfish Users Guide available on the support site.",
"Severity": "Critical"
},
],
"code": "Base.1.5.GeneralError",
"message": "A general generic error has occurred. See ExtendedInfo for more
information"
}
}
'''
122
Modules for Redfish APIs