Partilhar via


Data - Retrieve Items In My Workspace Tree View

Recupera a lista de vistas/dashboards/pasta disponíveis na vista da árvore do meu espaço de trabalho.

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

Respostas

Name Tipo Description
200 OK

TreeViewResponse

Ok. Recuperou com sucesso a lista de pontos de vista/dashboards/pasta disponíveis na vista da árvore My Workspace.

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

Exemplos

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

Definições

Name Description
TreeNode
TreeViewResponse

TreeNode

Name Tipo Description
children

TreeNode[]

collapsedIcon

string

Ícone colapsado

description

string

Descrição

expanded

boolean

Expandido

expandedIcon

string

Ícone expandido

icon

string

Ícone

id

string

ID

isSealed

boolean

é Selado

isShortcut

boolean

é atalho

label

string

Etiqueta

mpId

string

ID do pacote de gestão

parent

string

Principal

type

string

IdType

url

string

Url

viewType

string

Tipo de visualização

TreeViewResponse

Name Tipo Description
data

TreeNode[]

Dados do nó da árvore