批量更新政策
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如需同时修改多个政策,您可以使用 batchModify
批量处理请求。只有在满足以下所有条件的情况下,才能批量处理请求:
- 指相同的目标资源(组织部门)
共享相同的命名空间(架构仅在叶上有所不同)。
示例:您可以批量处理 chrome.devices.A
和 chrome.devices.B
,但不能批量处理 chrome.devices.A
和 chrome.devices.managedGuest.B
。
如果架构是键控的,则必须存在相同的键,但可以具有不同的值。
示例:您可以在同一组织部门中修改不同打印机的设置。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe \u003ccode\u003ebatchModify\u003c/code\u003e request allows for modifying multiple policies within a single Organizational Unit simultaneously, streamlining policy management.\u003c/p\u003e\n"],["\u003cp\u003eTo be batched together, requests must share the same target resource, namespace (with schema differences only on the leaf), and, if keyed, the same keys (though values can differ).\u003c/p\u003e\n"],["\u003cp\u003eBatching requests is recommended to minimize server load and stay within usage limits.\u003c/p\u003e\n"]]],[],null,["# Batch update policies\n\nTo modify multiple policies at the same time, you can batch requests with\n[`batchModify`](/chrome/policy/reference/rest/v1/customers.policies.orgunits/batchModify).\nRequests can only be batched together if the meet all the following criteria:\n\n1. Refer to the same target resource (Organizational Unit)\n2. Share the same namespace (schemas differ only on the leaf).\n\n **Example:** You can batch `chrome.devices.A` and `chrome.devices.B`, but not\n `chrome.devices.A` and `chrome.devices.managedGuest.B`.\n3. If schemas are keyed, the same keys must be present, but can have different values.\n\n **Example:** You can modify settings of different printers in the same\n Organizational Unit.\n\n| **Note:** Modifying multiple policies at once in a single [`batchModify`](/chrome/policy/reference/rest/v1/customers.policies.orgunits/batchModify) request is recommended to reduce the number of requests to the server. Learn more about [Usage limits](/chrome/policy/guides/overview#usage_limits)."]]