Delen via


Data - Submit Task For Execution

Verzendt een taak voor uitvoering.

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

Aanvraagbody

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

Name Type Description
credentials

TaskExecutionCredentials

Referenties voor taakuitvoering

monitoringObjectIds

string[]

Object-id's bewaken

parametersWithValues

object

Parameters met waarden

taskId

string

Taak-id

Antwoorden

Name Type Description
200 OK

string

OK. Er is een taak verzonden die moet worden uitgevoerd.

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

Voorbeelden

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"
]

Definities

Name Description
TaskExecutionCredentials
TaskExecutionRequest

TaskExecutionCredentials

Name Type Description
domain

string

Domain

password

string

Wachtwoord

username

string

Gebruikersnaam

TaskExecutionRequest

Name Type Description
credentials

TaskExecutionCredentials

Referenties voor taakuitvoering

monitoringObjectIds

string[]

Object-id's bewaken

parametersWithValues

object

Parameters met waarden

taskId

string

Taak-id