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
โปรดดูข้อมูลเพิ่มเติมที่ภาพรวมการตรวจสอบสิทธิ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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"]]