云容器实例 CCI-更新Deployment的伸缩操作:URI

时间:2024-11-06 15:35:46

URI

PATCH /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale

表1 路径参数

参数

是否必选

参数类型

描述

name

String

name of the Scale

namespace

String

object name and auth scope, such as for teams and projects

表2 Query参数

参数

是否必选

参数类型

描述

dryRun

String

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldManager

String

fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).

force

Boolean

Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.

pretty

String

If 'true', then the output is pretty printed.

support.huaweicloud.com/api-cci/patchAppsV1NamespacedDeploymentScale.html