Method: billingAccounts.billingAccountLicenseConfigs.retractLicenseConfig

這個方法會從帳單帳戶端呼叫,將指定專案的 LicenseConfig 撤回至帳單帳戶。

HTTP 要求

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

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
billingAccountLicenseConfig

string

這是必要旗標,BillingAccountLicenseConfig 的完整資源名稱。

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

要求主體

要求主體包含下列結構的資料:

JSON 表示法
{
  "licenseConfig": string,
  "fullRetract": boolean,
  "licenseCount": string
}
欄位
licenseConfig

string

這是必要旗標,LicenseConfig 的完整資源名稱。

格式:projects/{project}/locations/{location}/licenseConfigs/{licenseConfigId}

fullRetract

boolean

(選用步驟) 如果設為 true,則撤銷整個授權設定。否則,請撤銷指定數量的授權。

licenseCount

string (int64 format)

(選用步驟) 要撤銷的授權數量。只有在 fullRetract 為 false 時使用。

回應主體

LicenseConfigService.RetractLicenseConfig 方法的回應訊息。

如果成功,回應主體會含有以下結構的資料:

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.retract

詳情請參閱 IAM 說明文件