Monitoring - Retrieve Widgets by Dashboard ID
Haalt de eigenschappen en configuratie op van alle widgets die in een specifiek dashboard zijn gedefinieerd
GET http://<Servername>/OperationsManager/monitoring/dashboard/{dashboardId}/widgets
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
dashboard
|
path | True |
string |
Geef de dashboard-id op |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
OK. Met succes de eigenschappen en configuratie van alle widgets in een specifiek dashboard opgehaald. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Voorbeelden
RetrieveWidgetsbyDashboardID
Voorbeeldaanvraag
GET http://<Servername>/OperationsManager/monitoring/dashboard/5a9d9caf-6453-5d7c-ae4d-cf53fb6dc298/widgets
Voorbeeldrespons
[
{
"id": "8c9a13a6-0547-facb-bf43-e4af529a3468",
"name": "Data from shell",
"description": null,
"mpId": "da187e72-b9d7-9e16-d098-3b0a624dc38c",
"componentType": "HtmlPowershellWidget",
"config": "{\"widgetDisplay\":{\"col\":1,\"row\":2,\"sizex\":6,\"sizey\":4},\"widgetParameters\":{\"script\":\"$class = Get-SCOMClass -Name Microsoft.Windows.Computer \\n$computers = Get-SCOMClassInstance -Class $class \\n$i=1 \\nforeach ($computer in $computers) \\n{ \\n $results=$ScriptContext.CreateFromObject($computer,\\\"Id=Id,HealthState=HealthState,DisplayName=DisplayName\\\",$null) \\n $results[\\\"CustomColumn\\\"]=$i \\n $ScriptContext.ReturnCollection.Add($results) \\n $i++ \\n}\"},\"widgetRefreshInterval\":5}"
}
]
Definities
ComponentResponse
Name | Type | Description |
---|---|---|
componentType |
string |
Onderdeeltype |
config |
string |
configuratie |
description |
string |
Beschrijving van de component |
id |
string |
ID-kaart |
mpId |
string |
MP-ID van onderdeel |
name |
string |
Onderdeelnaam |