Data - Retrieve Task Result
Hämtar resultatet av en utförd uppgift
GET http://<Servername>/OperationsManager/data/getTaskResult/{batchId}
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
batch
|
path | True |
string |
Ange batch-ID |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
Okej. Resultatet av en utförd uppgift har hämtats. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Exempel
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
}
Definitioner
TaskResultResponse
Name | Typ | Description |
---|---|---|
batchId |
string |
Batch-ID |
errorCode |
integer |
Felkod |
errorMessage |
string |
Felmeddelande |
taskName |
string |
aktivitetsnamn |
taskOutput |
string |
Aktivitetsutdata |
taskStatus |
string |
Uppgiftsstatus |
taskTarget |
string |
Uppgiftsmål |