Method: settings.datasources.create
एक डेटा सोर्स बनाता है.
ध्यान दें: इस एपीआई का इस्तेमाल करने के लिए, एडमिन खाता होना ज़रूरी है.
एचटीटीपी अनुरोध
POST https://cloudsearch.googleapis.com/v1/settings/datasources
यूआरएल, gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में DataSource
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब होने पर, रिस्पॉन्स के मुख्य हिस्से में Operation
का नया इंस्टेंस शामिल किया जाता है.
अनुमति पाने के लिंक
इनमें से कोई एक OAuth स्कोप ज़रूरी है:
https://www.googleapis.com/auth/cloud_search.settings.indexing
https://www.googleapis.com/auth/cloud_search.settings
https://www.googleapis.com/auth/cloud_search
ज़्यादा जानकारी के लिए, अनुमति देने से जुड़ी गाइड देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-03 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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."]]],[]]