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 文档