Dela via


My Workspace - Retrieve Widget in MyWorkspace

Hämtar widgetinformationen på instrumentpanelen för min arbetsyta.

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

URI-parametrar

Name I Obligatorisk Typ Description
widgetId
path True

string

Ange widget-ID:t

Svar

Name Typ Description
200 OK

ComponentResponse

Okej. Widgetinformationen har hämtats.

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

Exempel

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

Definitioner

ComponentResponse

Name Typ Description
componentType

string

Komponenttyp

config

string

konfiguration

description

string

Komponentbeskrivning

id

string

ID

mpId

string

Mp-ID för komponent

name

string

Komponentnamn