Search

Class VcTaskFilterSpec

Extends VcDynamicData
This data object type defines the specification for the task filter used to query tasks in the history collector database. The client creates a task history collector with a filter specification, then retrieves the tasks from the task history collector.

Attributes

Name Type Description
activationId String[] This property, if provided, limits the set of collected tasks to those associated with the specified activation Ids.
alarm VcAlarm This property, if provided, limits the set of collected tasks to those associated with the specified alarm. If not provided, tasks are collected regardless of their association with alarms.
entity VcTaskFilterSpecByEntity The filter specification for retrieving tasks by managed entity. If not provided, then the tasks attached to all managed entities are collected.
eventChainId Number[] The filter specification for retrieving tasks by chain ID. If it is set, tasks not with the given <a target="_blank" href="https://www.vmware.com/support/orchestrator/doc/vro-vsphere60-api/html/VcTaskInfo.html#eventChainId">VcTaskInfo</a> will be filtered out. If the property is not set, tasks' chain ID is disregarded for filtering purposes.
parentTaskKey String[] The filter specification for retrieving tasks by <a target="_blank" href="https://www.vmware.com/support/orchestrator/doc/vro-vsphere60-api/html/VcTaskInfo.html#parentTaskKey">VcTaskInfo</a>. If it is set, tasks not with the given parentTaskKey(s) will be filtered out. If the property is not set, tasks' parentTaskKey is disregarded for filtering purposes.
rootTaskKey String[] The filter specification for retrieving tasks by <a target="_blank" href="https://www.vmware.com/support/orchestrator/doc/vro-vsphere60-api/html/VcTaskInfo.html#rootTaskKey">VcTaskInfo</a>. If it is set, tasks not with the given rootTaskKey(s) will be filtered out. If the property is not set, tasks' rootTaskKey is disregarded for filtering purposes.
scheduledTask VcScheduledTask This property, if provided, limits the set of collected tasks to those associated with the specified scheduled task. If not provided, tasks are collected regardless of their association with any scheduled task.
state VcTaskInfoState[] This property, if provided, limits the set of collected tasks by their states. Task states are enumerated in <a target="_blank" href="https://www.vmware.com/support/orchestrator/doc/vro-vsphere60-api/html/VcTaskInfo.html#state">VcTaskInfo</a>. If not provided, tasks are collected regardless of their state.
tag String[] The filter specification for retrieving tasks by <a target="_blank" href="https://www.vmware.com/support/orchestrator/doc/vro-vsphere60-api/html/VcTaskInfo.html#changeTag">VcTaskInfo</a>. If it is set, tasks not with the given tag(s) will be filtered out. If the property is not set, tasks' tag is disregarded for filtering purposes. If it is set, and includes an empty string, tasks without a tag will be returned.
time VcTaskFilterSpecByTime The filter specification for retrieving tasks by time. If not provided, then the tasks with any time stamp are collected.
userName VcTaskFilterSpecByUsername The filter specification for retrieving tasks by user name. If not provided, then the tasks belonging to any user are collected.

Methods

Name Returns
VcTaskFilterSpec() constructor

Returned by

None

Referenced in

Method Returns
VcTaskManager.createCollectorForTasks(VcTaskFilterSpec filter) VcTaskHistoryCollector