list of the operations allowed in this state. This list is advisory only and the server state may have changed by the time this field is read by a client.
Default value:
{}
Published in:
XenServer 4.0 (rio)
list of the operations allowed in this state. This list is advisory only and the server state may have changed by the time this field is read by a client.
links each of the running tasks using this object (by reference) to a current_operation enum which describes the nature of the task.
Default value:
{}
Published in:
XenServer 4.0 (rio)
links each of the running tasks using this object (by reference) to a current_operation enum which describes the nature of the task.
string seterror_info[RO/runtime]
if the task has failed, this field contains the set of associated error strings. Undefined otherwise.
Published in:
XenServer 4.0 (rio)
if the task has failed, this field contains the set of associated error strings. Undefined otherwise.
datetimefinished[RO/runtime]
Time task finished (i.e. succeeded or failed). If task-status is pending, then the value of this field has no meaning
Published in:
XenServer 4.0 (rio)
Time task finished (i.e. succeeded or failed). If task-status is pending, then the value of this field has no meaning
stringname_description[RO/runtime]
a notes field containing human-readable description
Default value:
""
Published in:
XenServer 4.0 (rio)
a notes field containing human-readable description
stringname_label[RO/runtime]
a human-readable name
Default value:
""
Published in:
XenServer 4.0 (rio)
a human-readable name
(string → string) mapother_config[RW]
additional configuration
Default value:
{}
Published in:
XenServer 4.1 (miami)
additional configuration
floatprogress[RO/runtime]
This field contains the estimated fraction of the task which is complete. This field should not be used to determine whether the task is complete - for this the status field of the task should be used.
Published in:
XenServer 4.0 (rio)
This field contains the estimated fraction of the task which is complete. This field should not be used to determine whether the task is complete - for this the status field of the task should be used.
host refresident_on[RO/runtime]
the host on which the task is running
Published in:
XenServer 4.0 (rio)
the host on which the task is running
stringresult[RO/runtime]
if the task has completed successfully, this field contains the result value (either Void or an object reference). Undefined otherwise.
Published in:
XenServer 4.0 (rio)
if the task has completed successfully, this field contains the result value (either Void or an object reference). Undefined otherwise.
enum task_status_typestatus[RO/runtime]
current status of the task
Published in:
XenServer 4.0 (rio)
current status of the task
task refsubtask_of[RO/runtime]
Ref pointing to the task this is a substask of.
Default value:
Null
Published in:
XenServer 5.0 (orlando)
Ref pointing to the task this is a substask of.
task ref setsubtasks[RO/runtime]
List pointing to all the substasks.
Published in:
XenServer 5.0 (orlando)
List pointing to all the substasks.
stringtype[RO/runtime]
if the task has completed successfully, this field contains the type of the encoded result (i.e. name of the class whose reference is in the result field). Undefined otherwise.
Published in:
XenServer 4.0 (rio)
if the task has completed successfully, this field contains the type of the encoded result (i.e. name of the class whose reference is in the result field). Undefined otherwise.
Add the given key-value pair to the other_config field of the given task.
Parameters:
session ref session_id
Reference to a valid session
task ref self
reference to the object
string key
Key to add
string value
Value to add
Minimum role:
pool-operator
Published in:
XenServer 4.1 (miami)
additional configuration
voidcancel(session ref, task ref)
Request that a task be cancelled. Note that a task may fail to be cancelled and may complete or fail normally and note that, even when a task does cancel, it might take an arbitrary amount of time.
Parameters:
session ref session_id
Reference to a valid session
task ref task
The task
Minimum role:
read-only
Errors:
OPERATION_NOT_ALLOWED
You attempted an operation that was not allowed.
Published in:
XenServer 4.0 (rio)
Request that a task be cancelled. Note that a task may fail to be cancelled and may complete or fail normally and note that, even when a task does cancel, it might take an arbitrary amount of time.
task refcreate(session ref, string, string)
Create a new task object which must be manually destroyed.
Parameters:
session ref session_id
Reference to a valid session
string label
short label for the new task
string description
longer description for the new task
Minimum role:
read-only
Result:
The reference of the created task object
Published in:
XenServer 4.0 (rio)
Create a new task object which must be manually destroyed.
voiddestroy(session ref, task ref)
Destroy the task object
Parameters:
session ref session_id
Reference to a valid session
task ref self
Reference to the task object
Minimum role:
read-only
Published in:
XenServer 4.0 (rio)
Destroy the task object
task ref setget_all(session ref)
Return a list of all the tasks known to the system.
Get the allowed_operations field of the given task.
Parameters:
session ref session_id
Reference to a valid session
task ref self
reference to the object
Minimum role:
read-only
Result:
value of the field
Published in:
XenServer 4.0 (rio)
list of the operations allowed in this state. This list is advisory only and the server state may have changed by the time this field is read by a client.
This field contains the estimated fraction of the task which is complete. This field should not be used to determine whether the task is complete - for this the status field of the task should be used.
task recordget_record(session ref, task ref)
Get a record containing the current state of the given task.
Parameters:
session ref session_id
Reference to a valid session
task ref self
reference to the object
Minimum role:
read-only
Result:
all fields from the object
Published in:
XenServer 4.0 (rio)
A long-running asynchronous task
host refget_resident_on(session ref, task ref)
Get the resident_on field of the given task.
Parameters:
session ref session_id
Reference to a valid session
task ref self
reference to the object
Minimum role:
read-only
Result:
value of the field
Published in:
XenServer 4.0 (rio)
the host on which the task is running
stringget_result(session ref, task ref)
Get the result field of the given task.
Parameters:
session ref session_id
Reference to a valid session
task ref self
reference to the object
Minimum role:
read-only
Result:
value of the field
Published in:
XenServer 4.0 (rio)
if the task has completed successfully, this field contains the result value (either Void or an object reference). Undefined otherwise.
if the task has completed successfully, this field contains the type of the encoded result (i.e. name of the class whose reference is in the result field). Undefined otherwise.