Method: enterprises.policies.patch
aktualizuje lub tworzy zasadę.
Żądanie HTTP
PATCH https://androidmanagement.googleapis.com/v1/{name=enterprises/*/policies/*}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
name |
string
Nazwa zasady w formacie enterprises/{enterpriseId}/policies/{policyId} .
|
Parametry zapytania
Parametry |
updateMask |
string (FieldMask format)
Maska pól określająca pola do zaktualizowania. Jeśli nie ustawisz tego pola, zmodyfikowane zostaną wszystkie pola modyfikowalne. Jest to lista pełnych nazw pól rozdzielona przecinkami. Przykład: "user.displayName,photo" .
|
Treść żądania
Treść żądania zawiera wystąpienie elementu Policy
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu Policy
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/androidmanagement
Więcej informacji znajdziesz w OAuth 2.0 Overview.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-02-19 UTC.
[null,null,["Ostatnia aktualizacja: 2025-02-19 UTC."],[[["This operation updates or creates an enterprise policy using a PATCH request to the specified URL."],["The request must include path and query parameters to identify the target policy and specify fields to update."],["Both request and response bodies utilize the `Policy` object for data transfer."],["Authorization requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope."]]],["This describes how to update or create a policy using a PATCH HTTP request to a specific URL. The URL path, including the enterprise and policy IDs, is defined by `name`. Optional `updateMask` query parameter specifies which policy fields to modify. The request and response bodies both utilize the `Policy` data structure. Authorization requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope. The provided document details the URL structure, required parameters, and body content.\n"]]