Scheduling
Tasks
You create a
ScheduledTask
by invoking the
ScheduledTaskManager.CreateScheduledTask
method. When you invoke the method, you include a
ScheduledTaskSpec
object that
defines the schedule and specifies the action to take at the specified time. A
scheduled action applies to an object based on these rules:
- If you specify a container object as the entity for the scheduled action, the schedule applies to all entities that are direct descendants of the container. You can set aScheduledTaskat theFolder,Datacenter, orVirtualApplevel and have the scheduled action apply to all entities associated with theFolder,Datacenter, orVirtualApp.
- If you specify a node object in the inventory, such as a virtual machine, the action applies only to the virtual machine.Using ScheduledTaskManager to Create a ScheduledTask