---
title: "暂停Deployment滚动更新"
method: POST
path: "/k8s/cluster/{id}/namespaces/{namespaceName}/deployments/{deploymentName}/pause"
tags: ["Deployment版本管理"]
---

# 暂停Deployment滚动更新

`POST /k8s/cluster/{id}/namespaces/{namespaceName}/deployments/{deploymentName}/pause`

暂停正在进行的Deployment滚动更新过程

## Path parameters

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

## Headers

- `Authorization` string, required

## Response `200`

OK

- object
  - `code` integer — 状态码
  - `data` object — 返回的数据
    - `deploymentName` string — Deployment名称
    - `message` string — 响应消息
    - `namespace` string — 命名空间
    - `status` string — 当前状态
    - `success` boolean — 是否暂停成功
  - `message` string — 提示信息

## Other responses

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

---

[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)
