---
title: "通过YAML更新PV"
method: PUT
path: "/k8s/cluster/{id}/pvs/{pvName}/yaml"
tags: ["K8s存储管理-PV"]
---

# 通过YAML更新PV

`PUT /k8s/cluster/{id}/pvs/{pvName}/yaml`

通过提供的YAML内容更新PV配置

## Path parameters

- `id` integer, required
- `pvName` string, required

## Headers

- `Authorization` string, required

## Request body

- object

## Response `200`

OK

- object
  - `code` integer — 状态码
  - `data` 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)
