Method: billingAccounts.billingAccountLicenseConfigs.distributeLicenseConfig

将结算账号级层的 LicenseConfig 分配到项目级层。

HTTP 请求

POST https://discoveryengine.googleapis.com/v1alpha/{billingAccountLicenseConfig=billingAccounts/*/billingAccountLicenseConfigs/*}:distributeLicenseConfig

网址采用 gRPC 转码语法。

路径参数

参数
billingAccountLicenseConfig

string

必需。BillingAccountLicenseConfig 的完整资源名称。

格式:billingAccounts/{billingAccount}/billingAccountLicenseConfigs/{billingAccountLicenseConfigId}

请求正文

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

JSON 表示法
{
  "projectNumber": string,
  "location": string,
  "licenseCount": string,
  "licenseConfigId": string
}
字段
projectNumber

string (int64 format)

必需。要将许可配置分发到的目标 Google Cloud 项目编号。

location

string

必需。要将许可配置分发到的目标 Google Cloud 项目区域。

licenseCount

string (int64 format)

必需。要分发的许可数量。

licenseConfigId

string

可选。将席位分配给此许可配置,而不是创建新的许可配置。如果未指定,系统将根据结算账号许可配置创建新的许可配置。

响应正文

LicenseConfigService.DistributeLicenseConfig 方法的响应消息。

如果成功,响应正文将包含结构如下的数据:

JSON 表示法
{
  "licenseConfig": {
    object (LicenseConfig)
  }
}
字段
licenseConfig

object (LicenseConfig)

更新或创建的 LicenseConfig。

授权范围

需要以下 OAuth 范围之一:

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

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

IAM 权限

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

  • discoveryengine.billingAccountLicenseConfigs.distribute

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