Apigee Hybrid memerlukan API layanan Google Cloud tertentu. Pada langkah ini, Anda akan mengaktifkan API yang diperlukan untuk platform penginstalan Anda.
Gunakan gcloud untuk mengaktifkan API yang diperlukan seperti yang dijelaskan dalam langkah-langkah berikut. Jika ingin,
Anda dapat menggunakan konsolGoogle Cloud untuk mengaktifkan API.
Selesaikan Prasyarat,
dan pastikan Anda telah menginstal gcloud CLI di shell lokal:
gcloud --help
Buat variabel lingkungan PROJECT_ID dengan
nilai berupa ID project Google Cloud yang akan Anda gunakan untuk Apigee Hybrid.
Project ID adalah string unik yang digunakan untuk membedakan project Anda dari semua project lain di Google Cloud.
Jika diperlukan, lihat Menemukan project ID:
export PROJECT_ID=YOUR_PROJECT_ID
Pilih tab untuk penginstalan yang Anda inginkan guna melihat perintah untuk mengaktifkan API:
(Opsional) Untuk memverifikasi bahwa API yang diperlukan telah diaktifkan, jalankan perintah ini.
Jika API yang diperlukan ada dalam
daftar yang ditampilkan, berarti API tersebut diaktifkan.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-03 UTC."],[[["\u003cp\u003eApigee hybrid requires enabling specific Google Cloud service APIs, which can be done via the \u003ccode\u003egcloud\u003c/code\u003e command-line tool or the Cloud Console.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003ePROJECT_ID\u003c/code\u003e environment variable needs to be defined, representing the Google Cloud project ID intended for Apigee hybrid and will be used throughout the installation instructions.\u003c/p\u003e\n"],["\u003cp\u003eDepending on the installation platform, whether GKE or other platforms, different sets of APIs need to be enabled.\u003c/p\u003e\n"],["\u003cp\u003eThe required APIs include Apigee API, Apigee Connect API, Cloud Pub/Sub API, and Cloud Resource Manager API, with GKE installations also requiring Kubernetes Engine API and Compute Engine API.\u003c/p\u003e\n"],["\u003cp\u003eYou can use the \u003ccode\u003egcloud services list\u003c/code\u003e command to verify that the necessary APIs have been enabled for your project.\u003c/p\u003e\n"]]],[],null,["| You are currently viewing version 1.14 of the Apigee hybrid documentation. For more information, see [Supported versions](/apigee/docs/hybrid/supported-platforms#supported-versions).\n\nApigee hybrid requires certain [Google\nCloud service APIs](/service-usage/docs/enable-disable). In this step, you will enable the APIs that are required for your installation platform.\n\n\nUse `gcloud` to enable the required APIs as explained in the following steps. If you prefer,\nyou can use the [Google Cloud console](/endpoints/docs/openapi/enable-api) to enable the APIs.\n| **Note:**The Apigee hybrid installation steps are written for the Linux/UNIX/Mac command shell. If you are using Windows, substitute the equivalent Windows command line syntax.\n\n1. Complete the [Prerequisites](/apigee/docs/hybrid/v1.14/prerequisites), and be sure you have the [gcloud CLI](/sdk/docs/install) installed in your local shell: \n\n gcloud --help\n\n2. Create a `PROJECT_ID` environment variable where the value is the ID of the Google Cloud project you plan to use for Apigee hybrid. A project ID is a unique string used to differentiate your project from all others in Google Cloud. If needed, see [Locate the project ID](https://support.google.com/googleapi/answer/7014113): \n\n ```\n export PROJECT_ID=YOUR_PROJECT_ID\n ```\n | **Note:** Be sure the project ID is correct. This variable is used throughout the hybrid installation instructions. Do not include a period after the project ID.\n3. Select the tab for your intended installation to see the command to enable the APIs:\n\n GKE on Google Cloud\n\n\n If you will be running your clusters on Google Kubernetes Engine (GKE), run this\n command to enable the required APIs:\n\n *Click to see details on the APIs*\n\n | Name | Title | Description |\n |-------------------------------------|----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n | apigee.googleapis.com | Apigee API | Provides communication between your project and other hybrid services and Google Cloud APIs. |\n | apigeeconnect.googleapis.com | Apigee Connect API | Provides communication between the Apigee management plane and the runtime plane. |\n | pubsub.googleapis.com | Cloud Pub/Sub API | Required for the Apigee quota feature to operate. |\n | cloudresourcemanager.googleapis.com | Cloud Resource Manager API | Used by hybrid to validate service accounts. |\n | container.googleapis.com | Kubernetes Engine API | Enable if you plan to use Google Kubernetes Engine (GKE) on Google Cloud or software-only Google Distributed Cloud for your hybrid runtime installation. |\n | compute.googleapis.com | Compute Engine API | Used for cluster management (GKE-based and OpenShift-based clusters only). |\n\n Google Cloud console\n\n\n Enable the Apigee, Apigee Connect, Cloud Pub/Sub, Cloud Resource Manager, Kubernetes Engine, Compute Engine APIs.\n\n\n [Enable the APIs](https://console.cloud.google.com/flows/enableapi?apiid=apigee.googleapis.com,apigeeconnect.googleapis.com,cloudresourcemanager.googleapis.com,compute.googleapis.com,container.googleapis.com,pubsub.googleapis.com&redirect=https://console.cloud.google.com)\n\n `gcloud` \n\n ```\n gcloud services enable \\\n apigee.googleapis.com \\\n apigeeconnect.googleapis.com \\\n cloudresourcemanager.googleapis.com \\\n compute.googleapis.com \\\n container.googleapis.com \\\n pubsub.googleapis.com --project $PROJECT_ID\n ```\n\n Other Platforms\n\n If you will be running your clusters on one of the following platforms\n run the command below to enable the required APIs:\n - AKS\n - EKS\n - GKE on AWS\n - OpenShift\n - Software-only Google Distributed Cloud on VMware or bare metal\n\n *Click to see details on the APIs*\n\n | Name | Title | Description |\n |-------------------------------------|----------------------------|----------------------------------------------------------------------------------------------|\n | apigee.googleapis.com | Apigee API | Provides communication between your project and other hybrid services and Google Cloud APIs. |\n | apigeeconnect.googleapis.com | Apigee Connect API | Provides communication between the Apigee management plane and the runtime plane. |\n | monitoring.googleapis.com | Cloud Monitoring API | Required for access to Cloud Monitoring metrics. |\n | pubsub.googleapis.com | Cloud Pub/Sub API | Required for the Apigee quota feature to operate. |\n | cloudresourcemanager.googleapis.com | Cloud Resource Manager API | Used by hybrid to validate service accounts. |\n\n Google Cloud console\n\n\n Enable the Apigee, Apigee Connect, Cloud Monitoring, Cloud Pub/Sub, Cloud Resource Manager APIs.\n\n\n [Enable the APIs](https://console.cloud.google.com/flows/enableapi?apiid=apigee.googleapis.com,apigeeconnect.googleapis.com,cloudresourcemanager.googleapis.com,monitoring.googleapis.com,pubsub.googleapis.com&redirect=https://console.cloud.google.com)\n\n `gcloud` \n\n ```\n gcloud services enable \\\n apigee.googleapis.com \\\n apigeeconnect.googleapis.com \\\n cloudresourcemanager.googleapis.com \\\n monitoring.googleapis.com \\\n pubsub.googleapis.com --project $PROJECT_ID\n ```\n4. (Optional) To verify that the required APIs are enabled, execute this command. If the required APIs are in the returned list, then they are enabled. \n\n ```\n gcloud services list --project $PROJECT_ID\n ```\n\nNext step\n\n\nGo to Step 2: [Create an organization](/apigee/docs/hybrid/v1.14/precog-provision)."]]