Method: projects.settings.lookupEffectiveValue
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מחשבת את ערך ההגדרה האפקטיבי של הגדרה במשאב Cloud parent
. הערך האפקטיבי של ההגדרה הוא הערך המחושב של ההגדרה במשאב Cloud, והוא אחד מהערכים הבאים לפי הסדר (אם הערך הקודם לא קיים, המערכת משתמשת בערך הבא):
- ערך ההגדרה במשאב הנתון
- ערך ההגדרה במשאב הקרוב ביותר בהיררכיה של המשאב הנתון
- ערך ברירת המחדל של ההגדרה
- ערך הגדרה ריק, שמוגדר כ-
SettingValue
כשכל השדות לא מוגדרים
הפונקציה מחזירה google.rpc.Status
עם google.rpc.Code.NOT_FOUND
אם ההגדרה לא קיימת.
בקשת HTTP
GET https://resourcesettings.googleapis.com/v1alpha1/{parent=projects/*/settings/*}:lookupEffectiveValue
כתובת ה-URL משתמשת בתחביר של gRPC Transcoding.
פרמטרים של נתיב
פרמטרים |
parent |
string
ההגדרה שעבורה יחושב ערך בפועל. Setting
כדי להשתמש בהרשאה, צריך את הרשאת IAM הבאה במשאב שצוין parent :
resourcesettings.settingvalues.get
|
גוף הבקשה
גוף הבקשה צריך להיות ריק.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל מופע של SettingValue
.
היקפי הרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/cloud-platform
מידע נוסף זמין במאמר סקירה כללית על אימות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון 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"]],["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["Retrieves the effective setting value for a Cloud resource, considering resource, ancestor, default, and empty values."],["Uses a GET request to the specified URL with the setting's parent as a path parameter."],["Requires an empty request body and returns a `SettingValue` object in the response body if successful."],["Needs `resourcesettings.settingvalues.get` IAM permission on the specified resource and `cloud-platform` OAuth scope for authorization."]]],["The provided information outlines how to retrieve the effective value of a setting at a specified Cloud resource. It involves sending a `GET` HTTP request to the URL `https://resourcesettings.googleapis.com/v1alpha1/{parent=projects/*/settings/*}:lookupEffectiveValue`. The `parent` path parameter defines the target setting. No request body is needed. The response, if successful, contains a `SettingValue`, or a `NOT_FOUND` status if the setting doesn't exist. Access requires the `resourcesettings.settingvalues.get` IAM permission and `cloud-platform` OAuth scope.\n"]]