Partilhar via


My Workspace - Update Dashboard Details in MyWorkspace

Atualize o painel no meu espaço de trabalho.

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

Parâmetros do URI

Name Em Necessário Tipo Description
dashboardId
path True

string

Especifique o ID do painel de instrumentos.

Corpo do Pedido

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

Name Tipo Description
dashboard

ComponentRequest

widgets

WidgetRequest[]

Respostas

Name Tipo Description
200 OK

boolean

OK. Atualizado com sucesso detalhes do painel no meu espaço de trabalho.

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

Exemplos

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

Definições

Name Description
ComponentRequest
UpdateDashboard
WidgetRequest

ComponentRequest

Name Tipo Description
componentType

string

Tipo de Componente

config

string

Componente Config

description

string

Descrição do Componente

name

string

Nome do Componente

UpdateDashboard

Name Tipo Description
dashboard

ComponentRequest

widgets

WidgetRequest[]

WidgetRequest

Name Tipo Description
componentType

string

Tipo de Componente

config

string

Componente Config

description

string

Descrição do Componente

id

string

Widget ID

name

string

Nome do Componente