Scheduled Task Get Info

Scheduled Task Get Info

Information about the current scheduled task.

Request
URI
GET
https://{api_host}/sdk/vim25/{release}/ScheduledTask/{moId}/info
COPY
Path Parameters
string
moId
Required

The unique identifier for the managed object to which the property attaches; the serialized managed object reference for a request has the form moType/moId, in this case ScheduledTask/{moId}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.


Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns ScheduledTaskInfo of type(s) application/json
This response body class contains all of the following: InlineScheduledTaskInfo0
"ScheduledTaskInfo Object"
scheduledTask
Required

Scheduled task object.

entity
Required

The entity on which related events will be logged.

If the task is scheduled on a ManagedEntity, this field will also reflect the same ManagedEntity. If task is scheduled on a ManagedObject, this field will have information about the entity on which the events will be logged on behalf of the ManagedObject. ManagedObject itself will be denoted by ScheduledTaskInfo.taskObject

string As date-time As date-time
lastModifiedTime
Required

The time the scheduled task is created or modified.

string
lastModifiedUser
Required

Last user that modified the scheduled task.

string As date-time As date-time
nextRunTime
Optional

The next time the scheduled task will run.

string As date-time As date-time
prevRunTime
Optional

The last time the scheduled task ran.

state
Required

Scheduled task state.

error
Optional

The fault code when the scheduled task state is "error".

result
Optional

The operation result when the scheduled task state is "success".

integer As int32 As int32
progress
Optional

The task progress when the scheduled task state is "running".

activeTask
Optional

The running task instance when the scheduled task state is "running".

taskObject
Required

The object on which the scheduled task is defined.

This field will have information about either the ManagedEntity or the ManagedObject on which the scheduled task is defined.


Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/sdk/vim25/{release}/ScheduledTask/{moId}/info