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/userinfo.email
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2022-09-26 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2022-09-26 (שעון UTC)."],[[["Retrieves the access control policy for a specific resource, returning an empty policy if none is set."],["Utilizes a POST request to the designated endpoint with the resource specified in the request body."],["The response provides the policy details if successful, or an empty policy if the resource exists but lacks a policy."],["Requires authorization with the `https://www.googleapis.com/auth/userinfo.email` scope."]]],["The core content describes how to retrieve an access control policy for a resource using a `POST` request to `https://sasportal.googleapis.com/v1alpha1/policies:get`. The request body requires a `resource` string field, specifying the target resource. A successful response returns a `Policy` instance. An empty policy is returned if no policy is set. This process requires the OAuth scope `https://www.googleapis.com/auth/userinfo.email` for authorization.\n"]]