Dela via


My Workspace - Update Dashboard Details in MyWorkspace

Uppdatera instrumentpanelen på min arbetsyta.

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

URI-parametrar

Name I Obligatorisk Typ Description
dashboardId
path True

string

Ange instrumentpanelens ID.

Begärandetext

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

Name Typ Description
dashboard

ComponentRequest

widgets

WidgetRequest[]

Svar

Name Typ Description
200 OK

boolean

OK. Instrumentpanelsinformationen i myworkspace har uppdaterats.

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

Exempel

MyWorkspace_UpdateDashboardDetails

Sample Request

PUT http://<Servername>/OperationsManager/myWorkspace/dashboard/09f98d55-b337-47c9-8a27-1825199dee27/widgets

{
  "dashboard": {
    "name": "Windows Dashbaord",
    "description": "test",
    "config": "",
    "componentType": ""
  },
  "widgets": [
    {
      "id": "0ed3b194-7f62-4bd3-bbc4-99f763c46a19",
      "name": "windows state",
      "description": "test",
      "config": "{\"widgetDisplay\":{\"col\":1,\"row\":1,\"sizex\":6,\"sizey\":4,\"columns\":[\"maintenancemode\",\"healthstate\",\"path\",\"displayname\"],\"payload\":\"0ed3b194-7f62-4bd3-bbc4-99f763c46a19\",\"dragHandle\":\".draggable\",\"resizeHandle\":\".resizable\"},\"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}",
      "componentType": "HtmlStateWidget"
    }
  ]
}

Sample Response

[
  "true"
]

Definitioner

Name Description
ComponentRequest
UpdateDashboard
WidgetRequest

ComponentRequest

Name Typ Description
componentType

string

Komponenttyp

config

string

Komponentkonfiguration

description

string

Beskrivning av komponent

name

string

Namnet på komponenten

UpdateDashboard

Name Typ Description
dashboard

ComponentRequest

widgets

WidgetRequest[]

WidgetRequest

Name Typ Description
componentType

string

Komponenttyp

config

string

Komponentkonfiguration

description

string

Beskrivning av komponent

id

string

Widget-ID

name

string

Namnet på komponenten