Deployment版本管理

回滚Deployment到指定版本

将Deployment回滚到指定的历史版本

post/k8s/cluster/{id}/namespaces/{namespaceName}/deployments/{deploymentName}/rollback

Request

  • The document declares no server URL.
  • Auth
    none declared. Required headers: Authorization

Path parameters

idinteger required

集群ID

namespaceNamestring required

命名空间名称

deploymentNamestring required

Deployment名称

Headers

Authorizationstring required

Bearer 用户Token

Request body

toRevisioninteger

目标版本号,0表示回滚到上一版本

Response

OK

codeinteger

状态码

messagestring

提示信息

Changes

No recorded changes to this operation across all 1 revision of this API.