Dela via


Data - Retrieve Items In My Workspace Tree View

Hämtar listan över vyer/instrumentpaneler/mappar som är tillgängliga i trädvyn för min arbetsyta.

GET http://<Servername>/OperationsManager/data/myWorkspaceTree

Svar

Name Typ Description
200 OK

TreeViewResponse

Okej. Listan över vyer/instrumentpaneler/mappar som är tillgängliga i trädvyn Min arbetsyta har hämtats.

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

Exempel

GetMyWorkspaceTree

Sample Request

GET http://<Servername>/OperationsManager/data/myWorkspaceTree

Sample Response

{
  "data": [
    {
      "children": [
        {
          "children": [],
          "id": "00000000-0000-0000-0000-000000000000",
          "mpId": null,
          "label": "Favorite Reports",
          "description": "Favorite Reports",
          "viewType": "ReportListView",
          "expandedIcon": "/OperationsManager/images/NavigationPane/Report.png",
          "collapsedIcon": "/OperationsManager/images/NavigationPane/Report.png",
          "icon": "/OperationsManager/images/NavigationPane/Report.png",
          "expanded": false,
          "isSealed": false,
          "parent": "MyWorkspaceRoot",
          "url": "/MonitoringView/default.aspx?ViewType=ReportListView&ViewID=00000000-0000-0000-0000-000000000000",
          "type": "child",
          "isShortcut": true
        },
        {
          "children": [],
          "id": "Folder_429fe15d0a7a4244bc3a96da83a8e11b",
          "mpId": null,
          "label": "Favorite Views",
          "description": "Favorite Views",
          "viewType": "FavoritesRoot",
          "expandedIcon": "/OperationsManager/images/NavigationPane/FavoriteView.png",
          "collapsedIcon": "/OperationsManager/images/NavigationPane/FavoriteView.png",
          "icon": "/OperationsManager/images/NavigationPane/FavoriteView.png",
          "expanded": true,
          "isSealed": false,
          "parent": "MyWorkspaceRoot",
          "url": "/MonitoringView/default.aspx?ViewType=Overview&ViewID=Favorites_Overview",
          "type": "parent",
          "isShortcut": false
        },
        {
          "children": [],
          "id": "SavedSearchesRoot",
          "mpId": null,
          "label": "Saved Searches",
          "description": "Saved Searches",
          "viewType": "SavedSearchesRoot",
          "expandedIcon": "/OperationsManager/images/NavigationPane/Search.png",
          "collapsedIcon": "/OperationsManager/images/NavigationPane/Search.png",
          "icon": "/OperationsManager/images/NavigationPane/Search.png",
          "expanded": false,
          "isSealed": false,
          "parent": "MyWorkspaceRoot",
          "url": "/MonitoringView/default.aspx?ViewType=Overview&ViewID=Favorites_Overview",
          "type": "child",
          "isShortcut": false
        }
      ],
      "id": "MyWorkspaceRoot",
      "mpId": null,
      "label": "My Workspace",
      "description": "My Workspace",
      "viewType": "MyWorkspaceRoot",
      "expandedIcon": "/OperationsManager/images/NavigationPane/MyWorkspacePane.png",
      "collapsedIcon": "/OperationsManager/images/NavigationPane/MyWorkspacePane.png",
      "icon": "/OperationsManager/images/NavigationPane/MyWorkspacePane.png",
      "expanded": true,
      "isSealed": false,
      "parent": "MyWorkspaceRoot",
      "url": "/MonitoringView/default.aspx?ViewType=MonitoringNavigation&ViewID=Favorites_Overview",
      "type": "parent",
      "isShortcut": false
    }
  ]
}

Definitioner

Name Description
TreeNode
TreeViewResponse

TreeNode

Name Typ Description
children

TreeNode[]

collapsedIcon

string

Dold ikon

description

string

Description

expanded

boolean

Utökad

expandedIcon

string

Expanderad ikon

icon

string

Ikon

id

string

ID

isSealed

boolean

är förseglad

isShortcut

boolean

är en genväg

label

string

Etikett

mpId

string

hanteringspaket-ID

parent

string

Överordnad

type

string

IdType

url

string

URL

viewType

string

Vytyp

TreeViewResponse

Name Typ Description
data

TreeNode[]

Trädnoddata