Method: projects.locations.runtimes.switch

切换托管式笔记本运行时。

HTTP 请求

POST https://notebooks.googleapis.com/v1/{name}:switch

路径参数

参数
name

string

必需。格式:projects/{projectId}/locations/{location}/runtimes/{runtimeId}

必须对指定的资源 name 具有以下 IAM 权限才能进行授权:

  • notebooks.runtimes.switch

请求正文

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

JSON 表示法
{
  "machineType": string,
  "acceleratorConfig": {
    object (RuntimeAcceleratorConfig)
  },
  "requestId": string
}
字段
machineType

string

机器类型。

acceleratorConfig

object (RuntimeAcceleratorConfig)

加速器配置。

requestId

string

幂等请求 UUID。

响应正文

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

授权范围

需要以下 OAuth 范围:

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

如需了解详情,请参阅 Authentication Overview