Owner's Manual

37 REST API Guide OpenManage Essentials | Version 1.0
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>A - Power Off - REST 3</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>
2.12.4 Racadm CLI Task Creation (Future)
Note: The following command will not be available in the OME version 1.3 timeframe.
The remote racadm task can be created using the following parameters. The URI that will be used will
correspond to the following.
Racadm CLI task URI :< BASE_URI>/Tasks/racadmcli
The attributes associated with the Racadm CLI task creation are described in the following table.
Attribute Name
Description
Name The name of the task.
Command
The CLI command.
Devices The list of selected device identifiers. If only one device is affected, the list
will contain one element.
Schedule The schedule for the task. This will be in cron format. If it is a run now task,
the schedule will have a special value (“- 1”).
Credentials
Any applicable credentials for the task.
The task creation method will return a task URI (in the Location header) that can be queried for status and
progress information.