---
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
- `hostId` 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

- **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/e9e75c7c2edb/schema)
