---
title: "获取ConfigMap YAML"
method: GET
path: "/k8s/cluster/{id}/namespaces/{namespaceName}/configmaps/{configMapName}/yaml"
tags: ["K8s配置管理"]
---

# 获取ConfigMap YAML

`GET /k8s/cluster/{id}/namespaces/{namespaceName}/configmaps/{configMapName}/yaml`

获取指定ConfigMap的YAML配置

## Path parameters

- `id` integer, required
- `namespaceName` string, required
- `configMapName` string, required

## Response `200`

OK

- object
  - `code` integer — 状态码
  - `data` string — 返回的数据
  - `message` string — 提示信息

---

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