Method: policies.set
המדיניות הזו קובעת את מדיניות בקרת הגישה במשאב שצוין. מחליף כל מדיניות קיימת.
בקשת HTTP
POST https://sasportal.googleapis.com/v1alpha1/policies:set
כתובת ה-URL כוללת תחביר gRPC קידוד מחדש.
גוף הבקשה
גוף הבקשה מכיל נתונים במבנה הבא:
ייצוג JSON |
{
"resource": string,
"policy": {
object (Policy )
},
"disableNotification": boolean
} |
שדות |
resource |
string
חובה. המשאב שעבורו המדיניות מצוין. המדיניות הזו מחליפה כל מדיניות קיימת.
|
policy |
object (Policy )
חובה. המדיניות שתחול על resource .
|
disableNotification |
boolean
אופציונלי. כדי להשבית את ההתראה להצטרפות, צריך להגדיר את השדה true .
|
גוף התגובה
אם התגובה מוצלחת, גוף התגובה מכיל מופע של Policy
.
היקפי הרשאה
יש צורך בהיקף OAuth הבא:
https://www.googleapis.com/auth/sasportal
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2022-11-02 (שעון UTC).
[null,null,["עדכון אחרון: 2022-11-02 (שעון UTC)."],[[["Sets the access control policy on a specified resource, replacing any existing policy."],["The request body requires the resource, the policy to be applied, and optionally allows disabling onboarding notifications."],["A successful response returns the applied policy."],["Utilizes the `https://www.googleapis.com/auth/sasportal` OAuth scope for authorization."]]],["The core function is to set an access control policy on a resource via a `POST` HTTP request to `https://sasportal.googleapis.com/v1alpha1/policies:set`. The request body, in JSON format, requires a `resource` string and a `policy` object. Optionally, `disableNotification` can be set to `true`. A successful request returns a `Policy` instance. This process requires the `https://www.googleapis.com/auth/sasportal` OAuth scope. Existing policies are replaced.\n"]]