# Data Object - ScheduledTaskInfo(vim.scheduler.ScheduledTaskInfo)

Property of
  ScheduledTask
Extends
  ScheduledTaskSpec
See also
  LocalizedMethodFault, ManagedEntity, ScheduledTask, Task, TaskInfoState
Since
  2.0

## Data Object Description

The scheduled task details.

Properties

Name | Type | Description
--- | --- | ---
activeTask* | ManagedObjectReference to a Task | The running task instance when the scheduled task state is "running".
entity | ManagedObjectReference to a ManagedEntity | The entity on which related events will be logged. If the task is scheduled on a ManagedEntity, this field will also reflect the same ManagedEntity. If task is scheduled on a ManagedObject, this field will have information about the entity on which the events will be logged on behalf of the ManagedObject. ManagedObject itself will be denoted by taskObject
error* | LocalizedMethodFault | The fault code when the scheduled task state is "error".
lastModifiedTime | xsd:dateTime | The time the scheduled task is created or modified.
lastModifiedUser | xsd:string | Last user that modified the scheduled task.
nextRunTime* | xsd:dateTime | The next time the scheduled task will run.
prevRunTime* | xsd:dateTime | The last time the scheduled task ran.
progress* | xsd:int | The task progress when the scheduled task state is "running".
result* | xsd:anyType | The operation result when the scheduled task state is "success".
scheduledTask | ManagedObjectReference to a ScheduledTask | Scheduled task object.
state | TaskInfoState | Scheduled task state.
taskObject | ManagedObjectReference | The object on which the scheduled task is defined. This field will have information about either the ManagedEntity or the ManagedObject on which the scheduled task is defined. Since vSphere API 4.0
Properties inherited from ScheduledTaskSpec
action, description, enabled, name, notification, scheduler
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:sms="urn:sms" name="ScheduledTaskInfo"> <complexContent> <extension base="sms:ScheduledTaskSpec"> <sequence> <element name="scheduledTask" type="sms:ManagedObjectReference"/> <element name="entity" type="sms:ManagedObjectReference"/> <element name="lastModifiedTime" type="xsd:dateTime"/> <element name="lastModifiedUser" type="xsd:string"/> <element name="nextRunTime" type="xsd:dateTime" minOccurs="0"/> <element name="prevRunTime" type="xsd:dateTime" minOccurs="0"/> <element name="state" type="sms:TaskInfoState"/> <element name="error" type="sms:LocalizedMethodFault" minOccurs="0"/> <element name="result" type="xsd:anyType" minOccurs="0"/> <element name="progress" type="xsd:int" minOccurs="0"/> <element name="activeTask" type="sms:ManagedObjectReference" minOccurs="0"/> <element name="taskObject" type="sms:ManagedObjectReference"/> </sequence> </extension> </complexContent> </complexType>