Dela via


Data - Submit Task For Execution

Skickar en uppgift för körning.

POST http://<Servername>/OperationsManager/data/submitTask

Begärandetext

Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

Name Typ Description
credentials

TaskExecutionCredentials

Autentiseringsuppgifter för aktivitetskörning

monitoringObjectIds

string[]

Övervaka objekt-ID:t

parametersWithValues

object

Parametrar med värden

taskId

string

Aktivitets-ID

Svar

Name Typ Description
200 OK

string

OK. En uppgift som ska köras har skickats.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

Exempel

SubmitTaskForExecution

Sample Request

POST http://<Servername>/OperationsManager/data/submitTask

{
  "taskId": "5d649d3c-7c4c-8dec-a1fd-2f5711ac7f3d",
  "monitoringObjectIds": [
    "b4abc994-7f94-ef4b-9a4b-69611635f6a0"
  ],
  "parametersWithValues": {},
  "credentials": {
    "domain": "contoso",
    "username": "scomuser",
    "password": "passwords"
  }
}

Sample Response

[
  "789be4ae-d365-4dca-8cdc-0c8c3b239689"
]

Definitioner

Name Description
TaskExecutionCredentials
TaskExecutionRequest

TaskExecutionCredentials

Name Typ Description
domain

string

Domain

password

string

Lösenord

username

string

Användarnamn

TaskExecutionRequest

Name Typ Description
credentials

TaskExecutionCredentials

Autentiseringsuppgifter för aktivitetskörning

monitoringObjectIds

string[]

Övervaka objekt-ID:t

parametersWithValues

object

Parametrar med värden

taskId

string

Aktivitets-ID