批次更新政策
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
如要同時修改多項政策,您可以透過 batchModify
批次處理要求。只有在符合下列所有條件時,才能批次提出要求:
- 參照相同的目標資源 (機構單位)
共用相同的命名空間 (結構定義在分葉上不同)。
範例:您可以批次處理 chrome.devices.A
和 chrome.devices.B
,但無法批次處理 chrome.devices.A
和 chrome.devices.managedGuest.B
。
如果結構定義為鍵,就必須使用相同的鍵,但值可能不同。
範例:您可以修改同一個機構單位中不同印表機的設定。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間: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)."]]