---
title: "Show the resources hierarchy"
method: GET
path: "/resources/hierarchy"
tags: ["resource"]
---

# Show the resources hierarchy

`GET /resources/hierarchy`

get resource hierarchy-tree

## Query parameters

- `Depth` integer
- `Level` integer
- `arch` string
- `clusterType` string
- `hostDiskType` string
- `hostId` string
- `hostName` string
- `loadStat` string
- `purpose` string
- `status` string

## Response `200`

OK

- object
  - `code` integer
  - `data` object
    - `root` StructsHierarchyTreeNode
      - `code` string
      - `name` string
      - `prefix` string
      - `subNodes` StructsHierarchyTreeNode[]
  - `message` string

## Changes

> 50 revisions in range; 1 could not be searched.

- **2022-04-13** `dd2bd350861b` — 3 info
  - added the new optional `query` request parameter `clusterType`
  - added the new optional `query` request parameter `hostDiskType`
  - added the new optional `query` request parameter `hostName`
- **2022-04-08** `52d3173e154e` — 3 warning
  - deleted the `query` request parameter `clusterType`
  - deleted the `query` request parameter `hostDiskType`
  - deleted the `query` request parameter `hostName`
- **2022-03-29** `efe58bdc749d` — 3 info
  - added the new optional `query` request parameter `clusterType`
  - added the new optional `query` request parameter `hostDiskType`
  - added the new optional `query` request parameter `hostName`
- **2022-03-07** `e9e75c7c2edb` — 3 warning
  - deleted the `query` request parameter `clusterType`
  - deleted the `query` request parameter `hostDiskType`
  - deleted the `query` request parameter `hostName`

[Change history](https://skmtc.dev/pingcap/apis/em-ui-api/changes/resources/hierarchy/get.md)

---

[API](https://skmtc.dev/pingcap/apis/em-ui-api.md) · [All operations](https://skmtc.dev/pingcap/apis/em-ui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pingcap/em-ui-api/revisions/631e4b26b7e8/schema)
