Method: projects.locations.instances.applySoftwareUpdate

在实例的选定节点上更新软件。

HTTP 请求

POST https://memcache.googleapis.com/v1beta2/{instance=projects/*/locations/*/instances/*}:applySoftwareUpdate

网址采用 gRPC 转码语法。

路径参数

参数
instance

string

必需。应应用软件更新的 Memcached 实例的资源名称。

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "nodeIds": [
    string
  ],
  "applyAll": boolean
}
字段
nodeIds[]

string

我们应向其应用更新的节点。请注意,所有选定节点都是并行更新。

applyAll

boolean

是否将更新应用于所有节点。如果设置为 true,则会明确限制用户指定任何节点,并将软件更新应用于实例中的所有节点(如果适用)。

响应正文

如果成功,则响应正文包含一个 Operation 实例。

授权范围

需要以下 OAuth 范围:

  • https://www.googleapis.com/auth/cloud-platform

如需了解详情,请参阅身份验证概览