Snapservice.Tasks.Info
The Snapservice.Tasks.Info schema contains information about a task.
This schema was added in vSphere API 8.0.3.0.
{
"progress": {
"total": 0,
"completed": 0,
"message": {
"id": "string",
"default_message": "string",
"args": [
"string"
],
"params": {
"params": {
"s": "string",
"dt": "string",
"i": 0,
"d": "number",
"l": "Vapi.Std.NestedLocalizableMessage Object",
"format": "string",
"precision": 0
}
},
"localized": "string"
}
},
"vc_task": "string",
"description": {
"id": "string",
"default_message": "string",
"args": [
"string"
],
"params": {
"params": {
"s": "string",
"dt": "string",
"i": 0,
"d": "number",
"l": "Vapi.Std.NestedLocalizableMessage Object",
"format": "string",
"precision": 0
}
},
"localized": "string"
},
"service": "string",
"operation": "string",
"parent": "string",
"target": {
"type": "string",
"id": "string"
},
"status": "string",
"cancelable": false,
"error": {},
"start_time": "string",
"end_time": "string",
"user": "string"
}
Progress of the operation.
This property was added in vSphere API 8.0.3.0.
This property is optional and it is only relevant when the value of status is one of Snapservice.Tasks.Status.RUNNING, Snapservice.Tasks.Status.BLOCKED, Snapservice.Tasks.Status.SUCCEEDED, or Snapservice.Tasks.Status.FAILED.
Result of the operation.
This property was added in vSphere API 8.0.3.0.
This property will be missing or null
if the operation does not return a result or if the result is not available at the current step of the operation.
Associated vCenter task for the given task.
This property was added in vSphere API 8.0.3.0.
This property will be missing or null
if there is no corresponding VC task created.
Description of the operation associated with the task.
This property was added in vSphere API 8.0.3.0.
Identifier of the service containing the operation.
This property was added in vSphere API 8.0.3.0.
When clients pass a value of this schema as a parameter, the property must be an identifier for the resource type: com.vmware.snapservice.service
. When operations return a value of this schema as a response, the property will be an identifier for the resource type: com.vmware.snapservice.service
.
Identifier of the operation associated with the task.
This property was added in vSphere API 8.0.3.0.
When clients pass a value of this schema as a parameter, the property must be an identifier for the resource type: com.vmware.snapservice.operation
. When operations return a value of this schema as a response, the property will be an identifier for the resource type: com.vmware.snapservice.operation
.
Parent of the current task.
This property was added in vSphere API 8.0.3.0.
This property will be missing or null
if the task has no parent.
When clients pass a value of this schema as a parameter, the property must be an identifier for the resource type: com.vmware.snapservice.task
. When operations return a value of this schema as a response, the property will be an identifier for the resource type: com.vmware.snapservice.task
.
Identifier of the target created by the operation or an existing one the operation performed on.
This property was added in vSphere API 8.0.3.0.
This property will be missing or null
if the operation has no target or multiple targets.
Status of the operation associated with the task.
Possible values:
PENDING
: The operation is in pending state.RUNNING
: The operation is in progress.BLOCKED
: The operation is blocked.
The operation could be blocked if the system is waiting for resources to be available to perform the operation.
SUCCEEDED
: The operation completed successfully.FAILED
: The operation failed.
For more information see: Snapservice.Tasks.Status.
This property was added in vSphere API 8.0.3.0.
Flag to indicate whether or not the operation can be cancelled. The value may change as the operation progresses.
This property was added in vSphere API 8.0.3.0.
Description of the error if the operation status is "FAILED".
This property was added in vSphere API 8.0.3.0.
If missing or null
the description of why the operation failed will be included in the result of the operation (see Snapservice.Tasks.Info.result).
Time when the operation is started.
This property was added in vSphere API 8.0.3.0.
This property is optional and it is only relevant when the value of status is one of Snapservice.Tasks.Status.RUNNING, Snapservice.Tasks.Status.BLOCKED, Snapservice.Tasks.Status.SUCCEEDED, or Snapservice.Tasks.Status.FAILED.
Time when the operation is completed.
This property was added in vSphere API 8.0.3.0.
This property is optional and it is only relevant when the value of status is one of Snapservice.Tasks.Status.SUCCEEDED or Snapservice.Tasks.Status.FAILED.
Name of the user who performed the operation.
This property was added in vSphere API 8.0.3.0.
This property will be missing or null
if the operation is performed by the system.