White Papers

51 REST API Guide OpenManage Essentials | Revision A02
A sample XML that would comprise the payload when initiating a POST operation to create a power control
task is as follows:
<RESTPowerControlTaskW>
<Id>0</Id>
<Name>Power Off - REST</Name>
<Description>Power Off Task</Description>
<Schedule>46 22 */1 * * *</Schedule>
<ControlType>1</ControlType>
<Devices>
<int>1</int>
<int>2</int>
<int>3</int>
<int>4</int>
</Devices>
<UserName>Administrator</UserName>
<Password>Dell1234</Password>
<IsGraceFul>1</IsGraceFul>
</RESTPowerControlTaskW>
The attributes associated with the power control type enumeration are defined in the following table.
Enum Value
Description
0
None
1
Shutdown
2
PowerCycle
3
Reset
4
PowerOn
2.12.2 LED control task
LED control task can be utilized for controlling system LED on iDRAC. The following resource URI can be used
to create a LED control task.
URI: < BASE_URI>/Tasks/LEDControl
Operations: POST
The attributes associated with the LED control task are described in the following table.
Attribute Name
Description
Id
Always set this to 0 when creating a new task.
Name
The name of the task.