TosError
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
出现服务条款 (ToS) 错误。如果用户(由 OAuth 凭据表示)尚未接受最新版本的零触摸注册服务条款,API 方法会返回 HTTP 403 Forbidden
状态代码。
API 用户可以登录零触摸注册门户来接受新的或更新后的服务条款。此门户会在用户登录时向其显示 aToS 接受面板。
JSON 表示法 |
{
"latestTosAccepted": boolean
} |
字段 |
latestTosAccepted |
boolean
用户是否已接受最新版本的服务条款。如果包含在错误中,则值为 false 。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eAPI methods return a \u003ccode\u003e403 Forbidden\u003c/code\u003e error if the user hasn't accepted the latest Terms of Service (ToS).\u003c/p\u003e\n"],["\u003cp\u003eUsers can accept the new or updated ToS by signing into the zero-touch enrollment portal.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003elatestTosAccepted\u003c/code\u003e field in the JSON representation indicates whether the user has agreed to the current ToS, with a \u003ccode\u003efalse\u003c/code\u003e value in case of an error.\u003c/p\u003e\n"]]],["The API returns a `403 Forbidden` error when a user hasn't accepted the latest Terms of Service (ToS). Users can accept the ToS via the zero-touch enrollment portal. The JSON representation for ToS status includes a boolean field, `latestTosAccepted`. This field is `false` in error responses, indicating that the user needs to accept the latest ToS. Access the zero-touch enrollment portal to accept the ToS.\n"],null,["# TosError\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nA Terms of Service (ToS) error. API methods return an HTTP `403 Forbidden` status code if the user (represented by the OAuth credentials) hasn't accepted the latest version of the zero-touch enrollment ToS.\n\nAPI users can accept new or updated ToS by signing in to the zero-touch enrollment [portal](https://enterprise.google.com/android/zero-touch/customers). The portal presents aToS acceptance panel to users when they sign in.\n\n| JSON representation ||\n|------------------------------------------|---|\n| ``` { \"latestTosAccepted\": boolean } ``` |\n\n| Fields ||\n|---------------------|------------------------------------------------------------------------------------------------------------------------|\n| `latestTosAccepted` | `boolean` Whether the user has accepted the latest version of the ToS. The value is `false` when included in an error. |"]]