Method: projects.settings.value.create
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Ayar değeri oluşturur.
Ayar yoksa google.rpc.Status
ile google.rpc.Code.NOT_FOUND
değerini döndürür. Ayar değeri, belirtilen Cloud kaynağında zaten varsa google.rpc.Code.ALREADY_EXISTS
ile google.rpc.Status
değerini döndürür. Ayarlar salt okunur olarak işaretlenmişse google.rpc.Status
ile google.rpc.Code.FAILED_PRECONDITION
değerini döndürür.
HTTP isteği
POST https://resourcesettings.googleapis.com/v1alpha1/{settingValue.name=projects/*/settings/*/value}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
settingValue.name |
string
Ayar değerinin kaynak adı. Aşağıdaki biçimlerden birinde olmalıdır:
projects/{project_number}/settings/{setting_name}/value
folders/{folder_id}/settings/{setting_name}/value
organizations/{organization_id}/settings/{setting_name}/value
Örneğin, "/projects/123/settings/gcp-enableMyFeature/value"
|
İstek içeriği
İstek metni, SettingValue
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılı olursa yanıt metni, SettingValue
öğesinin yeni oluşturulmuş bir örneğini içerir.
Yetkilendirme Kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/cloud-platform
Daha fazla bilgi için Kimlik Doğrulamaya Genel Bakış başlıklı makaleyi inceleyin.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-25 UTC."],[[["Creates a new setting value for a specific Cloud resource, identified by its name."],["Returns errors if the setting doesn't exist, the value already exists, or the setting is read-only."],["Requires providing the `SettingValue` object in the request body, specifying the desired value."],["Uses the `cloud-platform` OAuth scope for authorization."],["Provides links for gRPC Transcoding, SettingValue definition, and Authentication Overview for additional context."]]],["This outlines creating a setting value via a POST request to a specified URL. The request requires a `settingValue.name` path parameter, formatted according to project, folder, or organization. The request body contains a `SettingValue` instance, and a successful response returns a new `SettingValue` instance. Potential errors include `NOT_FOUND` (setting doesn't exist), `ALREADY_EXISTS`, or `FAILED_PRECONDITION` (read-only setting). The operation requires the `cloud-platform` OAuth scope.\n"]]