---
title: "获取存储类详情"
method: GET
path: "/k8s/cluster/{id}/storageclasses/{storageClassName}"
tags: ["K8s存储管理-StorageClass"]
---

# 获取存储类详情

`GET /k8s/cluster/{id}/storageclasses/{storageClassName}`

获取指定存储类的详细信息

## Path parameters

- `id` integer, required
- `storageClassName` string, required

## Headers

- `Authorization` string, required

## Response `200`

OK

- object
  - `code` integer — 状态码
  - `data` object — 返回的数据
    - `allowVolumeExpansion` boolean — 允许卷扩展
    - `allowedTopologies` ModelStorageClassTopology[] — 允许的拓扑
      - `matchLabelExpressions` ModelStorageClassTopologyExp[] — 匹配标签表达式
        - `key` string — 键
        - `values` string[] — 值
    - `createdAt` string — 创建时间
    - `events` ModelK8sEvent[] — 相关事件
      - `count` integer — 发生次数
      - `firstTime` string — 首次时间
      - `lastTime` string — 最后时间
      - `message` string — 消息
      - `reason` string — 原因
      - `source` string — 事件源
      - `type` string — 事件类型
    - `labels` object — 标签
    - `mountOptions` string[] — 挂载选项
    - `name` string — 存储类名称
    - `parameters` object — 参数
    - `provisioner` string — 提供者
    - `reclaimPolicy` string — 回收策略
    - `spec` unknown
    - `volumeBindingMode` string — 卷绑定模式
  - `message` string — 提示信息

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/opsre/apis/devops.md) · [All operations](https://skmtc.net/opsre/apis/devops/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opsre/devops/revisions/25cac8835c4c/schema)
