Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Aktualizuje zasady dotyczące urządzeń.
Aby mieć pewność, że zasada jest prawidłowo egzekwowana, musisz uniemożliwić
dostępu do Google Play przez ustawienie
allowed_accounts w konfiguracji zarządzanej dla Google
Odtwórz pakiet. Zobacz ograniczenie
w Google Play.
Żądanie
Żądanie HTTP
PUT https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId/devices/deviceId
Parametry
Nazwa parametru
Wartość
Opis
Parametry ścieżki
deviceId
string
Identyfikator urządzenia.
enterpriseId
string
Identyfikator grupy.
userId
string
Identyfikator użytkownika.
Opcjonalne parametry zapytania
updateMask
string
Maska określająca pola do zaktualizowania. Jeśli nie jest skonfigurowana, wszystkie można modyfikować
– pola zostaną zmodyfikowane.
Po ustawieniu tego pola w parametrze zapytania powinno ono być określone jako
updateMask=<field1>,<field2>,...
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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,[]]