Partilhar via


Data - Retrieve Tasks

Recupera a lista de tarefas e suas propriedades.

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

Corpo do Pedido

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

Name Necessário Tipo Description
id True

string

ID de tarefa

viewType True

string

Tipo de visualização

Respostas

Name Tipo Description
200 OK

TaskListResponse[]

Ok. Recuperou com sucesso a lista de tarefas e suas propriedades.

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

Exemplos

GetTaskPaneData

Sample Request

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

{
  "id": "dfba68de-a600-4244-9c5f-04c1e056a037",
  "viewType": "HtmlAlertWidget"
}

Sample Response

[
  {
    "displayName": "Windows Computer Tasks",
    "taskListType": "DynamicTasks",
    "taskList": [
      {
        "id": "023ee23d-db8d-9de7-1923-c0c50d66850f",
        "displayName": "Resubmit local cache state change events.",
        "description": "Submits the snapshot of instance state change events from health service local cache for repeated collection.",
        "iconUrl": "/OperationsManager/images/task/taskIcon.png",
        "targets": [
          {
            "id": "b4abc994-7f94-ef4b-9a4b-69611635f6a0",
            "name": "SCOMFBOMVM0065.smx.net",
            "runLocation": null
          }
        ],
        "parameters": []
      },
      {
        "id": "f5ea8691-50c6-3555-4166-e71120134ef7",
        "displayName": "Show Failed Rules and Monitors for this Object",
        "description": null,
        "iconUrl": "/OperationsManager/images/task/taskIcon.png",
        "targets": [
          {
            "id": "b4abc994-7f94-ef4b-9a4b-69611635f6a0",
            "name": "SCOMFBOMVM0065.smx.net",
            "runLocation": null
          }
        ],
        "parameters": []
      },
      {
        "id": "bab05472-d548-f69c-ee7d-7c51e2cc890d",
        "displayName": "Show local cache for state change events.",
        "description": "Displays the snapshot of instance state change events from health service local cache.",
        "iconUrl": "/OperationsManager/images/task/taskIcon.png",
        "targets": [
          {
            "id": "b4abc994-7f94-ef4b-9a4b-69611635f6a0",
            "name": "SCOMFBOMVM0065.smx.net",
            "runLocation": null
          }
        ],
        "parameters": []
      },
      {
        "id": "5d649d3c-7c4c-8dec-a1fd-2f5711ac7f3d",
        "displayName": "Show Running Rules and Monitors for this Object",
        "description": null,
        "iconUrl": "/OperationsManager/images/task/taskIcon.png",
        "targets": [
          {
            "id": "b4abc994-7f94-ef4b-9a4b-69611635f6a0",
            "name": "SCOMFBOMVM0065.smx.net",
            "runLocation": null
          }
        ],
        "parameters": []
      }
    ]
  }
]

Definições

Name Description
TaskListResponse
TaskParameter
TaskRequest
TaskResponse
TaskTarget

TaskListResponse

Name Tipo Description
displayName

string

Nome do visor de tarefa

taskList

TaskResponse[]

Listas de tarefas

taskListType

string

Tipo de Lista de Tarefas

TaskParameter

Name Tipo Description
defaultValue

string

Valor padrão do parâmetro de tarefa

displayName

string

Nome de exibição do parâmetro de tarefa

id

string

ID

name

string

Nome do parâmetro de tarefa

parameterType

string

tipo de parâmetro de tarefa

TaskRequest

Name Tipo Description
id

string

ID de tarefa

viewType

string

Tipo de visualização

TaskResponse

Name Tipo Description
description

string

Descrição da Tarefa

displayName

string

Nome do visor de tarefa

iconUrl

string

URL do ícone

id

string

ID de tarefa

parameters

TaskParameter[]

Parâmetros de tarefa

targets

TaskTarget[]

Lista de alvos de tarefas

TaskTarget

Name Tipo Description
id

string

Id de alvo de tarefa

name

string

Nome do alvo da tarefa

runLocation

string

Localização de execução de tarefas