Google ক্লাউড অনুসন্ধান API-এ অ্যাক্সেস কনফিগার করুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
আপনি সরাসরি বা SDK এর মাধ্যমে এই API ব্যবহার করার আগে আপনাকে অবশ্যই Google ক্লাউড অনুসন্ধান API-এ অ্যাক্সেস কনফিগার করতে হবে। এই দস্তাবেজটি Google ক্লাউড অনুসন্ধান API REST API ব্যবহার করার জন্য প্রয়োজনীয় পদক্ষেপগুলি কভার করে৷
1. একটি API প্রকল্প তৈরি করুন
API সক্ষম করতে, আপনাকে প্রথমে একটি Google ক্লাউড প্রকল্প তৈরি করতে হবে। এই প্রকল্পটি API গুলি পরিচালনা, বিলিং সক্ষম করা, সহযোগীদের যোগ করা এবং সরানো এবং অনুমতিগুলি পরিচালনা সহ সমস্ত Google ক্লাউড পরিষেবা তৈরি, সক্ষম এবং ব্যবহার করার ভিত্তি তৈরি করে৷
পৃষ্ঠার শীর্ষে, "Google ক্লাউড কনসোল" এর ডানদিকে arrow_drop_down ক্লিক করুন৷ বর্তমান প্রকল্প তালিকাভুক্ত একটি ডায়ালগ প্রদর্শিত হবে.
নতুন প্রকল্পে ক্লিক করুন। "নতুন প্রকল্প" স্ক্রীন প্রদর্শিত হবে।
প্রকল্পের নাম ক্ষেত্রে একটি প্রকল্পের নাম লিখুন।
(ঐচ্ছিক) প্রকল্প আইডি সম্পাদনা করতে সম্পাদনা ক্লিক করুন। প্রোজেক্ট তৈরি হওয়ার পর প্রোজেক্ট আইডি পরিবর্তন করা যাবে না, তাই এমন একটি আইডি বেছে নিন যা প্রোজেক্টের জীবনকালের জন্য আপনার চাহিদা পূরণ করে।
প্রকল্পের জন্য অবস্থানগুলি ব্রাউজ করতে, BROWSE এ ক্লিক করুন।
আপনার প্রকল্পের জন্য একটি অবস্থানে ক্লিক করুন এবং নির্বাচন করুন ক্লিক করুন।
তৈরি করুন ক্লিক করুন। কনসোলটি ড্যাশবোর্ড পৃষ্ঠায় নেভিগেট করে। প্রকল্পটি কয়েক মিনিটের মধ্যে তৈরি হয়।
আপনাকে Google ক্লাউড অনুসন্ধান API সক্ষম করতে হবে এবং শংসাপত্রগুলি পেতে একটি পরিষেবা অ্যাকাউন্ট তৈরি করতে হবে৷
আপনি নতুন তৈরি প্রকল্পে আছেন তা নিশ্চিত করতে, Google ক্লাউড কনসোল ব্যানারের ডানদিকে arrow_drop_down আইকনে ক্লিক করুন এবং আপনার নতুন তৈরি করা প্রকল্প নির্বাচন করুন৷
APIs এবং পরিষেবাগুলি সক্ষম করুন ক্লিক করুন৷ "এপিআই লাইব্রেরিতে স্বাগতম" পৃষ্ঠাটি প্রদর্শিত হবে।
কী তৈরি করুন ক্লিক করুন এবং সম্পন্ন ক্লিক করুন। একটি "ব্যক্তিগত কী আপনার কম্পিউটারে সংরক্ষিত" ডায়ালগ প্রদর্শিত হবে এবং আপনার কম্পিউটারে ব্যক্তিগত কী ডাউনলোডের একটি অনুলিপি।
Google ক্লাউড কনসোল থেকে, পৃষ্ঠার শীর্ষে আপনার তৈরি করা প্রকল্পটি নির্বাচন করুন৷
Google ক্লাউড কনসোল ব্যানারের বাম দিকে নেভিগেশন মেনুতে ক্লিক করুন।
IAM এবং Admin > Service accounts এ ক্লিক করুন।
তালিকায়, "পরিষেবা অ্যাকাউন্ট আইডি"-এর অধীনে তৈরি করা ইমেল ঠিকানাটি নোট করুন যা আপনার কনফিগার করা পরিষেবা অ্যাকাউন্টটিকে শনাক্ত করে৷ ক্লাউড অনুসন্ধানে একটি ডেটা উত্স যোগ করার সময় এই ইমেল ঠিকানাটি ব্যবহার করা হয়৷
5. তৃতীয়-পক্ষ সমর্থন শুরু করুন
আপনি অন্য কোনো ক্লাউড অনুসন্ধান API কল করার আগে, আপনাকে অবশ্যই Google ক্লাউড অনুসন্ধানের জন্য তৃতীয় পক্ষের সমর্থন শুরু করতে হবে।
ক্লাউড অনুসন্ধানের জন্য তৃতীয়-পক্ষ সমর্থন শুরু করতে:
আপনার ক্লাউড অনুসন্ধান প্ল্যাটফর্ম প্রকল্পে পরিষেবা অ্যাকাউন্টের শংসাপত্র রয়েছে৷ যাইহোক, তৃতীয় পক্ষের সমর্থন শুরু করার জন্য, আপনাকে অবশ্যই ওয়েব অ্যাপ্লিকেশন শংসাপত্র তৈরি করতে হবে। কিভাবে ওয়েব অ্যাপ্লিকেশন শংসাপত্র তৈরি করতে হয় তার নির্দেশাবলীর জন্য, শংসাপত্র তৈরি করুন দেখুন। এই ধাপটি সম্পূর্ণ করার পরে, আপনার একটি ক্লায়েন্ট আইডি এবং ক্লায়েন্ট গোপন ফাইল থাকা উচিত।
সেটিংসে ক্লিক করুন এবং ব্যবহারকারীর আপনার নিজস্ব প্রমাণীকরণ শংসাপত্র পরীক্ষা করুন।
ধাপ 1 থেকে ক্লায়েন্ট আইডি এবং ক্লায়েন্ট সিক্রেট লিখুন।
বন্ধ ক্লিক করুন.
স্কোপ ফিল্ডে, https://www.googleapis.com/auth/cloud_search.settings টাইপ করুন এবং অনুমোদন এ ক্লিক করুন। OAuth 2 খেলার মাঠ একটি অনুমোদন কোড প্রদান করে।
টোকেনের জন্য এক্সচেঞ্জ অনুমোদন কোড ক্লিক করুন। একটি টোকেন ফেরত দেওয়া হয়।
ক্লাউড অনুসন্ধানের জন্য তৃতীয়-পক্ষ সমর্থন শুরু করতে, নিম্নলিখিত কার্ল কমান্ডটি ব্যবহার করুন। ধাপ 2 এ প্রাপ্ত টোকেন দিয়ে [YOUR_ACCESS_TOKEN] প্রতিস্থাপন করতে ভুলবেন না।
আপনি যদি Microsoft® SharePoint® এর মতো একটি নন-Google ডেটা রিপোজিটরির সাথে Google ক্লাউড অনুসন্ধান ব্যবহার করার পরিকল্পনা করেন, তাহলে আপনাকে অবশ্যই একটি ডেটা উৎস তৈরি করতে হবে। একটি ডেটা উত্স যোগ করার নির্দেশাবলীর জন্য, অনুসন্ধানের জন্য একটি ডেটা উত্স যোগ করুন দেখুন৷
একবার আপনি আপনার ডেটা উত্স সেট আপ করার পরে, আপনি Google ক্লাউড অনুসন্ধান কীভাবে সংগ্রহস্থলে ডেটা উপস্থাপন করবে তা সনাক্ত করতে স্কিমা তৈরি এবং নিবন্ধন করতে পারেন৷
[null,null,["2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Configure access to the Google Cloud Search API\n\nYou must configure access to the Google Cloud Search API before you can\nuse this API either directly or through an SDK. This document\ncovers the steps required to use the Google Cloud Search API REST API.\n\n1. Create an API project\n------------------------\n\nTo enable the API, you must first create an Google Cloud project. This\nproject forms the basis for creating, enabling, and using all Google Cloud\nservices, including managing APIs, enabling billing, adding and\nremoving collaborators, and managing permissions.\n\n1. Open the [Google Cloud console](https://console.cloud.google.com/apis/dashboard).\n\n2. At the top of the page, click\n arrow_drop_down\n to the right of \"Google Cloud Console.\" A dialog listing current projects\n appears.\n\n3. Click **NEW PROJECT**. The \"New Project\" screen appears.\n\n4. Enter a project name in the **Project Name** field.\n\n5. (optional) Click **Edit** to edit the Project ID. The project ID can't be\n changed after the project is created, so choose an\n ID that meets your needs for the lifetime of the project.\n\n6. To browse locations for the project, click **BROWSE**.\n\n7. Click on a location for your project and click **Select**.\n\n8. Click **Create**. The console navigates to the Dashboard page. The project\n is created within a few minutes.\n\nFor further information on creating and managing projects, refer to\n[Creating and Managing Projects](https://support.google.com/cloud#topic=6158848).\n\n2. Enable the API\n-----------------\n\nYou need to enable the Google Cloud Search API and create a service account to\nobtain credentials.\n\n1. To ensure you are on the newly created project, click the arrow_drop_down icon to the right of the Google Cloud console banner and select your newly-created project.\n2. Click **ENABLE APIS AND SERVICES**. The \"Welcome to API Library\" page appears.\n3. Navigate to the [Google Cloud Search API](https://console.cloud.google.com/apis/api/cloudsearch.googleapis.com).\n4. Click **Enable**. The \"Overview\" page appears.\n\nFor further information on enabling and disabling APIs, refer to\n[Manage APIs in the Google Cloud console](https://support.google.com/cloud/answer/6326510)\n| **Note:** Different Cloud Search APIs require different accounts to execute (admin, service, and user). For further information, refer to the [reference documentation](/workspace/cloud-search/docs/reference) for the method you want to call.\n\n3. Create service account credentials\n-------------------------------------\n\n1. In the [Google Cloud console](https://console.cloud.google.com/apis/library), click **Credentials** in the left navigation. The Credential page appears.\n2. From the **Create credentials** drop-down list, select **Service account**. The \"Create service account\" page appears.\n3. Enter a name in the **Service account name** field.\n4. (optional) Edit the service account ID.\n5. Click **Create**. A \"Service account permissions\" screen appears.\n6. Click **Continue**. A \"Grant users access to this service account\" screen appears.\n7. Click **CREATE KEY** and click **Done**. A \"Private key saved to your computer\" dialog appears and a copy of the private key downloads to your computer.\n8. Click **Close**.\n\nFor further information on service accounts, refer to\n[Service accounts, web applications, and installed applications](https://support.google.com/cloud/answer/6158849#serviceaccounts)\n\n4. Identify email address\n-------------------------\n\n1. From the [Google Cloud console](https://console.cloud.google.com/apis/dashboard), select the project you created at the top of the page.\n2. Click the Navigation menu to the left of the Google Cloud console banner.\n3. Click **IAM and Admin** \\\u003e **Service accounts**.\n4. In the list, under \"Service account ID,\" make note of the generated email address that identifies the service account you configured. This email address is used when adding a data source to Cloud Search.\n\n5. Initialize third-party support\n---------------------------------\n\nBefore you can call any other Cloud Search APIs, you must initialize third-party\nsupport for Google Cloud Search.\n| **Note:** If you successfully executed the Cloud Search tutorial, you have already initialized third-party support for Cloud Search and can skip this step.\n\nTo initialize third-party support for Cloud Search:\n\n1. Your Cloud Search platform project contains service account credentials.\n However, for the sake of initializing third-party support, you must create web\n application credentials. For instructions on how to create web application\n credentials, refer to\n [Create credentials](/workspace/guides/create-credentials).\n Upon completing this step, you should have a client ID and client secret file.\n\n2. Use\n [Google's OAuth 2 playground](https://developers.google.com/oauthplayground/)\n to obtain an access token:\n\n 1. Click settings and check **User your own auth credentials**.\n 2. Enter the client ID and client secret from step 1.\n 3. Click **Close**.\n 4. In the scopes field, type `https://www.googleapis.com/auth/cloud_search.settings` and click **Authorize**. The OAuth 2 playground returns an authorization code.\n 5. Click **Exchange authorization code for tokens**. A token is returned.\n3. To initialize third-party support for Cloud Search, use the following curl\n command. Be sure to substitute `[YOUR_ACCESS_TOKEN]` with the token obtained in\n step 2.\n\n curl --request POST \\\n 'https://cloudsearch.googleapis.com/v1:initializeCustomer' \\\n --header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \\\n --header 'Accept: application/json' \\\n --header 'Content-Type: application/json' \\\n --data '{}' \\\n --compressed\n\n If successful, the response body contains an instance of\n [`operation`](/workspace/cloud-search/docs/reference/rest/v1/operations#Operation). For\n example: \n\n {\n name: \"operations/customers/01b3fqdm/lro/AOIL6eBv7fEfiZ_hUSpm8KQDt1Mnd6dj5Ru3MXf-jri4xK6Pyb2-Lwfn8vQKg74pgxlxjrY\"\n }\n\n If unsuccessful, contact Cloud Search support.\n4. Use [operations.get](/workspace/cloud-search/docs/reference/rest/v1/operations/get) to verify that\n third-party support is initialized:\n\n curl \\\n 'https://cloudsearch.googleapis.com/v1/operations/customers/01b3fqdm/lro/AOIL6eBv7fEfiZ_hUSpm8KQDt1Mnd6dj5Ru3MXf-jri4xK6Pyb2-Lwfn8vQKg74pgxlxjrY?key=\n [YOUR_API_KEY]' \\\n --header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \\\n --header 'Accept: application/json' \\\n --compressed\n\n When the third-party initialization is complete, it contains the\n field `done` set to `true`. For example: \n\n {\n name: \"operations/customers/01b3fqdm/lro/AOIL6eBv7fEfiZ_hUSpm8KQDt1Mnd6dj5Ru3MXf-jri4xK6Pyb2-Lwfn8vQKg74pgxlxjrY\"\n done: true\n }\n\nNext Steps\n----------\n\nHere are few next steps you might take:\n\n1. If you plan on using Google Cloud Search with a non-Google data repository,\n such as Microsoft® SharePoint®, you\n must create a data source. For instructions on\n adding a data source, refer to\n [Add a data source to search](https://support.google.com/a/answer/7056471).\n\n2. Once you set up your data source, you can\n [create and register schema](/workspace/cloud-search/docs/guides/schema-guide) to identify\n how Google Cloud Search should represent the data in the repository."]]