Method: settings.datasources.create
Veri kaynağı oluşturur.
Not: Bu API'nin yürütülebilmesi için yönetici hesabı gerekir.
HTTP isteği
POST https://cloudsearch.googleapis.com/v1/settings/datasources
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
İstek içeriği
İstek metni, DataSource
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılı olursa yanıt gövdesi, yeni oluşturulan Operation
örneğini içerir.
Yetkilendirme Kapsamları
Aşağıdaki OAuth kapsamlarından birini gerektirir:
https://www.googleapis.com/auth/cloud_search.settings.indexing
https://www.googleapis.com/auth/cloud_search.settings
https://www.googleapis.com/auth/cloud_search
Daha fazla bilgi için Yetkilendirme kılavuzuna göz atın.
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: 2024-09-03 UTC.
[null,null,["Son güncelleme tarihi: 2024-09-03 UTC."],[[["Creates a new datasource in Cloud Search, requiring an admin account and specific authorization scopes."],["Sends a POST request to the specified URL with the datasource details in the request body."],["Upon successful execution, returns an Operation object detailing the status of the datasource creation."],["Requires authorization with one of the listed OAuth scopes to access and modify Cloud Search settings."]]],[]]