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)

這是必要旗標,要將授權設定發布至的目標 GCP 專案編號。

location

string

這是必要旗標,要將授權設定發布至的目標 GCP 專案區域。

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 說明文件