Method: projects.settings.getValue
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מתקבל ערך הגדרה.
הפונקציה מחזירה google.rpc.Status
עם google.rpc.Code.NOT_FOUND
אם ערך ההגדרה לא קיים.
בקשת HTTP
GET https://resourcesettings.googleapis.com/v1alpha1/{name=projects/*/settings/*/value}
כתובת ה-URL משתמשת בתחביר gRPC קידוד מחדש.
פרמטרים של נתיב
פרמטרים |
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 ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2023-05-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"]],["עדכון אחרון: 2023-05-25 (שעון UTC)."],[[["Retrieves a specific setting value using a GET request to the provided URL."],["Requires the `name` path parameter to identify the setting value, using the format `projects/*/settings/*/value`."],["Returns the setting value if found, otherwise, it returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND`."],["Needs authorization with the `cloud-platform` OAuth scope or the `resourcesettings.settingvalues.get` IAM permission."]]],["This content describes retrieving a setting value via an HTTP GET request. The request URL follows gRPC Transcoding syntax, requiring a `name` path parameter, which specifies the setting value. The request body must be empty. Successful requests return a `SettingValue` instance in the response body. If the value is not found, a `NOT_FOUND` status is returned. Authorization requires a specific IAM permission (`resourcesettings.settingvalues.get`) and the `cloud-platform` OAuth scope.\n"]]