Data - Retrieve Task Result
Retrieves the result of an executed task
GET http://<Servername>/OperationsManager/data/getTaskResult/{batchId}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
batch
|
path | True |
string |
Specify the batch ID |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK.Successfully retrieved the result of an executed task. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Examples
GetTaskResult
Sample Request
GET http://<Servername>/OperationsManager/data/getTaskResult/789be4ae-d365-4dca-8cdc-0c8c3b239689
Sample Response
{
"batchId": "789be4ae-d365-4dca-8cdc-0c8c3b239689",
"taskName": "Show Running Rules and Monitors for this Object",
"taskStatus": "Started",
"taskTarget": "scomserver1.,contoso.net",
"taskOutput": null,
"errorCode": null,
"errorMessage": null
}
Definitions
TaskResultResponse
Name | Type | Description |
---|---|---|
batchId |
string |
Batch ID |
errorCode |
integer |
Error code |
errorMessage |
string |
Error Message |
taskName |
string |
task Name |
taskOutput |
string |
Task Output |
taskStatus |
string |
Task Status |
taskTarget |
string |
Task target |