排查 Enterprise License Manager API 问题
本页介绍了作为转销商使用 Enterprise License Manager API 时可能会遇到的一些常见问题。
如果 Google Cloud 项目未启用该 API,就会出现此错误。如需解决此问题,请前往 Google Cloud 控制台,然后启用该 API。如需了解详情,请参阅启用 Google Workspace API。
403:domainCannotUseApis
如果您的客户停用了转销商对 Admin SDK API 的访问权限,就会出现此错误。如需解决此问题,请让客户重新启用对 Admin SDK API 的访问权限。如需了解详情,请参阅控制 API 访问权限。
403:forbidden
如果您不是客户的所有者,或者客户已停用转销商对其管理控制台的访问权限,就会出现此错误。
如需解决此问题,请在发出调用之前调用 customers.get
方法以验证转销商对客户的所有权,或者请客户重新启用转销商对其管理控制台的访问权限。如需了解详情,请参阅访问客户的管理控制台。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-21。
[null,null,["最后更新时间 (UTC):2024-12-21。"],[[["This page outlines common Enterprise License Manager API errors for resellers."],["Errors can occur due to disabled API access, restricted reseller permissions, or lack of customer ownership."],["Solutions involve enabling the API, customer re-enabling reseller access, or verifying customer ownership."],["Links to relevant Google Workspace Admin Help articles provide further guidance."]]],["The document outlines three common errors encountered with the Enterprise License Manager API for resellers. `403:usageLimits.accessNotConfigured` indicates the API isn't enabled in the Google Cloud project, requiring enablement in the console. `403:domainCannotUseApis` means the customer disabled reseller access to the Admin SDK API, necessitating the customer to re-enable it. `403:forbidden` occurs when the reseller doesn't own the customer or the customer disabled Admin console access; resolve by verifying ownership or having the customer re-enable access.\n"]]