Method: policies.get
קבלת המדיניות של בקרת הגישה למשאב. מחזירה מדיניות ריקה אם המשאב קיים ולא הוגדרה מדיניות.
בקשת HTTP
POST https://sasportal.googleapis.com/v1alpha1/policies:get
כתובת ה-URL כוללת תחביר gRPC קידוד מחדש.
גוף הבקשה
גוף הבקשה מכיל נתונים במבנה הבא:
ייצוג JSON |
{
"resource": string
} |
שדות |
resource |
string
חובה. המשאב שלגביו מבקשים את המדיניות.
|
גוף התגובה
אם התגובה מוצלחת, גוף התגובה מכיל מופע של 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)."],[[["Retrieves the access control policy for a given resource, returning an empty policy if none is set."],["Utilizes a POST request to the `https://sasportal.googleapis.com/v1alpha1/policies:get` endpoint with a JSON request body specifying the resource."],["The response body will contain the policy details within a `Policy` object if successful."],["Requires the `https://www.googleapis.com/auth/sasportal` OAuth scope for authorization."]]],["The core content describes how to retrieve an access control policy for a resource. A `POST` request is sent to `https://sasportal.googleapis.com/v1alpha1/policies:get`. The request body requires a JSON object with a \"resource\" string field, specifying the target resource. A successful response returns a `Policy` object. The process requires the OAuth scope `https://www.googleapis.com/auth/sasportal` for authorization. An empty policy will be returned if no policy is set.\n"]]