Method: folders.settings.getValue
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
קבלת ערך של הגדרה.
הפונקציה מחזירה את הערך google.rpc.Status
עם google.rpc.Code.NOT_FOUND
אם ערך ההגדרה לא קיים.
בקשת HTTP
GET https://resourcesettings.googleapis.com/v1alpha1/{name=folders/*/settings/*/value}
כתובת ה-URL משתמשת בתחביר של gRPC Transcoding.
פרמטרים של נתיב
פרמטרים |
name |
string
שם ערך ההגדרה שרוצים לקבל. SettingValue
כדי להשתמש בהרשאה, צריך את הרשאת IAM הבאה במשאב שצוין name :
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-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"]],["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["Retrieves a specific setting value using a GET request to the provided URL."],["Requires `resourcesettings.settingvalues.get` IAM permission and `https://www.googleapis.com/auth/cloud-platform` OAuth scope for authorization."],["Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the setting value doesn't exist; otherwise, returns the `SettingValue`."],["Uses gRPC Transcoding for the URL structure and requires the setting value's name as a path parameter."],["The request body must be empty for this operation."]]],["This document details retrieving a setting value via an HTTP GET request. The request URL, structured with gRPC Transcoding, requires a `name` parameter specifying the setting's location. The request body must be empty. Authorization necessitates the `resourcesettings.settingvalues.get` IAM permission and the `https://www.googleapis.com/auth/cloud-platform` OAuth scope. Successful retrieval returns a `SettingValue` instance; otherwise, a `google.rpc.Status` with `NOT_FOUND` is returned.\n"]]