Data - Submit Task For Execution

Submits a task for execution.

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

Request Body

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

Name Type Description
credentials

TaskExecutionCredentials

Credentials for task execution

monitoringObjectIds

string[]

Monitoring Object Ids

parametersWithValues

object

Parameters with Values

taskId

string

Task ID

Responses

Name Type Description
200 OK

string

OK. Successfully submitted a task to be executed.

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

Examples

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

Definitions

Name Description
TaskExecutionCredentials
TaskExecutionRequest

TaskExecutionCredentials

Name Type Description
domain

string

Domain

password

string

Password

username

string

Username

TaskExecutionRequest

Name Type Description
credentials

TaskExecutionCredentials

Credentials for task execution

monitoringObjectIds

string[]

Monitoring Object Ids

parametersWithValues

object

Parameters with Values

taskId

string

Task ID