האובייקט הזה מכיל את ההגדרות שסופקו ל-repositoryGroups.getIamPolicy.
ייצוג ב-JSON
{"requestedPolicyVersion": integer}
שדות
requestedPolicyVersion
integer
זה שינוי אופציונלי. גרסת המדיניות המקסימלית שתשמש לפורמט המדיניות.
הערכים החוקיים הם 0, 1 ו-3. בקשות עם ערך לא חוקי נדחות.
בבקשות למדיניות עם קישורי תפקידים מותנים, צריך לציין את הגרסה 3. במדיניות ללא קישורי תפקידים מותנים, אפשר לציין כל ערך חוקי או להשאיר את השדה ללא הגדרה.
יכול להיות שהמדיניות בתגובה תשתמש בגרסה של המדיניות שציינתם, או בגרסה ישנה יותר של המדיניות. לדוגמה, אם מציינים גרסה 3 אבל למדיניות אין קישורי תפקידים מותנים, התשובה תשתמש בגרסה 1.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["התוכן קשה להבנה","hardToUnderstand","thumb-down"],["שגיאות בקוד לדוגמה או במידע","incorrectInformationOrSampleCode","thumb-down"],["חסרים לי פרטים או דוגמאות","missingTheInformationSamplesINeed","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-06-09 (שעון UTC)."],[[["\u003cp\u003eThis webpage details how to retrieve the access control policy for a specified resource using the \u003ccode\u003egetIamPolicy\u003c/code\u003e method, which returns an empty policy if no policy is currently set.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request for this operation uses \u003ccode\u003eGET\u003c/code\u003e with a URL structure that includes a placeholder for the resource and the method, along with parameters to define what is being requested.\u003c/p\u003e\n"],["\u003cp\u003eThe required resource for this operation is determined via a path parameter denoted as \u003ccode\u003eresource\u003c/code\u003e, that specifies a resource for which the policy is being requested, according to Google's Resource Naming guidelines.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003eoptions\u003c/code\u003e query parameter allows for the specification of a \u003ccode\u003eGetPolicyOptions\u003c/code\u003e object, and the request body must remain empty.\u003c/p\u003e\n"],["\u003cp\u003eThe operation needs \u003ccode\u003ecloudaicompanion.repositoryGroups.getIamPolicy\u003c/code\u003e permissions, and requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope for authorization, and returns an instance of \u003ccode\u003ePolicy\u003c/code\u003e in the response body if the request is successful.\u003c/p\u003e\n"]]],[],null,[]]