Partilhar via


My Workspace - Retrieve Widget in MyWorkspace

Recupera os detalhes do widget no meu painel de instrumentos de trabalho.

GET http://<Servername>/OperationsManager/myWorkspace/widget/{widgetId}

Parâmetros do URI

Name Em Necessário Tipo Description
widgetId
path True

string

Especificar o ID do widget

Respostas

Name Tipo Description
200 OK

ComponentResponse

Ok. Recuperou com sucesso detalhes do widget.

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

Exemplos

MyWorkspace_RetrieveWidget

Sample Request

GET http://<Servername>/OperationsManager/myWorkspace/widget/7ecc8c4f-a648-4a8a-b1f7-59b4c2e40070

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

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