Devices: update
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
기기 정책을 업데이트합니다.
정책을 올바르게 시행하려면 관리되지 않는 앱 또는
Google Play에 액세스할 수 없도록
Google Cloud 콘솔의 관리 구성에 있는 allowed_accounts
Play 패키지 제한 보기
Google Play 계정을 사용해야 합니다.
요청
HTTP 요청
PUT https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId/devices/deviceId
매개변수
매개변수 이름 |
값 |
설명 |
경로 매개변수 |
deviceId |
string |
기기의 ID입니다.
|
enterpriseId |
string |
기업의 ID입니다.
|
userId |
string |
사용자의 ID입니다.
|
선택적 쿼리 매개변수 |
updateMask |
string |
업데이트할 필드를 식별하는 마스크입니다. 설정하지 않으면 모든 수정 가능한
필드가 수정됩니다
쿼리 매개변수에 설정할 경우 이 필드는
updateMask=<field1>,<field2>,...
|
승인
다음 범위를 사용하여 이 요청을 인증받아야 합니다.
범위 |
https://www.googleapis.com/auth/androidenterprise |
자세한 내용은 인증 및 승인 페이지를 참조하세요.
요청 본문
요청 본문에 Devices 리소스를 제공합니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-10-14(UTC)
[null,null,["최종 업데이트: 2024-10-14(UTC)"],[[["\u003cp\u003eThis operation updates a device's policy, requiring authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidenterprise\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eTo enforce the policy effectively, it's crucial to restrict unmanaged accounts from accessing Google Play by configuring \u003ccode\u003eallowed_accounts\u003c/code\u003e in the managed configuration for the Google Play package.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify which fields to update using the \u003ccode\u003eupdateMask\u003c/code\u003e query parameter, otherwise all modifiable fields will be changed.\u003c/p\u003e\n"],["\u003cp\u003eThe request utilizes a PUT method and targets a specific URL structure including enterprise ID, user ID, and device ID.\u003c/p\u003e\n"],["\u003cp\u003eA successful operation returns a \u003ccode\u003eDevices\u003c/code\u003e resource, reflecting the updated device policy information.\u003c/p\u003e\n"]]],[],null,["# Devices: update\n\n| **Note:** Requires [authorization](#auth).\n\nUpdates the device policy.\n\n\u003cbr /\u003e\n\n\nTo ensure the policy is properly enforced, you need to prevent unmanaged\naccounts from accessing Google Play by setting the\n`allowed_accounts` in the managed configuration for the Google\nPlay package. See [restrict\naccounts in Google Play](https://developer.android.com/work/dpc/security#google-play-accounts).\n\nRequest\n-------\n\n### HTTP request\n\n```\nPUT https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId/devices/deviceId\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|----------------|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Path parameters** |||\n| `deviceId` | `string` | The ID of the device. |\n| `enterpriseId` | `string` | The ID of the enterprise. |\n| `userId` | `string` | The ID of the user. |\n| **Optional query parameters** |||\n| `updateMask` | `string` | Mask that identifies which fields to update. If not set, all modifiable fields will be modified. \u003cbr /\u003e When set in a query parameter, this field should be specified as `updateMask=\u003cfield1\u003e,\u003cfield2\u003e,...` |\n\n### Authorization\n\nThis request requires authorization with the following scope:\n\n| Scope |\n|-----------------------------------------------------|\n| `https://www.googleapis.com/auth/androidenterprise` |\n\nFor more information, see the [authentication and authorization](/android/work/play/emm-api/v1/how-tos/authorizing) page.\n\n### Request body\n\nIn the request body, supply a [Devices resource](/android/work/play/emm-api/v1/devices#resource).\n\nResponse\n--------\n\nIf successful, this method returns a [Devices resource](/android/work/play/emm-api/v1/devices#resource) in the response body."]]