Method: projects.locations.collections.engines.servingConfigs.create

创建 ServingConfig。

注意:Google Cloud 控制台仅适用于默认的投放配置。只能通过 API 创建和管理其他 ServingConfig。

一个 Engine 中最多允许有 100 个 ServingConfig,否则会返回 RESOURCE_EXHAUSTED 错误。

HTTP 请求

POST https://discoveryengine.googleapis.com/v1alpha/{parent=projects/*/locations/*/collections/*/engines/*}/servingConfigs

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。父级的完整资源名称。格式:projects/{project}/locations/{location}/collections/{collection}/engines/{engine}

查询参数

参数
servingConfigId

string

必需。要用于 ServingConfig 的 ID,该 ID 将成为 ServingConfig 资源名称的最后一个组成部分。

此值应为 4-63 个字符,有效字符为 /[a-zA-Z0-9][a-zA-Z0-9_-]+/。

请求正文

请求正文包含一个 ServingConfig 实例。

响应正文

如果成功,响应正文将包含一个新创建的 ServingConfig 实例。

授权范围

需要以下 OAuth 范围之一:

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

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

IAM 权限

需要拥有 parent 资源的以下 IAM 权限:

  • discoveryengine.servingConfigs.create

如需了解详情,请参阅 IAM 文档