Name: Task

Contains information about asynchronous job operations.

Data Structure
{
   "typeId": "com.tintri.api.rest.v310.dto.Task",
   "createDate": <Date>,
   "isCancelable": <Boolean>,
   "lastUpdatedTime": DateTime,
   "localAlias": <String>,
   "progressDescription": <String>,
   "progressError": <Boolean>,
   "progressPercent": <Number>,
   "progressSecondsRemaining": <Number>,
   "state": 'QUEUED' | 'RUNNING' | 'SUCCESS' | 'FAILED' | 'CANCELLED' | 'CANCEL_PENDING' | 'ACKNOWLEDGED',
   "targetIds": <String>,
   "targetType": 'VM' | 'VDISK' | 'SNAPSHOT' | 'JOB' | 'ALERTS' | 'DATASTORE_STAT' | 'VM_STAT' | 'VDISK_STAT' | 'SERVICE_GROUP',
   "type": 'SNAPSHOT' | 'CLONE' | 'REMOTE_COPY' | 'FAILOVER_TEST' | 'FAILOVER' | 'VM_SNAPSHOT_SYNC' | 'RECREATE_REPL_CONFIG' | 'SYNC_VM' | 'RELOCATE_VM' | 'SNAPSHOT_STORAGE_OBJECT' | 'CLONE_STORAGE_OBJECT' | 'CREATE_STORAGE_OBJECT' | 'UPDATE_STORAGE_OBJECT' | 'DELETE_STORAGE_OBJECT' | 'REVERT_STORAGE_OBJECT' | 'BIND_STORAGE_OBJECT' | 'UNBIND_STORAGE_OBJECT',
   "jobDone": <Boolean>,
   "properties": [TaskProperty],
   "uuid": Uuid,
}

Elements
NameTypeDescription
jobDonexsd:boolean'True' represents the job is done and is in the following states: CANCELLED, FAILED, or SUCCESS.
property (wrapped by properties)xsd:list[TaskProperty]The list of TaskProperty's represents additional information about the job and target object. For example, In case of "remote copy" operation “replLinkName” gives additional information about "name of datastore replication path"
uuidUuidUnique Tintri UUID for the object

Attributes
NameTypeDescription
createDatexsd:datetimeJob create date
isCancelablexsd:booleanFlag to specify whether a Job is cancelable or not
lastUpdatedTimeDateTimeLast time the entity is updated in the format YYYY-MM-DDThh:mm:ss.ms-/+zz:zz
localAliasxsd:stringAlias used for the entity instance in this Tintri API server. If an alias is not set, then localAlias is not returned.
progressDescriptionxsd:stringJob progress state description. Not all tasks set the progress state.
progressErrorxsd:booleanFlag denoting whether the progress has a progress error or not
progressPercentxsd:floatJob percentage progress (0 - 100%)
progressSecondsRemainingxsd:longSeconds remaining in job
stateQUEUED | RUNNING | SUCCESS | FAILED | CANCELLED | CANCEL_PENDING | ACKNOWLEDGEDCurrent job state.
QUEUEDJob is queued
RUNNINGJob is running
SUCCESSJob finished successfully
FAILEDJob finished in failure
CANCELLEDJob was cancelled
CANCEL_PENDINGJob has a cancel pending
ACKNOWLEDGEDNot used at this time
targetIdsxsd:list[xsd:string]The UUIDs of the target resource
targetTypeVM | VDISK | SNAPSHOT | JOB | ALERTS | DATASTORE_STAT | VM_STAT | VDISK_STAT | SERVICE_GROUPThe type of the job target
VMVirtual machine
VDISKVirtual disk
SNAPSHOTSnapshot
JOBJob
ALERTSAlert
DATASTORE_STATDatastore statistics
VM_STATVirtual Machine statistics
VDISK_STATVirtual disk statistics
SERVICE_GROUPService group
typeSNAPSHOT | CLONE | REMOTE_COPY | FAILOVER_TEST | FAILOVER | VM_SNAPSHOT_SYNC | RECREATE_REPL_CONFIG | SYNC_VM | RELOCATE_VM | SNAPSHOT_STORAGE_OBJECT | CLONE_STORAGE_OBJECT | CREATE_STORAGE_OBJECT | UPDATE_STORAGE_OBJECT | DELETE_STORAGE_OBJECT | REVERT_STORAGE_OBJECT | BIND_STORAGE_OBJECT | UNBIND_STORAGE_OBJECTJob type
SNAPSHOTSnapshot job
CLONEClone job
REMOTE_COPYRemote Copy job
FAILOVER_TESTFailover test job
FAILOVERFailover job
VM_SNAPSHOT_SYNCDeprecated
RECREATE_REPL_CONFIGRecreate replication configuation job
SYNC_VMSync virtual machine job
RELOCATE_VMRelocate virtual machine job
SNAPSHOT_STORAGE_OBJECTSnapshot storage object job
CLONE_STORAGE_OBJECTClone storage object job
CREATE_STORAGE_OBJECTCreate storage object job
UPDATE_STORAGE_OBJECTUpdate storage object job
DELETE_STORAGE_OBJECTDelete storage object job
REVERT_STORAGE_OBJECTRevert storage object job
BIND_STORAGE_OBJECTBind storage object job
UNBIND_STORAGE_OBJECTUnbind storage object job