Method: customers.policies.orgunits.batchInherit
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
특정 조직 단위에 적용되는 여러 정책 값을 수정하여 상위 조직 단위의 값을 상속합니다 (해당하는 경우). 모든 타겟은 타겟 형식이 동일해야 합니다. 즉, 동일한 타겟 리소스를 가리켜야 하고 additionalTargetKeyNames
에 지정된 동일한 키를 보유해야 하지만 키의 값은 다를 수 있습니다. 실패 시 요청은 google.rpc.Status의 일부로 오류 세부정보를 반환합니다.
HTTP 요청
POST https://chromepolicy.googleapis.com/v1/{customer=customers/*}/policies/orgunits:batchInherit
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 |
customer |
string
G Suite 계정의 ID 또는 문자 그대로의 'my_customer'입니다. '요청'과 관련된 고객 ID입니다.
|
요청 본문
요청 본문에는 다음과 같은 구조의 데이터가 포함됩니다.
필드 |
requests[] |
object (InheritOrgUnitPolicyRequest )
requests 에서 정의한 대로 값을 상속해야 하는 정책 목록입니다. 목록의 모든 요청은 다음 제한사항을 따라야 합니다.
- 목록의 모든 스키마는 루트 네임스페이스가 동일해야 합니다.
- 모든 'policyTargetKey.targetResource' 값이 조직 단위를 가리켜야 합니다.
리소스도 제공합니다
- 모든 `policyTargetKey` 값은
` additionalTargetKeys`로 설정합니다. 또한
타겟에 빈 `additionalTargetKeys` 맵이 있고,
대상에는 빈 `additionalTargetKeys` 맵이 있어야 합니다.
- 두 개의 수정 요청은 동일한 `policySchema` +
` policyTargetKey` 쌍입니다.
|
응답 본문
성공한 경우 응답 본문은 비어 있습니다.
승인 범위
다음 OAuth 범위가 필요합니다.
https://www.googleapis.com/auth/chrome.management.policy
InheritOrgUnitPolicyRequest
상위 조직 단위의 정책 값에서 특정 조직 단위 타겟의 정책 값을 상속하기 위한 요청 매개변수입니다.
JSON 표현 |
{
"policyTargetKey": {
object (PolicyTargetKey )
},
"policySchema": string
} |
필드 |
policyTargetKey |
object (PolicyTargetKey )
필수 항목입니다. 정책을 수정할 대상의 키입니다. 대상 리소스가 조직 단위를 가리켜야 합니다.
|
policySchema |
string
상속되는 정책 스키마의 정규화된 이름입니다.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 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. |"]]