Method: projects.locations.instances.register

向 Notebooks API 服务器注册现有的旧版笔记本实例。旧版实例是指使用旧版 Compute Engine 调用创建的实例。这些实例无法通过 Notebooks API 直接管理。此调用可使这些实例能够通过 Notebooks API 进行管理。

HTTP 请求

POST https://notebooks.googleapis.com/v1/{parent}/instances:register

路径参数

参数
parent

string

必需。格式:parent=projects/{projectId}/locations/{location}

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

  • notebooks.instances.create

请求正文

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

JSON 表示法
{
  "instanceId": string
}
字段
instanceId

string

必需。相应实例的用户定义的唯一 ID。instanceId 的长度必须介于 1 到 63 个字符之间,并且只能包含小写字母、数字字符和短划线。第一个字符必须是小写字母,最后一个字符不能是短划线。

响应正文

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

授权范围

需要以下 OAuth 范围:

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

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