Data - Retrieve Tasks

Görevlerin listesini ve özelliklerini alır.

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

İstek Gövdesi

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

Name Gerekli Tür Description
id True

string

Görev Kimliği

viewType True

string

Görünüm Türü

Yanıtlar

Name Tür Description
200 OK

TaskListResponse[]

TAMAM. Görevlerin listesi ve özellikleri başarıyla alındı.

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

Örnekler

GetTaskPaneData

Örnek isteği

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

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

Örnek yanıt

[
  {
    "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": []
      }
    ]
  }
]

Tanımlar

Name Description
TaskListResponse
TaskParameter
TaskRequest
TaskResponse
TaskTarget

TaskListResponse

Name Tür Description
displayName

string

Görev Görünen Adı

taskList

TaskResponse[]

Görev listeleri

taskListType

string

Görev Listesi Türü

TaskParameter

Name Tür Description
defaultValue

string

Görev parametresinin varsayılan değeri

displayName

string

task parametresi Görünen Ad

id

string

kimlik

name

string

task parametresi Adı

parameterType

string

Görev Parametre Türü

TaskRequest

Name Tür Description
id

string

Görev Kimliği

viewType

string

Görünüm Türü

TaskResponse

Name Tür Description
description

string

Görev Açıklaması

displayName

string

Görev Görünen Adı

iconUrl

string

Simge URL'si

id

string

Görev Kimliği

parameters

TaskParameter[]

Görev parametreleri

targets

TaskTarget[]

Görev hedeflerinin listesi

TaskTarget

Name Tür Description
id

string

Görev hedefi kimliği

name

string

Görev hedefi Adı

runLocation

string

task run Konum