Method: enterprises.policies.modifyPolicyApplications
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
정책에서 애플리케이션을 업데이트하거나 만듭니다.
HTTP 요청
POST https://androidmanagement.googleapis.com/v1/{name=enterprises/*/policies/*}:modifyPolicyApplications
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 |
name |
string
필수입니다. 업데이트할 ApplicationPolicy 객체가 포함된 Policy 의 이름입니다(enterprises/{enterpriseId}/policies/{policyId} 형식).
|
요청 본문
요청 본문에는 다음과 같은 구조의 데이터가 포함됩니다.
필드 |
changes[] |
object (ApplicationPolicyChange )
필수입니다. ApplicationPolicy 객체에 적용할 변경사항입니다. ApplicationPolicyChange 이 하나 이상 있어야 합니다.
|
응답 본문
지정된 정책에서 ApplicationPolicy 객체를 업데이트하거나 생성하라는 요청에 대한 응답입니다.
성공한 경우 응답 본문은 다음과 같은 구조의 데이터를 포함합니다.
JSON 표현 |
{
"policy": {
object (Policy )
}
} |
필드 |
policy |
object (Policy )
업데이트된 정책입니다.
|
승인 범위
다음 OAuth 범위가 필요합니다.
https://www.googleapis.com/auth/androidmanagement
자세한 내용은 OAuth 2.0 Overview를 참조하세요.
ApplicationPolicyChange
단일 ApplicationPolicy 객체에 적용할 변경사항입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[],[],null,["# Method: enterprises.policies.modifyPolicyApplications\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 - [JSON representation](#body.ModifyPolicyApplicationsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [ApplicationPolicyChange](#ApplicationPolicyChange)\n - [JSON representation](#ApplicationPolicyChange.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nUpdates or creates applications in a policy.\n\n### HTTP request\n\n`POST https://androidmanagement.googleapis.com/v1/{name=enterprises/*/policies/*}:modifyPolicyApplications`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the [`Policy`](/android/management/reference/rest/v1/enterprises.policies#Policy) containing the [`ApplicationPolicy`](/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy) objects to be updated, in the form `enterprises/{enterpriseId}/policies/{policyId}`. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"changes\": [ { object (/android/management/reference/rest/v1/enterprises.policies/modifyPolicyApplications#ApplicationPolicyChange) } ] } ``` |\n\n| Fields ||\n|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `changes[]` | `object (`[ApplicationPolicyChange](/android/management/reference/rest/v1/enterprises.policies/modifyPolicyApplications#ApplicationPolicyChange)`)` Required. The changes to be made to the ApplicationPolicy objects. There must be at least one `ApplicationPolicyChange`. |\n\n### Response body\n\nResponse to a request to update or create ApplicationPolicy objects in the given policy.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------|\n| ``` { \"policy\": { object (/android/management/reference/rest/v1/enterprises.policies#Policy) } } ``` |\n\n| Fields ||\n|----------|--------------------------------------------------------------------------------------------------------------|\n| `policy` | `object (`[Policy](/android/management/reference/rest/v1/enterprises.policies#Policy)`)` The updated policy. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidmanagement`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2).\n\nApplicationPolicyChange\n-----------------------\n\nA change to be made to a single ApplicationPolicy object.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"application\": { object (/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy) }, \"updateMask\": string } ``` |\n\n| Fields ||\n|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `application` | `object (`[ApplicationPolicy](/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy)`)` If [`ApplicationPolicy.packageName`](/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.package_name) matches an existing ApplicationPolicy object within the [`Policy`](/android/management/reference/rest/v1/enterprises.policies#Policy) being modified, then that object will be updated. Otherwise, it will be added to the end of the [`Policy.applications`](/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.applications). |\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` The field mask indicating the fields to update. If omitted, all modifiable fields are updated. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |"]]