Method: customers.policies.orgunits.batchInherit
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Sửa đổi nhiều giá trị chính sách được áp dụng cho một đơn vị tổ chức cụ thể để những giá trị đó kế thừa giá trị từ đơn vị tổ chức chính (nếu có). Tất cả các mục tiêu phải có cùng định dạng mục tiêu. Điều này có nghĩa là các khoá này phải trỏ đến cùng một tài nguyên đích và phải có cùng các khoá được chỉ định trong additionalTargetKeyNames
, mặc dù giá trị của các khoá đó có thể khác nhau. Khi không thành công, yêu cầu sẽ trả về thông tin chi tiết về lỗi như một phần của google.rpc.Status.
Yêu cầu HTTP
POST https://chromepolicy.googleapis.com/v1/{customer=customers/*}/policies/orgunits:batchInherit
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Tham số |
customer |
string
Mã của tài khoản G Suite hoặc giá trị cố định "my_customer" cho khách hàng có liên quan đến yêu cầu.
|
Nội dung yêu cầu
Nội dung yêu cầu chứa dữ liệu có cấu trúc sau:
Trường |
requests[] |
object (InheritOrgUnitPolicyRequest )
Danh sách các chính sách phải kế thừa giá trị do requests xác định. Tất cả yêu cầu trong danh sách này phải tuân thủ các quy định hạn chế sau:
- Tất cả giản đồ trong danh sách này phải có cùng không gian tên gốc.
- Tất cả giá trị "policyTargetKey.targetResource" phải trỏ đến một đơn vị tổ chức
nguồn.
- Tất cả giá trị "policyTargetKey" phải có cùng tên khoá trong
"additionalTargetKeys" (Các khoá mục tiêu bổ sung). Điều này cũng có nghĩa là nếu một trong số
các mục tiêu có bản đồ "additionalTargetKeys" trống, tất cả
các mục tiêu phải có bản đồ "additionalTargetKeys" trống.
- Không có hai yêu cầu sửa đổi nào có thể tham chiếu cùng một `policySchema` +
Cặp " policyTargetKey".
|
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ trống.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/chrome.management.policy
InheritOrgUnitPolicyRequest
Yêu cầu các tham số để kế thừa giá trị chính sách của một mục tiêu đơn vị tổ chức cụ thể từ giá trị chính sách của đơn vị tổ chức chính.
Biểu diễn dưới dạng JSON |
{
"policyTargetKey": {
object (PolicyTargetKey )
},
"policySchema": string
} |
Trường |
policyTargetKey |
object (PolicyTargetKey )
Bắt buộc. Khoá của mục tiêu mà chúng ta muốn sửa đổi chính sách. Tài nguyên mục tiêu phải trỏ đến một Đơn vị tổ chức.
|
policySchema |
string
Tên đủ điều kiện của giản đồ chính sách đang được kế thừa.
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eAllows modifying multiple policy values applied to a specific organizational unit to inherit from a parent.\u003c/p\u003e\n"],["\u003cp\u003eRequires all target resources to have the same format, including keys specified in \u003ccode\u003eadditionalTargetKeyNames\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eUses a \u003ccode\u003ePOST\u003c/code\u003e request to \u003ccode\u003ehttps://chromepolicy.googleapis.com/v1/{customer=customers/*}/policies/orgunits:batchInherit\u003c/code\u003e with necessary path and request body parameters.\u003c/p\u003e\n"],["\u003cp\u003eDemands authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/chrome.management.policy\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eReturns an empty response body upon successful execution, and error details within \u003ccode\u003egoogle.rpc.Status\u003c/code\u003e on failure.\u003c/p\u003e\n"]]],[],null,["# Method: customers.policies.orgunits.batchInherit\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [InheritOrgUnitPolicyRequest](#InheritOrgUnitPolicyRequest)\n - [JSON representation](#InheritOrgUnitPolicyRequest.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nModify multiple policy values that are applied to a specific org unit so that they now inherit the value from a parent (if applicable). All targets must have the same target format. That is to say that they must point to the same target resource and must have the same keys specified in `additionalTargetKeyNames`, though the values for those keys may be different. On failure the request will return the error details as part of the google.rpc.Status.\n\n### HTTP request\n\n`POST https://chromepolicy.googleapis.com/v1/{customer=customers/*}/policies/orgunits:batchInherit`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------|---------------------------------------------------------------------------------------------------------|\n| `customer` | `string` ID of the G Suite account or literal \"my_customer\" for the customer associated to the request. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"requests\": [ { object (/chrome/policy/reference/rest/v1/customers.policies.orgunits/batchInherit#InheritOrgUnitPolicyRequest) } ] } ``` |\n\n| Fields ||\n|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requests[]` | `object (`[InheritOrgUnitPolicyRequest](/chrome/policy/reference/rest/v1/customers.policies.orgunits/batchInherit#InheritOrgUnitPolicyRequest)`)` List of policies that have to inherit their values as defined by the `requests`. All requests in the list must follow these restrictions: 1. All schemas in the list must have the same root namespace. 2. All \\`policyTargetKey.targetResource\\` values must point to an org unit resource. 3. All \\`policyTargetKey\\` values must have the same key names in the \\` additionalTargetKeys\\`. This also means if one of the targets has an empty \\`additionalTargetKeys\\` map, all of the targets must have an empty \\`additionalTargetKeys\\` map. 4. No two modification requests can reference the same \\`policySchema\\` + \\` policyTargetKey\\` pair. |\n\n### Response body\n\nIf successful, the response body is empty.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/chrome.management.policy`\n\nInheritOrgUnitPolicyRequest\n---------------------------\n\nRequest parameters for inheriting policy value of a specific org unit target from the policy value of its parent org unit.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------|\n| ``` { \"policyTargetKey\": { object (/chrome/policy/reference/rest/v1/PolicyTargetKey) }, \"policySchema\": string } ``` |\n\n| Fields ||\n|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `policyTargetKey` | `object (`[PolicyTargetKey](/chrome/policy/reference/rest/v1/PolicyTargetKey)`)` Required. The key of the target for which we want to modify a policy. The target resource must point to an Org Unit. |\n| `policySchema` | `string` The fully qualified name of the policy schema that is being inherited. |"]]