Partilhar via


My Workspace - RetrieveWidgets in MyWorkspace

Recupera o painel de instrumentos e o widget no painel de instrumentos.

GET http://<Servername>/OperationsManager/myWorkspace/dashboard/{dashboardId}/widgets

Parâmetros do URI

Name Em Necessário Tipo Description
dashboardId
path True

string

Especificar o ID do painel de instrumentos

Respostas

Name Tipo Description
200 OK

ComponentResponse[]

Ok. Widgets recuperados com sucesso no painel de instrumentos.

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

Exemplos

MyWorkspace_RetrieveWidgets

Sample Request

GET http://<Servername>/OperationsManager/myWorkspace/dashboard/ea1c7f80-8022-4222-9be4-6158d46abd87/widgets

Sample Response

[
  {
    "id": "7ecc8c4f-a648-4a8a-b1f7-59b4c2e40070",
    "name": "test",
    "description": null,
    "mpId": null,
    "componentType": "HtmlAlertWidget",
    "config": "{\"widgetDisplay\":{\"col\":1,\"row\":1,\"sizex\":6,\"sizey\":4,\"columns\":[\"severity\",\"monitoringobjectdisplayname\",\"name\",\"age\",\"repeatcount\",\"lastmodified\"],\"groupByColumn\":\"nogrouping\",\"expandGroupByColumn\":false,\"sortByColumn\":\"nosorting\",\"sortOrder\":1},\"widgetParameters\":{\"scope\":{\"scopeSelection\":[]},\"criteria\":{\"severities\":[\"0\",\"1\",\"2\"],\"priorities\":[\"2\",\"1\",\"0\"],\"resolutionStates\":[\"0\",\"247\",\"248\",\"249\",\"250\",\"254\",\"255\"],\"age\":7,\"ageTimeUnit\":\"days\"}},\"widgetRefreshInterval\":5}"
  },
  {
    "id": "c40b80cf-f604-4a27-8b54-587dd58e830e",
    "name": "state",
    "description": null,
    "mpId": null,
    "componentType": "HtmlStateWidget",
    "config": "{\"widgetDisplay\":{\"col\":1,\"row\":2,\"sizex\":6,\"sizey\":4,\"columns\":[\"healthstate\",\"displayname\"]},\"widgetParameters\":{\"scope\":{\"scopeSelection\":[],\"classSelection\":[{\"id\":\"3c8ac4f3-475e-44dd-4163-8a97af363705\",\"displayName\":\"All Windows Computers\",\"className\":\"Microsoft.SystemCenter.Library!Microsoft.SystemCenter.AllComputersGroup\",\"path\":null,\"fullName\":null,\"objectType\":-2}]},\"criteria\":{\"healthStates\":[\"3\",\"0\",\"2\",\"1\"],\"inMaintenanceMode\":\"All\"}},\"widgetRefreshInterval\":5}"
  }
]

Definições

ComponentResponse

Name Tipo Description
componentType

string

Tipo de Componente

config

string

configuração

description

string

Descrição do componente

id

string

ID

mpId

string

ID mp componente

name

string

Nome do Componente