Method: enterprises.policies.patch
עדכון או יצירה של מדיניות.
בקשת HTTP
PATCH https://androidmanagement.googleapis.com/v1/{name=enterprises/*/policies/*}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
name |
string
שם המדיניות בפורמט enterprises/{enterpriseId}/policies/{policyId} .
|
פרמטרים של שאילתה
פרמטרים |
updateMask |
string (FieldMask format)
אנונימיזציה של השדות שמציינת את השדות שרוצים לעדכן. אם לא תגדירו את הפרמטר, כל השדות שניתנים לשינוי ישתנו. זוהי רשימה של שמות שדות מוגדרים במלואם, שמופרדים בפסיקים. דוגמה: "user.displayName,photo"
|
גוף הבקשה
גוף הבקשה מכיל מופע של Policy
.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של Policy
.
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/androidmanagement
מידע נוסף זמין בOAuth 2.0 Overview.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-02-19 (שעון UTC).
[null,null,["עדכון אחרון: 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"]]