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

# Show the resources stocks

`GET /resources/stocks`

get resource stocks in specified conditions

## Query parameters

- `arch` string
- `capacity` integer
- `clusterType` string
- `diskStatus` string
- `diskType` string
- `hostDiskType` string
- `hostId` string
- `hostIp` string
- `hostName` string
- `loadStat` string
- `purpose` string
- `rack` string
- `region` string
- `status` string
- `zone` string

## Response `200`

OK

- object
  - `code` integer
  - `data` object
    - `stocks` object — map[zone] -> stocks
  - `message` string

## Changes

- **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/stocks/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)
