Delen via


My Workspace - Update Widget in MyWorkspace

Updates de widget in het myworkspace-dashboard

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

URI-parameters

Name In Vereist Type Description
widgetId
path True

string

Geef de widget-id op

Aanvraagbody

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

Name Vereist Type Description
name True

string

Naam van onderdeel

componentType

string

Onderdeeltype

config

string

Configuratie van onderdelen

description

string

Beschrijving van onderdeel

Antwoorden

Name Type Description
200 OK

boolean

OK. De widget is bijgewerkt in MyWorkspace.

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

Voorbeelden

MyWorkspace_updateWidget

Sample Request

PUT http://<Servername>/OperationsManager/myWorkspace/widget/6d91d7cd-729f-4cc3-938b-6cdb75842a49

{
  "name": "testwidget",
  "description": "test",
  "config": "{\"widgetDisplay\":{\"col\":1,\"row\":3,\"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}",
  "componentType": "HtmlAlertWidget"
}

Sample Response

[
  "true"
]

Definities

ComponentRequest

Name Type Description
componentType

string

Onderdeeltype

config

string

Configuratie van onderdelen

description

string

Beschrijving van onderdeel

name

string

Naam van onderdeel