Last modified 13 Mar 2024 13:32 +01:00
Get Task Object
curl --user administrator:y0uR_P455woR*d \
-H "Accept: application/json" \
-X GET http://localhost:8080/midpoint/ws/rest/tasks/6d13632c-6b75-4a33-9744-ec9523375f6b?options=raw \
-v

The response is an HTTP 200 code in case of success with a response body containing the queried item.

Example Output of "Get Task Object" example

The example is simplified, some properties were removed to keep the example output "short". This example does not contain all possible properties of this object type.

{
  "task" : {
    "oid" : "6d13632c-6b75-4a33-9744-ec9523375f6b",
    "version" : "",
    "name" : "Recompute all direct members of Role Basic Employee",
    "metadata" : {},
    "operationExecution" : {},
    "assignment" : {},
    "iteration" : 0,
    "iterationToken" : "",
    "archetypeRef" : {},
    "roleMembershipRef" : {},
    "taskIdentifier" : "",
    "ownerRef" : {},
    "executionState" : "",
    "schedulingState" : "",
    "result" : {},
    "resultStatus" : "",
    "lastRunStartTimestamp" : "",
    "lastRunFinishTimestamp" : "",
    "completionTimestamp" : "",
    "progress" :,
    "operationStats" : {},
    "binding" : "loose",
    "activity" : {},
    "activityState" : {},
    "affectedObjects" : {}
  }
}
Was this page helpful?
YES NO
Thanks for your feedback